public class Host
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
PortRange
which overrides the one defined at
DeploymentConfig
level. Note that if this host's port range has a
null start port then, default port range start port is used. Same for last
port.Modifier and Type | Field and Description |
---|---|
java.lang.String |
architecture |
int |
hostAgentPort |
java.lang.String |
hostname |
java.lang.String |
install |
PortRange |
portRange |
java.util.List<Role> |
role |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Host.
|
static Host |
fromString(java.lang.String s)
String representation of this Host.
|
java.lang.String |
getArchitecture()
System architecture of the host.
|
int |
getHostAgentPort()
Fixed Host agent port (optional).
|
java.lang.String |
getHostname()
Network name of the physical host.
|
java.lang.String |
getInstall()
Name of this CloudView cluster host on the physical host.
It is possible to deploy several CloudView installs in the same CloudView cluster on the same physical host. |
PortRange |
getPortRange()
Range of TCP ports used for this host
|
java.util.List<Role> |
getRole()
CloudView roles hosted by this host
|
Host |
makeCopy()
Creates and returns a deep copy of this Host.
|
static Host |
readFrom(java.io.InputStream is)
Read this Host from an XML fragment.
|
void |
setArchitecture(java.lang.String architecture)
System architecture of the host.
|
void |
setHostAgentPort(int hostAgentPort)
Fixed Host agent port (optional).
|
void |
setHostname(java.lang.String hostname)
Network name of the physical host.
|
void |
setInstall(java.lang.String install)
Name of this CloudView cluster host on the physical host.
It is possible to deploy several CloudView installs in the same CloudView cluster on the same physical host. |
void |
setPortRange(PortRange portRange)
Range of TCP ports used for this host
|
java.lang.String |
toString()
String representation of this Host.
|
Host |
withArchitecture(java.lang.String architecture) |
Host |
withHostAgentPort(int hostAgentPort) |
Host |
withHostAgentPort(java.lang.Integer hostAgentPort) |
Host |
withHostname(java.lang.String hostname) |
Host |
withInstall(java.lang.String install) |
Host |
withPortRange(PortRange portRange) |
Host |
withRole(java.util.Collection<Role> __values) |
Host |
withRole(Role... __values)
CloudView roles hosted by this host
|
void |
writeTo(java.io.OutputStream os)
Write this Host as an XML fragment
|
public PortRange portRange
public java.util.List<Role> role
public java.lang.String hostname
public java.lang.String install
public java.lang.String architecture
public int hostAgentPort
public Host()
public Host(Host o)
public void setPortRange(PortRange portRange)
public PortRange getPortRange()
public java.util.List<Role> getRole()
public void setHostname(java.lang.String hostname)
public java.lang.String getHostname()
public Host withHostname(java.lang.String hostname)
public void setInstall(java.lang.String install)
public java.lang.String getInstall()
public Host withInstall(java.lang.String install)
public void setArchitecture(java.lang.String architecture)
public java.lang.String getArchitecture()
public Host withArchitecture(java.lang.String architecture)
public void setHostAgentPort(int hostAgentPort)
public int getHostAgentPort()
public Host withHostAgentPort(int hostAgentPort)
public Host withHostAgentPort(java.lang.Integer hostAgentPort)
public Host makeCopy()
public static Host readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Host fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.