Package jadex.platform.service.remote
Class ProxyAgent
- java.lang.Object
- 
- jadex.platform.service.remote.ProxyAgent
 
- 
- All Implemented Interfaces:
- IProxyAgentService
 
 public class ProxyAgent extends java.lang.Object implements IProxyAgentService A proxy agent is a pseudo component that mirrors services of a remote platform (or component).
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jadex.bridge.service.types.remote.IProxyAgentServiceIProxyAgentService.State
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected booleaninjectedThe injected flag.protected IComponentIdentifierrcidThe remote component identifier.protected ILibraryServicercmsThe remote cms.
 - 
Constructor SummaryConstructors Constructor Description ProxyAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>agentCreated()The agent created method.IFuture<IProxyAgentService.State>getConnectionState()Get the connection state of the proxy.IFuture<java.lang.Long>getCurrentLatency()Get the current latency.IFuture<IComponentIdentifier>getRemoteComponentIdentifier()Get the component identifier of the remote platform.IFuture<java.lang.Void>refreshLatency()Refresh the latency value.IFuture<java.lang.Void>setRemoteComponentIdentifier(IComponentIdentifier cid)Set or update the component identifier of the remote platform, i.e., top reflect new transport addresses.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
rcidprotected IComponentIdentifier rcid The remote component identifier.
 - 
rcmsprotected ILibraryService rcms The remote cms.
 - 
injectedprotected boolean injected The injected flag.
 
- 
 - 
Method Detail- 
agentCreatedpublic IFuture<java.lang.Void> agentCreated() The agent created method.
 - 
getRemoteComponentIdentifierpublic IFuture<IComponentIdentifier> getRemoteComponentIdentifier() Get the component identifier of the remote platform.- Specified by:
- getRemoteComponentIdentifierin interface- IProxyAgentService
 
 - 
setRemoteComponentIdentifierpublic IFuture<java.lang.Void> setRemoteComponentIdentifier(IComponentIdentifier cid) Set or update the component identifier of the remote platform, i.e., top reflect new transport addresses.- Specified by:
- setRemoteComponentIdentifierin interface- IProxyAgentService
 
 - 
getConnectionStatepublic IFuture<IProxyAgentService.State> getConnectionState() Get the connection state of the proxy.- Specified by:
- getConnectionStatein interface- IProxyAgentService
- Returns:
- The connection state.
 
 - 
refreshLatencypublic IFuture<java.lang.Void> refreshLatency() Refresh the latency value.- Specified by:
- refreshLatencyin interface- IProxyAgentService
 
 - 
getCurrentLatencypublic IFuture<java.lang.Long> getCurrentLatency() Get the current latency.
 
- 
 
-