C - command execution contextpublic abstract class ServiceCommandDispatcher<C> extends Object implements CommandDispatcher<C>
| Constructor and Description |
|---|
ServiceCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher,
CommandMarshaller<C> marshaller,
NodeFactory<org.jgroups.Address> factory,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
<R> Map<Node,CommandResponse<R>> |
executeOnCluster(Command<R,C> command,
Node... excludedNodes)
Execute the specified command on all nodes in the group, excluding the specified nodes
|
<R> CommandResponse<R> |
executeOnNode(Command<R,C> command,
Node node)
Execute the specified command on the specified node.
|
<R> Map<Node,Future<R>> |
submitOnCluster(Command<R,C> command,
Node... excludedNodes)
Submits the specified command on all nodes in the group, excluding the specified nodes.
|
<R> Future<R> |
submitOnNode(Command<R,C> command,
Node node)
Submits the specified command on the specified node for execution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic ServiceCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher,
CommandMarshaller<C> marshaller,
NodeFactory<org.jgroups.Address> factory,
long timeout)
public <R> Map<Node,CommandResponse<R>> executeOnCluster(Command<R,C> command, Node... excludedNodes)
CommandDispatcherexecuteOnCluster in interface CommandDispatcher<C>R - the return value typecommand - the command to executeexcludedNodes - the set of nodes to excludepublic <R> Map<Node,Future<R>> submitOnCluster(Command<R,C> command, Node... excludedNodes)
CommandDispatchersubmitOnCluster in interface CommandDispatcher<C>R - the return value typecommand - the command to executeexcludedNodes - the set of nodes to excludepublic <R> CommandResponse<R> executeOnNode(Command<R,C> command, Node node)
CommandDispatcherexecuteOnNode in interface CommandDispatcher<C>R - the return value typecommand - the command to executenode - the node to execute the command onpublic <R> Future<R> submitOnNode(Command<R,C> command, Node node)
CommandDispatchersubmitOnNode in interface CommandDispatcher<C>R - the return value typecommand - the command to executenode - the node to execute the command onCopyright © 2014 JBoss by Red Hat. All rights reserved.