com.konakart.rmi
Class KKRMIEngBase

java.lang.Object
  extended by com.konakart.rmi.KKRMIEngBase
Direct Known Subclasses:
KKRMIEng

public class KKRMIEngBase
extends java.lang.Object

KonaKart RMI Client-side Engine Base for the Application Engine


Constructor Summary
KKRMIEngBase(EngineConfigIf engConf)
          Constructor with an EngineConfig object.
 
Method Summary
 EngineConfigIf getEngConf()
           
 KKRMIEngServerIf getRmiEngine()
           
 java.lang.String getRmiHost()
           
 int getRmiPort()
           
 java.lang.String getStoreId()
           
protected  KKException handleThrowable(java.lang.Throwable e, java.lang.String methodName)
          Handles the exception for all methods.
 void init()
           
 boolean isSuccessfullyInitialised()
           
 void setEngConf(EngineConfigIf engConf)
           
 void setRmiEngine(KKRMIEngServerIf rmiEngine)
           
 void setRmiHost(java.lang.String rmiHost)
           
 void setRmiPort(int rmiPort)
           
 void setStoreId(java.lang.String storeId)
           
 void setSuccessfullyInitialised(boolean successfullyInitialised)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KKRMIEngBase

public KKRMIEngBase(EngineConfigIf engConf)
             throws KKException
Constructor with an EngineConfig object.

Parameters:
engConf -
Throws:
KKException
Method Detail

init

public void init()
          throws KKException
Throws:
KKException

handleThrowable

protected KKException handleThrowable(java.lang.Throwable e,
                                      java.lang.String methodName)
Handles the exception for all methods. If the exception is a RemoteException or a ServerException and has a cause exception, then we add the cause exception instead of the RemoteException, although we do save the message of the RemoteException or ServerException.

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

getRmiPort

public int getRmiPort()
Returns:
the rmiPort

setRmiPort

public void setRmiPort(int rmiPort)
Parameters:
rmiPort - the rmiPort to set

getRmiHost

public java.lang.String getRmiHost()
Returns:
the rmiHost

setRmiHost

public void setRmiHost(java.lang.String rmiHost)
Parameters:
rmiHost - the rmiHost to set

isSuccessfullyInitialised

public boolean isSuccessfullyInitialised()
Returns:
the successfullyInitialised

setSuccessfullyInitialised

public void setSuccessfullyInitialised(boolean successfullyInitialised)
Parameters:
successfullyInitialised - the successfullyInitialised to set

getStoreId

public java.lang.String getStoreId()
Returns:
the storeId

setStoreId

public void setStoreId(java.lang.String storeId)
Parameters:
storeId - the storeId to set

getRmiEngine

public KKRMIEngServerIf getRmiEngine()
                              throws KKException
Returns:
the rmiEngine
Throws:
KKException

setRmiEngine

public void setRmiEngine(KKRMIEngServerIf rmiEngine)
Parameters:
rmiEngine - the rmiEngine to set

getEngConf

public EngineConfigIf getEngConf()
Returns:
the engConf

setEngConf

public void setEngConf(EngineConfigIf engConf)
Parameters:
engConf - the engConf to set


Copyright © 2011 DS Data Systems UK Ltd.