|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fulmine.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_TIMEOUT
public 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 IRpcPublicationListener
remoteContextIdentity
- the remote context that has published the procedure, when
calling the procedure, this remote context will handle itrpcDefinition
- the RPC definitionpublic void procedureUnavailable(String remoteContextIdentity, IRpcDefinition rpcDefinition)
IRpcPublicationListener
procedureUnavailable
in interface IRpcPublicationListener
remoteContextIdentity
- the remote context that has unpublished the RPCrpcDefinition
- the RPC definition that has been removedpublic IRpcResult invoke(String remoteContextIdentity, StringField identity, IntegerField type, IntegerField domain, StringField fieldName, StringField valueAsString, IntegerField permissionApp, IntegerField permissionCode, StringField originatingRemoteContextIdentity)
IRemoteUpdateInvoker
invoke
in interface IRemoteUpdateInvoker
remoteContextIdentity
- 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 IPermissionProfile
permissionCode
- the permission of the context issuing the change, see
IPermissionProfile
originatingRemoteContextIdentity
- the identity of the remote context issuing the command
#RPC_TIMEOUT_PROPERTY
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |