Interface HostRegistration
- All Known Implementing Classes:
HostRegistrationInMemory,HostRegistrationJpaImpl,JaxbHostRegistration
public interface HostRegistration
Interface representing a host.
-
Method Summary
Modifier and TypeMethodDescriptionintgetCores()getId()Returns an identifier for this host.floatlongbooleanisActive()booleanbooleanisOnline()voidsetActive(boolean active) voidsetBaseUrl(String baseUrl) voidsetCores(int cores) voidsetIpAddress(String address) voidsetMaintenanceMode(boolean maintenanceMode) voidsetMaxLoad(float maxLoad) voidsetMemory(long memory) voidsetNodeName(String nodeName) voidsetOnline(boolean online)
-
Method Details
-
getId
Long getId()Returns an identifier for this host.- Returns:
- Host identifier
-
getBaseUrl
String getBaseUrl()- Returns:
- the baseUrl for this host
-
setBaseUrl
- Parameters:
baseUrl- the baseUrl to set
-
getIpAddress
String getIpAddress()- Returns:
- the IP address for this host
-
setIpAddress
- 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
- Parameters:
nodeName- the node name to set
-