public class Host extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<Host>, com.vordel.api.topology.model.TopologyElement
Service
(API Server or Node Manager) will run on a host.
Each host has a unique id within the topology assigned by the Node Manager when it
is created, e.g. host-1
.Constructor and Description |
---|
Host()
Default constructor.
|
Host(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
compareTo(Host h) |
boolean |
equals(java.lang.Object other) |
java.lang.String |
getId()
Get the host id.
|
java.lang.String |
getName()
Get the host name
|
int |
hashCode() |
<T extends com.vordel.api.topology.model.TopologyElement> |
same(T e) |
void |
setId(java.lang.String id)
Set the host id
|
void |
setName(java.lang.String name)
Set the host name.
|
boolean |
valid()
Is the host valid
|
public Host()
public Host(java.lang.String name)
name
- The host namepublic java.lang.String getId()
getId
in interface com.vordel.api.topology.model.TopologyElement
public void setId(java.lang.String id)
id
- The idpublic java.lang.String getName()
getName
in interface com.vordel.api.topology.model.TopologyElement
public void setName(java.lang.String name)
name
- The namepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean valid()
public int compareTo(Host h)
compareTo
in interface java.lang.Comparable<Host>
public <T extends com.vordel.api.topology.model.TopologyElement> boolean same(T e)
same
in interface com.vordel.api.topology.model.TopologyElement
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel