|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.util.ConfigObject
This class implements a configuration object, encapsulating its hostname, port, id, and a type.
ConfigObjects
Constructor Summary | |
ConfigObject(java.lang.String id,
java.lang.String host,
java.lang.String port,
java.lang.String type)
Basic constructor |
Method Summary | |
java.lang.String |
getHost()
Returns the component's host |
java.lang.String |
getId()
Returns the component's id |
java.lang.String |
getPort()
Returns the component's port |
java.lang.String |
getType()
Returns the component's type |
void |
setHost(java.lang.String host)
Sets the component's hostname |
void |
setId(java.lang.String id)
Sets the component's id |
void |
setPort(java.lang.String port)
Sets the component's port |
void |
setType(java.lang.String type)
Sets the component's type |
java.lang.String |
toString()
Returns a string version of this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConfigObject(java.lang.String id, java.lang.String host, java.lang.String port, java.lang.String type)
id
- Id of the componenthost
- Hostname of the machine the component is running onport
- Port the component is running ontype
- Type of componentMethod Detail |
public java.lang.String getPort()
public void setPort(java.lang.String port)
port
- the component portpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host
- the component hostnamepublic java.lang.String getId()
public void setId(java.lang.String id)
id
- the component idpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the component typepublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |