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.IProxyAgentService
IProxyAgentService.State
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected boolean
injected
The injected flag.protected IComponentIdentifier
rcid
The remote component identifier.protected ILibraryService
rcms
The remote cms.
-
Constructor Summary
Constructors Constructor Description ProxyAgent()
-
Method Summary
All 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
-
agent
protected IInternalAccess agent
The agent.
-
rcid
protected IComponentIdentifier rcid
The remote component identifier.
-
rcms
protected ILibraryService rcms
The remote cms.
-
injected
protected boolean injected
The injected flag.
-
-
Method Detail
-
agentCreated
public IFuture<java.lang.Void> agentCreated()
The agent created method.
-
getRemoteComponentIdentifier
public IFuture<IComponentIdentifier> getRemoteComponentIdentifier()
Get the component identifier of the remote platform.- Specified by:
getRemoteComponentIdentifier
in interfaceIProxyAgentService
-
setRemoteComponentIdentifier
public 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:
setRemoteComponentIdentifier
in interfaceIProxyAgentService
-
getConnectionState
public IFuture<IProxyAgentService.State> getConnectionState()
Get the connection state of the proxy.- Specified by:
getConnectionState
in interfaceIProxyAgentService
- Returns:
- The connection state.
-
refreshLatency
public IFuture<java.lang.Void> refreshLatency()
Refresh the latency value.- Specified by:
refreshLatency
in interfaceIProxyAgentService
-
getCurrentLatency
public IFuture<java.lang.Long> getCurrentLatency()
Get the current latency.
-
-