|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStubHandler
A filter that contains functions to control the life cycle of a space related stub. It can be used to implement SSL security in (some of the) space stubs or create a stub that implements a different protocol from the com.j_spaces.core.StubHandlerImpl which is the default GigaSpaces implementation (non-secure RMI)
Field Summary | |
---|---|
static String |
NIO_PROTOCOL
NIO protocol constant |
static String |
RMI_PROTOCOL
RMI protocol constant |
Method Summary | |
---|---|
Remote |
exportObject(Remote obj)
Exports the remote object to make it available to receive incoming calls. |
String |
getProtocolName()
Return Stub Handler protocol name. |
void |
init(String spaceName)
|
boolean |
isStub(Remote obj)
Returns true if the passed obj was exported by stub handler and manage as stub. |
void |
unexportObject(Remote obj,
boolean force)
Removes the remote object, obj, from the StubHandler runtime. |
Field Detail |
---|
static final String RMI_PROTOCOL
static final String NIO_PROTOCOL
Method Detail |
---|
void init(String spaceName)
String getProtocolName()
Remote exportObject(Remote obj) throws RemoteException
obj
- the remote object to be exported
RemoteException
- if export failsvoid unexportObject(Remote obj, boolean force) throws RemoteException
subject
- the object to disable stub for
RemoteException
- Failed to unexport object.boolean isStub(Remote obj)
true
if the passed obj was exported by stub handler and manage as stub.
obj
- the obj to check
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |