Interface HostRegistration

All Known Implementing Classes:
HostRegistrationInMemory, HostRegistrationJpaImpl, JaxbHostRegistration

public interface HostRegistration
Interface representing a host.
  • Method Details

    • getId

      Long getId()
      Returns an identifier for this host.
      Returns:
      Host identifier
    • getBaseUrl

      String getBaseUrl()
      Returns:
      the baseUrl for this host
    • setBaseUrl

      void setBaseUrl(String baseUrl)
      Parameters:
      baseUrl - the baseUrl to set
    • getIpAddress

      String getIpAddress()
      Returns:
      the IP address for this host
    • setIpAddress

      void setIpAddress(String address)
      Parameters:
      address - the IP address to set
    • getMemory

      long getMemory()
      Returns:
      the allocated memory of this host
    • setMemory

      void setMemory(long memory)
      Parameters:
      memory - the memory to set
    • getCores

      int getCores()
      Returns:
      the available cores of this host
    • setCores

      void setCores(int cores)
      Parameters:
      cores - the cores to set
    • getMaxLoad

      float getMaxLoad()
      Returns:
      the maxLoad
    • setMaxLoad

      void setMaxLoad(float maxLoad)
      Parameters:
      maxLoad - the maxLoad to set
    • isActive

      boolean isActive()
      Returns:
      whether this host is active
    • setActive

      void setActive(boolean active)
      Parameters:
      active - the active status to set
    • isOnline

      boolean isOnline()
      Returns:
      whether this host is online
    • setOnline

      void setOnline(boolean online)
      Parameters:
      online - the online status to set
    • isMaintenanceMode

      boolean isMaintenanceMode()
      Returns:
      the maintenanceMode
    • setMaintenanceMode

      void setMaintenanceMode(boolean maintenanceMode)
      Parameters:
      maintenanceMode - the maintenanceMode to set
    • getNodeName

      String getNodeName()
      Returns:
      the node name for this host or null, if not set
    • setNodeName

      void setNodeName(String nodeName)
      Parameters:
      nodeName - the node name to set