|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRpcManager
The manager for the Remote Procedure Call (RPC) framework. This provides the following facilities for application code:
IRpcPublicationListener
to
receive events when remote procedures are published or unpublished.
Field Summary | |
---|---|
static String |
DEFAULT_RPC_TIMEOUT
The default value for the RPC_TIMEOUT |
static String |
RPC_TIMEOUT
Defines the system property name for the RPC timeout. |
Method Summary | |
---|---|
boolean |
addRpcPublicationListener(String remoteContextIdentity,
IRpcPublicationListener listener)
Add a listener for RPC publication events. |
IRpcMarker |
invoke(IRpcResultHandler resultHandler,
String remoteContextIdentity,
String procedure,
IField... args)
Asynchronously invoke the RPC in the named remote context. |
IRpcResult |
invoke(String remoteContextIdentity,
String procedure,
IField... args)
Synchronously invoke the RPC in the named remote context. |
boolean |
removeRpcPublicationListener(String remoteContextIdentity,
IRpcPublicationListener listener)
Remove an RPC publication listener. |
Methods inherited from interface fulmine.ILifeCycle |
---|
isActive, start |
Methods inherited from interface fulmine.IDestroyable |
---|
destroy |
Methods inherited from interface fulmine.rpc.IRpcPublishOperations |
---|
publishProdedure, publishRpcs, unpublishProdedure, unpublishRpcs |
Field Detail |
---|
static final String RPC_TIMEOUT
DEFAULT_RPC_TIMEOUT
,
Constant Field Valuesstatic final String DEFAULT_RPC_TIMEOUT
RPC_TIMEOUT
Method Detail |
---|
boolean addRpcPublicationListener(String remoteContextIdentity, IRpcPublicationListener listener)
This is an idempotent operation.
remoteContextIdentity
- the remote context to monitor for RPC publish/unpublish eventslistener
- a listener to receive the RPC publish/unpublish events.
true
if the listener was added, false
otherwiseboolean removeRpcPublicationListener(String remoteContextIdentity, IRpcPublicationListener listener)
This is an idempotent operation.
remoteContextIdentity
- the remote context that the listener was monitoring for RPC
publish/unpublish eventslistener
- the listener to remove
true
if the listener was found and removed,
false
otherwiseIRpcResult invoke(String remoteContextIdentity, String procedure, IField... args)
It is assumed that this method is called after an RPC publication event
is received by an IRpcPublicationListener
.
remoteContextIdentity
- the remote context to invoke the RPC inprocedure
- the RPC nameargs
- the arguments for the RPC
RPC_TIMEOUT
IRpcMarker invoke(IRpcResultHandler resultHandler, String remoteContextIdentity, String procedure, IField... args)
IRpcPublicationListener
resultHandler
- the handler to process the asynchronous resultremoteContextIdentity
- the remote context to invoke the RPC inprocedure
- the RPC nameargs
- the arguments for the RPC
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |