Package org.jboss.hal.core.runtime
Class TopologyTasks
- java.lang.Object
-
- org.jboss.hal.core.runtime.TopologyTasks
-
public final class TopologyTasks extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Task<FlowContext>>hosts(Environment environment, Dispatcher dispatcher)Returns a list of tasks to read all hosts (connected and disconnected) and its servers.static voidreloadBlocking(Dispatcher dispatcher, com.google.web.bindery.event.shared.EventBus eventBus, Operation operation, String type, String name, String urlConsole, Resources resources)Show a blocking verification dialog and executes the specified operation.static List<Task<FlowContext>>runningServers(Environment environment, Dispatcher dispatcher, ModelNode query)Returns a list of tasks to read all running servers in the domain, which satisfy the specified query.static List<Task<FlowContext>>serverConfigsOfHost(Environment environment, Dispatcher dispatcher, String host)Returns a list of tasks to read the server configs of one host.static List<Task<FlowContext>>serverGroups(Environment environment, Dispatcher dispatcher)Returns a list of tasks to read all server groups and its servers.static List<Task<FlowContext>>serversOfHost(Environment environment, Dispatcher dispatcher, String host)Returns a list of tasks to read the servers of one host.static List<Task<FlowContext>>serversOfServerGroup(Environment environment, Dispatcher dispatcher, String serverGroup)Returns a list of tasks to read the servers of one server group.static Map<String,Composite>startedServerOperations(List<Server> serverConfigs)Returns a map of composite operations to read the runtime attributes of started servers.static List<Task<FlowContext>>topology(Environment environment, Dispatcher dispatcher)Returns a list of tasks to read the basic topology.
-
-
-
Field Detail
-
HOST
public static final String HOST
- See Also:
- Constant Field Values
-
HOSTS
public static final String HOSTS
- See Also:
- Constant Field Values
-
SERVER_GROUPS
public static final String SERVER_GROUPS
- See Also:
- Constant Field Values
-
SERVERS
public static final String SERVERS
- See Also:
- Constant Field Values
-
SERVER
public static final String SERVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
reloadBlocking
public static void reloadBlocking(Dispatcher dispatcher, com.google.web.bindery.event.shared.EventBus eventBus, Operation operation, String type, String name, String urlConsole, Resources resources)
Show a blocking verification dialog and executes the specified operation.
-
topology
public static List<Task<FlowContext>> topology(Environment environment, Dispatcher dispatcher)
Returns a list of tasks to read the basic topology. This only includes hosts and server groups, but no servers. Servers are read in a second step to make the whole process more resilient.The context is populated with the following keys:
HOSTS: The ordered list of hosts with the domain controller as first element. Each host contains its servers.SERVER_GROUPS: The ordered list of server groups. Each server group contains its servers.
-
hosts
public static List<Task<FlowContext>> hosts(Environment environment, Dispatcher dispatcher)
Returns a list of tasks to read all hosts (connected and disconnected) and its servers.The context is populated with the following keys:
HOSTS: The ordered list of hosts with the domain controller as first element. Each host contains its servers.
-
serverGroups
public static List<Task<FlowContext>> serverGroups(Environment environment, Dispatcher dispatcher)
Returns a list of tasks to read all server groups and its servers.The context is populated with the following keys:
SERVER_GROUPS: The ordered list of server groups. Each server group contains its servers.
-
serverConfigsOfHost
public static List<Task<FlowContext>> serverConfigsOfHost(Environment environment, Dispatcher dispatcher, String host)
Returns a list of tasks to read the server configs of one host.The context is populated with the following keys:
SERVERS: The list of server configs of one host.
-
serversOfHost
public static List<Task<FlowContext>> serversOfHost(Environment environment, Dispatcher dispatcher, String host)
Returns a list of tasks to read the servers of one host.The context is populated with the following keys:
SERVERS: The list of server configs of one host.
-
serversOfServerGroup
public static List<Task<FlowContext>> serversOfServerGroup(Environment environment, Dispatcher dispatcher, String serverGroup)
Returns a list of tasks to read the servers of one server group.The context is populated with the following keys:
SERVERS: The list of servers of one server group.
-
runningServers
public static List<Task<FlowContext>> runningServers(Environment environment, Dispatcher dispatcher, ModelNode query)
Returns a list of tasks to read all running servers in the domain, which satisfy the specified query.The context is populated with the following keys:
SERVERS: The list of running servers with additional attributes and optional server boot errors for started servers.
-
-