|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaos.core.service.util.MethodCallProxy
kaos.core.service.directory.DirectoryServiceProxy
kaos.core.service.directory.KAoSAgentDirectoryServiceProxy
public abstract class KAoSAgentDirectoryServiceProxy
Nested Class Summary |
---|
Nested classes/interfaces inherited from class kaos.core.service.util.MethodCallProxy |
---|
MethodCallProxy.OperationWaiter |
Nested classes/interfaces inherited from interface kaos.core.csi.policy.PolicyManagement |
---|
PolicyManagement.OntologyPolicyIncorrect, PolicyManagement.PrecedenceUndeterminedException |
Nested classes/interfaces inherited from interface kaos.policy.management.PolicyAnalyzes |
---|
PolicyAnalyzes.PriorityConditionNotMet |
Field Summary | |
---|---|
protected java.lang.String |
_directoryName
|
protected java.lang.Object |
_lock
|
protected MessageTransportService |
_mts
|
protected Locator |
_myLocator
|
protected java.lang.String |
_nickName
|
protected static java.lang.String |
_NICKNAME_ROOT
|
protected Locator |
_remoteDirectoryLocator
|
protected MessageSender |
_sender
|
protected boolean |
_succeeded
|
static java.lang.String |
CONNECT_TO_LOCAL_DS
|
static java.lang.String |
USE_COORDINATOR
|
Fields inherited from class kaos.core.service.directory.DirectoryServiceProxy |
---|
_serviceProps, localOntologyInterfaces |
Fields inherited from class kaos.core.service.util.MethodCallProxy |
---|
_msgSender, _waiters |
Constructor Summary | |
---|---|
KAoSAgentDirectoryServiceProxy()
|
|
KAoSAgentDirectoryServiceProxy(ServiceProperties serviceProps)
|
Method Summary | |
---|---|
protected abstract MessageTransportService |
acquireMessageTransportService()
|
protected abstract Locator |
acquireRemoteDirectoryLocator()
Return a Locator that will be used to communicate with the Domain Manager. |
protected Locator |
bindToMessageTransportService(MessageTransportService mts)
Private methods. |
protected void |
checkDeregisterResult(MethodCallResultMsg result,
AgentDescription desc)
DirectoryFailure - as a result of registration, deregistration or modify request NotRegisteredException - as a result of deregistration or modify request IllegalArgumentexception - as a result of registration, deregistration or modify request |
protected void |
checkRegisterResult(MethodCallResultMsg result,
AgentDescription desc)
Extends superclass |
void |
cleanupVM()
This is a call back from for the Runtime when the VM shutdown is in progress. |
boolean |
equals(java.lang.Object obj)
|
Locator |
getDSLocator()
Protected methods. |
java.lang.String |
getID()
Return the unique identifier of this observer. |
int |
hashCode()
|
boolean |
initialize(java.lang.String domainManagerName)
Initialize variables and Message Transport Service infrastructure for sending/receiving messages. |
protected JasBean |
obtainEntityEnv()
Specify transport specific parameters that will be passed to the MessageTransportSystem. |
void |
receiveMessage(TransportMessage msg)
Receive a TransportMessage message from the MessageReceiver. |
protected void |
registerForVMShutDown()
Register as the shutdown hook with the runtime system. |
void |
sendMessage(Msg msgOut)
|
protected void |
sendMessage(TransportMessage transMsg)
|
void |
sendMessageToKPAT(java.lang.String message)
|
void |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
Methods inherited from class kaos.core.service.util.MethodCallProxy |
---|
getResult, getResult, notifyWaitersOfError, sendRequestNoWait |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USE_COORDINATOR
public static final java.lang.String CONNECT_TO_LOCAL_DS
protected static final java.lang.String _NICKNAME_ROOT
protected boolean _succeeded
protected java.lang.Object _lock
protected MessageTransportService _mts
protected java.lang.String _directoryName
protected java.lang.String _nickName
protected MessageSender _sender
protected Locator _myLocator
protected Locator _remoteDirectoryLocator
Constructor Detail |
---|
public KAoSAgentDirectoryServiceProxy()
public KAoSAgentDirectoryServiceProxy(ServiceProperties serviceProps)
Method Detail |
---|
protected abstract Locator acquireRemoteDirectoryLocator()
protected abstract MessageTransportService acquireMessageTransportService()
protected JasBean obtainEntityEnv()
public boolean initialize(java.lang.String domainManagerName)
domainManagerName
- the name of the DomainManager this Directory will be a proxy of.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void sendMessageToKPAT(java.lang.String message) throws java.lang.Exception
java.lang.Exception
public void cleanupVM()
public Locator getDSLocator()
protected void registerForVMShutDown()
protected Locator bindToMessageTransportService(MessageTransportService mts) throws java.lang.Exception
java.lang.Exception
public void sendMessage(Msg msgOut) throws java.lang.Exception
sendMessage
in interface MsgSender
sendMessage
in class MethodCallProxy
java.lang.Exception
protected void sendMessage(TransportMessage transMsg) throws TransportFailure, NotLocatableException, java.lang.Exception
sendMessage
in interface MsgSender
sendMessage
in class MethodCallProxy
TransportFailure
NotLocatableException
java.lang.Exception
protected void checkRegisterResult(MethodCallResultMsg result, AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
checkRegisterResult
in class DirectoryServiceProxy
AlreadyRegisteredException
DirectoryFailure
protected void checkDeregisterResult(MethodCallResultMsg result, AgentDescription desc) throws NotRegisteredException, DirectoryFailure
checkDeregisterResult
in class DirectoryServiceProxy
NotRegisteredException
DirectoryFailure
public java.lang.String getID()
getID
in interface KAoSObserver
public int hashCode()
hashCode
in class java.lang.Object
public void receiveMessage(TransportMessage msg)
receiveMessage
in class MethodCallProxy
msg
- the TransportMessage containing DomainManager's reply to one of: register/deregister/modify/search/removeExecEnv requests.public void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update) throws NotificationException
update
in interface KAoSObserver
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.update
- Object containing the update.updateCondition
- String describing the condition of the update.
NotificationException
- when the update fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |