Class HostRegistrationJpaImpl

java.lang.Object
org.opencastproject.serviceregistry.impl.jpa.HostRegistrationJpaImpl
All Implemented Interfaces:
org.opencastproject.serviceregistry.api.HostRegistration

@Entity(name="HostRegistration") public class HostRegistrationJpaImpl extends Object implements org.opencastproject.serviceregistry.api.HostRegistration
A record of a host providing Opencast services.
  • Constructor Details

    • HostRegistrationJpaImpl

      public HostRegistrationJpaImpl()
      Creates a new host registration which is online
    • HostRegistrationJpaImpl

      public HostRegistrationJpaImpl(String baseUrl, String address, String nodeName, long memory, int cores, float maxLoad, boolean online, boolean maintenance)
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setId

      public void setId(Long id)
    • getBaseUrl

      public String getBaseUrl()
      Specified by:
      getBaseUrl in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
      Specified by:
      setBaseUrl in interface org.opencastproject.serviceregistry.api.HostRegistration
    • getIpAddress

      public String getIpAddress()
      Specified by:
      getIpAddress in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setIpAddress

      public void setIpAddress(String address)
      Specified by:
      setIpAddress in interface org.opencastproject.serviceregistry.api.HostRegistration
    • getNodeName

      public String getNodeName()
      Specified by:
      getNodeName in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setNodeName

      public void setNodeName(String nodeName)
      Specified by:
      setNodeName in interface org.opencastproject.serviceregistry.api.HostRegistration
    • getMemory

      public long getMemory()
      Specified by:
      getMemory in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setMemory

      public void setMemory(long memory)
      Specified by:
      setMemory in interface org.opencastproject.serviceregistry.api.HostRegistration
    • getCores

      public int getCores()
      Specified by:
      getCores in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setCores

      public void setCores(int cores)
      Specified by:
      setCores in interface org.opencastproject.serviceregistry.api.HostRegistration
    • getMaxLoad

      public float getMaxLoad()
      Specified by:
      getMaxLoad in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setMaxLoad

      public void setMaxLoad(float maxLoad)
      Specified by:
      setMaxLoad in interface org.opencastproject.serviceregistry.api.HostRegistration
    • isOnline

      public boolean isOnline()
      Specified by:
      isOnline in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setOnline

      public void setOnline(boolean online)
      Specified by:
      setOnline in interface org.opencastproject.serviceregistry.api.HostRegistration
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setActive

      public void setActive(boolean active)
      Specified by:
      setActive in interface org.opencastproject.serviceregistry.api.HostRegistration
    • isMaintenanceMode

      public boolean isMaintenanceMode()
      Specified by:
      isMaintenanceMode in interface org.opencastproject.serviceregistry.api.HostRegistration
    • setMaintenanceMode

      public void setMaintenanceMode(boolean maintenanceMode)
      Specified by:
      setMaintenanceMode in interface org.opencastproject.serviceregistry.api.HostRegistration
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object