public class PAdapter extends Object implements ProtocolAdapter<CPeer>
ProtocolAdapter.Side| Constructor and Description |
|---|
PAdapter() |
| Modifier and Type | Method and Description |
|---|---|
int |
countRemoteObjectConnections(long objectId) |
InetSocketAddress |
getBindInetSocketAddress() |
IClassProvider |
getClassProvider() |
ClientPeerInvocationHandler |
getClientInvocationHandler(String connectionURL,
ITransportConfig config,
PlatformLogicalVersion serviceVersion)
Returns the remote method invocation handler
ClientPeerInvocationHandler which
represents remote object specified by the supplied c and connection URL. |
CPeer |
getClientPeer(PlatformLogicalVersion serviceVersion)
Returns an un-connected client peer.
|
String |
getHostName() |
LRMIMonitoringDetailsImpl |
getMonitoringDetails() |
String |
getName()
Returns the unique name of this protocol adapter.
|
Pivot |
getPivot() |
int |
getPort() |
List<ITransportConnection> |
getRemoteObjectConnectionsList(long objectId) |
void |
init(ITransportConfig config,
ProtocolAdapter.Side initSide)
Initializes the protocol adapter according to the supplied properties.
|
ServerPeer |
newServerPeer(long objectId,
ClassLoader objectClassLoader,
String serviceDetails)
Construct and returns a server peer for the specified object id.
|
void |
shutdown()
Shutdown this Protocol Adapter, freeing excess resources.
|
public void init(ITransportConfig config, ProtocolAdapter.Side initSide) throws IOException
ProtocolAdapterinit in interface ProtocolAdapter<CPeer>RemoteException - if init. failed.IOExceptionpublic IClassProvider getClassProvider()
getClassProvider in interface ProtocolAdapter<CPeer>public int getPort()
getPort in interface ProtocolAdapter<CPeer>public String getHostName()
getHostName in interface ProtocolAdapter<CPeer>public String getName()
ProtocolAdaptergetName in interface ProtocolAdapter<CPeer>public InetSocketAddress getBindInetSocketAddress()
public CPeer getClientPeer(PlatformLogicalVersion serviceVersion)
ProtocolAdaptergetClientPeer in interface ProtocolAdapter<CPeer>public ServerPeer newServerPeer(long objectId, ClassLoader objectClassLoader, String serviceDetails)
ProtocolAdapternewServerPeer in interface ProtocolAdapter<CPeer>objectId - The exported remote objectId.objectClassLoader - the exported object class loaderpublic Pivot getPivot()
public void shutdown()
ProtocolAdaptershutdown in interface ProtocolAdapter<CPeer>public List<ITransportConnection> getRemoteObjectConnectionsList(long objectId)
getRemoteObjectConnectionsList in interface ProtocolAdapter<CPeer>objectId - The exported remote objectId.public int countRemoteObjectConnections(long objectId)
countRemoteObjectConnections in interface ProtocolAdapter<CPeer>public ClientPeerInvocationHandler getClientInvocationHandler(String connectionURL, ITransportConfig config, PlatformLogicalVersion serviceVersion)
ProtocolAdapterClientPeerInvocationHandler which
represents remote object specified by the supplied c and connection URL. The returned ClientPeerInvocationHandler maintains a pool of connections(sockets) to the remote object.getClientInvocationHandler in interface ProtocolAdapter<CPeer>connectionURL - the connectionURL to the remoteObj provided by ServerPeer.config - the client configuration.public LRMIMonitoringDetailsImpl getMonitoringDetails()
getMonitoringDetails in interface ProtocolAdapter<CPeer>Copyright © GigaSpaces.