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()
Peer
isConnected
in interface Peer
true
if connected, false
otherwise.public void disconnect()
Peer
disconnect
in interface Peer
public Object getSecurityContext()
public void setSecurityContext(Object securityContext)
public int getTimeout()
public void setTimeout(int timeout)
public PAdapter getProtocolAdapter()
Peer
getProtocolAdapter
in interface Peer
public long getObjectId()
ServerPeer
getObjectId
in interface ServerPeer
public long getObjectClassLoaderId()
getObjectClassLoaderId
in interface ServerPeer
public void beforeExport(ITransportConfig config) throws RemoteException
ServerPeer
beforeExport
in interface ServerPeer
RemoteException
public void afterUnexport(boolean force) throws RemoteException
ServerPeer
afterUnexport
in interface ServerPeer
force
- if , the object has been unexported even if it was in the middle of
serving client requests
RemoteException
public String getConnectionURL()
ServerPeer
getConnectionURL
in interface ServerPeer
Copyright © GigaSpaces.