Class TopologyTasks


  • public final class TopologyTasks
    extends Object
    • 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.
        Started servers contain additional attributes and optional server boot errors.
      • 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.
        Started servers contain additional attributes and optional server boot errors.
      • 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.
        Started servers contain additional attributes and optional server boot errors.
      • 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.
      • startedServerOperations

        public static Map<String,​Composite> startedServerOperations​(List<Server> serverConfigs)
        Returns a map of composite operations to read the runtime attributes of started servers.