public class JaxbHostRegistration extends Object implements HostRegistration
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected String |
address |
protected String |
baseUrl
The base URL for this host.
|
protected int |
cores |
protected boolean |
maintenanceMode |
protected float |
maxLoad
The maximum load this host can run.
|
protected long |
memory |
protected String |
nodeName |
protected boolean |
online |
| Constructor and Description |
|---|
JaxbHostRegistration()
Creates a new host registration which is online and not in maintenance mode.
|
JaxbHostRegistration(HostRegistration hostRegistration)
Creates a new JAXB host registration based on an existing host registration
|
JaxbHostRegistration(String baseUrl,
String address,
String nodeName,
long memory,
int cores,
float maxLoad,
boolean online,
boolean maintenance)
Constructs a new HostRegistration with the parameters provided
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBaseUrl() |
int |
getCores() |
String |
getIpAddress() |
float |
getMaxLoad() |
long |
getMemory() |
String |
getNodeName() |
int |
hashCode() |
boolean |
isActive() |
boolean |
isMaintenanceMode() |
boolean |
isOnline() |
void |
setActive(boolean active) |
void |
setBaseUrl(String baseUrl) |
void |
setCores(int cores) |
void |
setIpAddress(String address) |
void |
setMaintenanceMode(boolean maintenanceMode) |
void |
setMaxLoad(float maxLoad) |
void |
setMemory(long memory) |
void |
setNodeName(String nodeName) |
void |
setOnline(boolean online) |
String |
toString() |
protected String baseUrl
protected String address
protected String nodeName
protected long memory
protected int cores
protected float maxLoad
protected boolean online
protected boolean active
protected boolean maintenanceMode
public JaxbHostRegistration()
public JaxbHostRegistration(String baseUrl, String address, String nodeName, long memory, int cores, float maxLoad, boolean online, boolean maintenance)
baseUrl - the base URL for this hostaddress - the IP address for this hostnodeName - descriptive node name for this hostmemory - the allocated memory of this hostcores - the available cores of this hostmaxLoad - the maximum load that this host can supportonline - whether the host is online and available for serviceonline - whether the host is in maintenance modepublic JaxbHostRegistration(HostRegistration hostRegistration)
hostRegistration - public String getBaseUrl()
getBaseUrl in interface HostRegistrationHostRegistration.getBaseUrl()public void setBaseUrl(String baseUrl)
setBaseUrl in interface HostRegistrationbaseUrl - the baseUrl to setHostRegistration.setBaseUrl(String)public String getIpAddress()
getIpAddress in interface HostRegistrationHostRegistration.getIpAddress()public void setIpAddress(String address)
setIpAddress in interface HostRegistrationaddress - the IP address to setHostRegistration.setIpAddress(String)public long getMemory()
getMemory in interface HostRegistrationHostRegistration.getMemory()public void setMemory(long memory)
setMemory in interface HostRegistrationmemory - the memory to setHostRegistration.setMemory(long)public int getCores()
getCores in interface HostRegistrationHostRegistration.getCores()public void setCores(int cores)
setCores in interface HostRegistrationcores - the cores to setHostRegistration.setCores(int)public float getMaxLoad()
getMaxLoad in interface HostRegistrationHostRegistration.getMaxLoad()public void setMaxLoad(float maxLoad)
setMaxLoad in interface HostRegistrationmaxLoad - the maxLoad to setpublic boolean isActive()
isActive in interface HostRegistrationHostRegistration.isActive()public void setActive(boolean active)
setActive in interface HostRegistrationactive - the active status to setHostRegistration.setActive(boolean)public boolean isOnline()
isOnline in interface HostRegistrationHostRegistration.isOnline()public void setOnline(boolean online)
setOnline in interface HostRegistrationonline - the online status to setHostRegistration.setOnline(boolean)public boolean isMaintenanceMode()
isMaintenanceMode in interface HostRegistrationHostRegistration.isMaintenanceMode()public void setMaintenanceMode(boolean maintenanceMode)
setMaintenanceMode in interface HostRegistrationmaintenanceMode - the maintenanceMode to setHostRegistration.setMaintenanceMode(boolean)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public String getNodeName()
getNodeName in interface HostRegistrationHostRegistration.getNodeName()public void setNodeName(String nodeName)
setNodeName in interface HostRegistrationnodeName - the node name to setHostRegistration.setNodeName(String)Copyright © 2009–2021 Opencast Project. All rights reserved.