| Constructor and Description |
|---|
ClientRuntime() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(Class<?> eventClass,
Interceptor it)
Adds a client-side interceptor to this client.
|
void |
createReference(ServerAddress address,
OID oid)
This method is meant to increase the reference count of a remote object, whose corresponding stub
has reached the current JVM.
|
void |
dispatchEvent(Event event)
Dispatches the given event to registered interceptors.
|
ServerAddress |
getCallbackAddress(String transportType)
Returns this client's call-back server address (corresponds to the
this client's singleton server, which will process incoming responses).
|
MultiDispatcher |
getDispatcher() |
ClientGC |
getGc() |
void |
init(ModuleContext context)
Called upon Ubik startup.
|
boolean |
isCallback(String transportType)
Returns
true if this "client" is call-back enabled (if
it itself is a server supporting responses from remote servers in
the for of call-backs. |
void |
start(ModuleContext context)
Called after
#init(), when all modules have initialized. |
void |
stop()
Called upon Ubik shutdown.
|
public void init(ModuleContext context)
Modulepublic void start(ModuleContext context)
Module#init(), when all modules have initialized.public void stop()
Modulepublic MultiDispatcher getDispatcher()
MultiDispatcher.#dispatcher.public boolean isCallback(String transportType)
true if this "client" is call-back enabled (if
it itself is a server supporting responses from remote servers in
the for of call-backs.true if this server supports call-back mode.Consts.CALLBACK_ENABLEDpublic ServerAddress getCallbackAddress(String transportType) throws IllegalStateException
transportType - a the transport type for which to return the callback address.ServerAddress corresponding to the given transport type, and that should
be used as the callback address.IllegalStateException - if this client does not allow call-backs.Consts.CALLBACK_ENABLEDpublic void addInterceptor(Class<?> eventClass, Interceptor it) throws InvalidInterceptorException
public void dispatchEvent(Event event)
public void createReference(ServerAddress address, OID oid) throws RemoteException
address - the ServerAddress of the remote server to connect to.oid - the OID for which to create a reference.RemoteExceptionCopyright © 2012 Sapia OSS. All Rights Reserved.