public class OperationRouting extends Object
Constructor and Description |
---|
OperationRouting(Collection<String> hosts)
Constructor for a request routed to multiple hosts
|
OperationRouting(String host,
boolean twoStep)
Constructor for a request routed to a single host
|
Modifier and Type | Method and Description |
---|---|
static OperationRouting |
determineRouting(org.jboss.dmr.ModelNode operation,
LocalHostControllerInfo localHostControllerInfo,
ImmutableManagementResourceRegistration registry) |
Set<String> |
getHosts() |
String |
getSingleHost() |
boolean |
isLocalCallNeeded(String localHostName) |
boolean |
isLocalOnly(String localHostName) |
boolean |
isTwoStep() |
public OperationRouting(String host, boolean twoStep)
host
- the name of the hosttwoStep
- true if a two-step execution is neededpublic OperationRouting(Collection<String> hosts)
hosts
- the names of the hostspublic static OperationRouting determineRouting(org.jboss.dmr.ModelNode operation, LocalHostControllerInfo localHostControllerInfo, ImmutableManagementResourceRegistration registry) throws OperationFailedException
OperationFailedException
public String getSingleHost()
public boolean isTwoStep()
public boolean isLocalOnly(String localHostName)
public boolean isLocalCallNeeded(String localHostName)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.