Class Host

  • All Implemented Interfaces:
    Cloneable, NamedObject

    public class Host
    extends HasServersNode
    For the host we need to distinguish between the address-name (the name which is part of the host address) and the model-node-name (the name which is part of the host model node). When the latter is changed, the former remains unchanged until the host is reloaded.
    • Method Detail

      • sort

        public static List<Host> sort​(List<Host> hosts)
        Sorts the specified hosts alphabetically with the domain controller as first element.
      • booting

        public static Host booting​(String name)
        Marks a host as booting. In contrast to RunningState.STARTING, booting means that the host name is known abd returned by :read-child-names(child-type=host), but the resource itself is not readable (/host=foo:read-resource returns WFLYCTL0379). This applies to hosts with management model < 10.0.0.
        Parameters:
        name - the host name
        Returns:
        A host marked as booting
      • failed

        public static Host failed​(String name)
      • disconnected

        public static Host disconnected​(String name,
                                        Date disconnected,
                                        Date lastConnected)
      • getAddressName

        public String getAddressName()
      • getManagementVersion

        public Version getManagementVersion()
      • isConnected

        public boolean isConnected()
      • getDisconnected

        public Date getDisconnected()
      • getLastConnected

        public Date getLastConnected()
      • isDomainController

        public boolean isDomainController()
      • getRunningMode

        public RunningMode getRunningMode()
        Returns:
        the state as defined by server.running-mode
      • isBooting

        public boolean isBooting()
      • isStarting

        public boolean isStarting()
      • isRunning

        public boolean isRunning()
      • isAdminMode

        public boolean isAdminMode()
      • isFailed

        public boolean isFailed()
      • needsRestart

        public boolean needsRestart()
      • needsReload

        public boolean needsReload()