public class Host extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<Host>
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() |
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()
public void setId(java.lang.String id)
id
- The idpublic java.lang.String getName()
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()
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel