public interface MemberInvocable
Invocable
interface where execution
of the interface is based upon where data resides in the space.
Execution of the MemberInvocable interface is triggered by an application which can be running on the same member or a different member of the space. In ActiveSpaces, this is referred to as remote invocation. The remote invocation code is colocated with the data which increases performance.
With the MemberInvocable interface, an application can specify which members should execute the interface as follows:
- A certain space member - All space members - Only space seeders - Only remote space membersThe code implementing the MemberInvocable interface needs to be included in the CLASSPATH for each member of the space.
Modifier and Type | Method and Description |
---|---|
Tuple |
invoke(Space space,
Tuple context)
The
invoke method is executed by certain members of a space or all members of a space. |
Tuple invoke(Space space, Tuple context)
invoke
method is executed by certain members of a space or all members of a space.
The execution of the invoke
method is initiated by the client application calling one of the following
methods of the Space
object:
The application can specify which members of a space should execute theSpace.invokeMember(com.tibco.as.space.Member, java.lang.String, com.tibco.as.space.InvokeOptions)
Space.invokeMembers(java.util.Collection<com.tibco.as.space.Member>, java.lang.String, com.tibco.as.space.InvokeOptions)
Space.invokeSeeders(java.lang.String, com.tibco.as.space.InvokeOptions)
Space.invokeRemoteMembers(java.lang.String, com.tibco.as.space.InvokeOptions)
invoke
method
as follows:
invoke
method
invoke
method
invoke
method
invoke
method
The invoke
method is guaranteed to be called at least once, but may be called multiple times.
Therefore, the invoke
method should be idempotent.
space
- Space
object that the invocation request is coming fromcontext
- Used to pass information from the calling applicationCopyright (c) 2014 Cloud Software Group, Inc. All rights reserved.