|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.util.MethodCallProxy
public class MethodCallProxy
Nested Class Summary | |
---|---|
protected static class |
MethodCallProxy.OperationWaiter
This class is used as a helper class to block Threads invoking the various Directory operations (register, deregister, modify, search). |
Field Summary | |
---|---|
protected JasBean |
_entityEnv
|
protected static Logger |
_logger
|
protected Locator |
_myLocator
|
protected java.lang.String |
_nickName
|
protected static java.lang.String |
_NICKNAME_ROOT
|
protected Locator |
_remoteLocator
|
protected java.lang.String |
_remoteNickname
|
protected MessageSender |
_sender
|
protected java.util.Hashtable |
_waiters
|
Constructor Summary | |
---|---|
MethodCallProxy()
|
Method Summary | |
---|---|
protected Locator |
bindToMessageTransportService(MessageTransportService mts)
Private methods. |
boolean |
equals(java.lang.Object obj)
|
protected MethodCallResultMsg |
getResult(MethodCallRequestMsg msgOut)
|
protected MethodCallResultMsg |
getResult(MethodCallRequestMsg msgOut,
java.lang.String operationName)
Wrap the MethodCallRequestMsg into a TransportMessage message and send it to the Domain Manager. |
int |
hashCode()
|
boolean |
initialize(MessageTransportService mts,
JasBean entityEnv,
Locator remoteLocator,
java.lang.String remoteNickname)
|
protected JasBean |
obtainEntityEnv()
|
protected void |
printDebugString(java.lang.String msg,
int loggerDisplayLevel)
A utility method to print a String. |
void |
receiveMessage(TransportMessage msg)
Receive a TransportMessage message from the MessageReceiver. |
protected void |
removeWaiter(java.lang.String id)
|
protected void |
sendRequestNoWait(MethodCallRequestMsg msgOut)
Wrap the MethodCallRequestMsg into a TransportMessage message and send it to the Domain Manager. |
protected MethodCallResultMsg |
waitForReply(java.lang.String operationID,
java.lang.String operationName)
This method is called immediately after a Directory operation is requested and a message containing the MethodCallRequestMsg is sent to the DM. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String _NICKNAME_ROOT
protected static Logger _logger
protected java.lang.String _remoteNickname
protected java.lang.String _nickName
protected MessageSender _sender
protected Locator _myLocator
protected Locator _remoteLocator
protected java.util.Hashtable _waiters
protected JasBean _entityEnv
Constructor Detail |
---|
public MethodCallProxy()
Method Detail |
---|
public boolean initialize(MessageTransportService mts, JasBean entityEnv, Locator remoteLocator, java.lang.String remoteNickname)
public void receiveMessage(TransportMessage msg)
msg
- the TransportMessage containing DomainManager's reply to one of:
register/deregister/modify/search/removeExecEnv requests.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected void printDebugString(java.lang.String msg, int loggerDisplayLevel)
msg
- The String to be printed.protected Locator bindToMessageTransportService(MessageTransportService mts) throws java.lang.Exception
java.lang.Exception
protected MethodCallResultMsg getResult(MethodCallRequestMsg msgOut) throws DirectoryFailure
DirectoryFailure
protected MethodCallResultMsg getResult(MethodCallRequestMsg msgOut, java.lang.String operationName) throws DirectoryFailure
DirectoryFailure
protected void sendRequestNoWait(MethodCallRequestMsg msgOut) throws DirectoryFailure
DirectoryFailure
protected JasBean obtainEntityEnv()
protected MethodCallResultMsg waitForReply(java.lang.String operationID, java.lang.String operationName) throws DirectoryFailure
DirectoryFailure
protected void removeWaiter(java.lang.String id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |