|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.distribution.RemoteUpdateInvoker
public final class RemoteUpdateInvoker
A standard implementation.
| Field Summary | |
|---|---|
static String |
DEFAUL_RPC_TIMEOUT
The default RPC timeout, 5 seconds |
static String |
RPC_TIMEOUT_PROPERTY
System property to define the timeout (in milliseconds) for waiting for RPC invocations. |
| Constructor Summary | |
|---|---|
RemoteUpdateInvoker(String remoteContextIdentity,
IFulmineContext context)
Standard constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
IRpcResult |
invoke(String remoteContextIdentity,
StringField identity,
IntegerField type,
IntegerField domain,
StringField fieldName,
StringField valueAsString,
IntegerField permissionApp,
IntegerField permissionCode,
StringField originatingRemoteContextIdentity)
Invoke the 'update remote container' RPC in the named remote context. |
void |
procedureAvailable(String remoteContextIdentity,
IRpcDefinition rpcDefinition)
Executed when the local context can invoke the named RPC in the identified remote context. |
void |
procedureUnavailable(String remoteContextIdentity,
IRpcDefinition rpcDefinition)
Executed when a remote context unpublishes (removes) the named RPC. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RPC_TIMEOUT_PROPERTY
DEFAUL_RPC_TIMEOUTpublic static final String DEFAUL_RPC_TIMEOUT
| Constructor Detail |
|---|
public RemoteUpdateInvoker(String remoteContextIdentity,
IFulmineContext context)
remoteContextIdentity - the remote context identity this invoker handles.| Method Detail |
|---|
public void procedureAvailable(String remoteContextIdentity,
IRpcDefinition rpcDefinition)
IRpcPublicationListener
procedureAvailable in interface IRpcPublicationListenerremoteContextIdentity - the remote context that has published the procedure, when
calling the procedure, this remote context will handle itrpcDefinition - the RPC definition
public void procedureUnavailable(String remoteContextIdentity,
IRpcDefinition rpcDefinition)
IRpcPublicationListener
procedureUnavailable in interface IRpcPublicationListenerremoteContextIdentity - the remote context that has unpublished the RPCrpcDefinition - the RPC definition that has been removed
public IRpcResult invoke(String remoteContextIdentity,
StringField identity,
IntegerField type,
IntegerField domain,
StringField fieldName,
StringField valueAsString,
IntegerField permissionApp,
IntegerField permissionCode,
StringField originatingRemoteContextIdentity)
IRemoteUpdateInvoker
invoke in interface IRemoteUpdateInvokerremoteContextIdentity - the remote context to invoke the RPC inidentity - the container identity, used to locate the containertype - the container type, used to locate the containerdomain - the container domain, used to locate the containerfieldName - the field in the container to updatevalueAsString - the new value for the field, in string formpermissionApp - the application permission of the context issuing the change,
see IPermissionProfilepermissionCode - the permission of the context issuing the change, see
IPermissionProfileoriginatingRemoteContextIdentity - the identity of the remote context issuing the command
#RPC_TIMEOUT_PROPERTYpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||