C
- the command context typepublic interface CommandDispatcher<C> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes any resources used by this dispatcher.
|
<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.
|
<R> CommandResponse<R> executeOnNode(Command<R,C> command, Node node) throws Exception
R
- the return value typecommand
- the command to executenode
- the node to execute the command onException
- if the command could not be sent<R> Map<Node,CommandResponse<R>> executeOnCluster(Command<R,C> command, Node... excludedNodes) throws Exception
R
- the return value typecommand
- the command to executeexcludedNodes
- the set of nodes to excludeException
- if the command could not be broadcast<R> Future<R> submitOnNode(Command<R,C> command, Node node) throws Exception
R
- the return value typecommand
- the command to executenode
- the node to execute the command onException
- if the command could not be sent<R> Map<Node,Future<R>> submitOnCluster(Command<R,C> command, Node... excludedNodes) throws Exception
R
- the return value typecommand
- the command to executeexcludedNodes
- the set of nodes to excludeException
- if the command could not be broadcastvoid close()
close
in interface AutoCloseable
Copyright © 2016 JBoss by Red Hat. All rights reserved.