public class BaseServerPeer extends Object implements ServerPeer
| Constructor and Description |
|---|
BaseServerPeer(PAdapter protocolAdapter,
long objectId,
ClassLoader objectClassLoader,
String serviceDetails) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterUnexport(boolean force)
Provides a chance to this peer to do initialization after the remote object it serves is
unexported.
|
void |
beforeExport(ITransportConfig config)
Provides a chance to this peer to do initialization before the remote object it serves is
exported.
|
void |
disconnect()
Disconnects, effectively closes the connection.
|
String |
getConnectionURL()
Returns a connection URL for the remote object represented by this peer.
|
long |
getObjectClassLoaderId() |
long |
getObjectId()
Returns the object id of the remote object that this peer serves.
|
PAdapter |
getProtocolAdapter()
Returns the protocol adapter that created this peer.
|
Object |
getSecurityContext() |
int |
getTimeout() |
boolean |
isConnected()
Checks if the current peer is in 'connected' state.
|
void |
setSecurityContext(Object securityContext) |
void |
setTimeout(int timeout) |
public BaseServerPeer(PAdapter protocolAdapter, long objectId, ClassLoader objectClassLoader, String serviceDetails)
public boolean isConnected()
PeerisConnected in interface Peertrue if connected, false otherwise.public void disconnect()
Peerdisconnect in interface Peerpublic Object getSecurityContext()
public void setSecurityContext(Object securityContext)
public int getTimeout()
public void setTimeout(int timeout)
public PAdapter getProtocolAdapter()
PeergetProtocolAdapter in interface Peerpublic long getObjectId()
ServerPeergetObjectId in interface ServerPeerpublic long getObjectClassLoaderId()
getObjectClassLoaderId in interface ServerPeerpublic void beforeExport(ITransportConfig config) throws RemoteException
ServerPeerbeforeExport in interface ServerPeerRemoteExceptionpublic void afterUnexport(boolean force)
throws RemoteException
ServerPeerafterUnexport in interface ServerPeerforce - if , the object has been unexported even if it was in the middle of
serving client requestsRemoteExceptionpublic String getConnectionURL()
ServerPeergetConnectionURL in interface ServerPeerCopyright © GigaSpaces.