com.konakartadmin.rmi
Class KKRMIAdminEngServerBase

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.konakartadmin.rmi.KKRMIAdminEngServerBase
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote

public class KKRMIAdminEngServerBase
extends java.rmi.server.UnicastRemoteObject

KonaKart RMI Server-side Engine Base for the Admin Engine

Implements the server side part of the RMI Admin Engine.

It has to manage multiple engines - one for each store, instantiating them on demand as new calls are made on specific stores.

See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
private static java.lang.String mutex
           
private static long serialVersionUID
          Serial Version UID
private static java.util.Map<java.lang.String,KKRMIAdminEngServerStaticData> staticDataHM
          Hash Map that contains the static data
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
KKRMIAdminEngServerBase()
           
 
Method Summary
protected static KKAdminIf getRmiEngine(java.lang.String storeId)
           
protected static java.rmi.RemoteException handleThrowable(java.lang.Throwable e, java.lang.String methodName)
          Handles the exception for all methods.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

log

protected static org.apache.commons.logging.Log log

mutex

private static java.lang.String mutex

staticDataHM

private static java.util.Map<java.lang.String,KKRMIAdminEngServerStaticData> staticDataHM
Hash Map that contains the static data

Constructor Detail

KKRMIAdminEngServerBase

KKRMIAdminEngServerBase()
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

getRmiEngine

protected static KKAdminIf getRmiEngine(java.lang.String storeId)
                                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

handleThrowable

protected static java.rmi.RemoteException handleThrowable(java.lang.Throwable e,
                                                          java.lang.String methodName)
Handles the exception for all methods. If the exception is a KKException and has a cause exception, then we add the cause exception instead of the KKException, although we do save the message of the KKException. We do this so that the receiver can detect the cause exception and act on it. Otherwise it gets lost.

Parameters:
e -
methodName -
Returns:
Returns an exception


Copyright © 2011 DS Data Systems UK Ltd.