fulmine.context
Interface IRpcManagerOperations

All Known Implementing Classes:
RpcManager

public interface IRpcManagerOperations

Interface exposing operations that the handlers of the RpcManager can use.

Author:
Ramon Servadei

Method Summary
 DualValue<String,IRpcDefinition> getRegistryKeyAndDefinition(String remoteContextIdentity, String procedure, IField[] args)
          Get the RPC registry key and IRpcDefinition for the procedure.
 void invoke(String remoteContextIdentity, String rpcKey, IRpcDefinition definition, IField[] args, IRpcResultHandler resultHandler, IRpcMarker marker)
          Invoke the RPC in the named remote context.
 

Method Detail

invoke

void invoke(String remoteContextIdentity,
            String rpcKey,
            IRpcDefinition definition,
            IField[] args,
            IRpcResultHandler resultHandler,
            IRpcMarker marker)
Invoke the RPC in the named remote context.

Parameters:
remoteContextIdentity - the remote context to invoke the RPC in
rpcKey - the RPC key
definition - the RPC definition
args - the arguments for the RPC
resultHandler - the handler to process the asynchronous result
marker - the marker that allows the resultHandler to tie up the result from this specific RPC invocation

getRegistryKeyAndDefinition

DualValue<String,IRpcDefinition> getRegistryKeyAndDefinition(String remoteContextIdentity,
                                                             String procedure,
                                                             IField[] args)
Get the RPC registry key and IRpcDefinition for the procedure. This checks the RPC registry record of the remote context to find the key for an RPC with matching name and arguments.

Parameters:
remoteContextIdentity - the remote context
procedure - the RPC name
args - the RPC arguments
Returns:
the RPC registry key and IRpcDefinition for the RPC in the remote context or null if not found


Copyright © 2007-2009. All Rights Reserved.