org.ow2.jonas.deployment.domain.xml
Class Cluster

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by org.ow2.jonas.deployment.domain.xml.Cluster
All Implemented Interfaces:
Serializable, Element

public class Cluster
extends AbsElement

See Also:
Serialized Form

Constructor Summary
Cluster()
          Constructor
 
Method Summary
 void addCluster(Cluster cluster)
          Add a new sub-cluster (cluster element) to this object
 void addServer(Server server)
          Add a new server element to this object
 JLinkedList getClusterList()
           
 String getDescription()
           
 String getName()
           
 JLinkedList getServerList()
           
 void setClusterList(JLinkedList clusterList)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setServerList(JLinkedList serverList)
           
 String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cluster

public Cluster()
Constructor

Method Detail

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getDescription

public String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(String description)
Parameters:
description - The description to set.

addCluster

public void addCluster(Cluster cluster)
Add a new sub-cluster (cluster element) to this object

Parameters:
cluster - the Cluster object representing a sub-cluster

addServer

public void addServer(Server server)
Add a new server element to this object

Parameters:
server - the Server object

getClusterList

public JLinkedList getClusterList()
Returns:
Returns the clusterList.

setClusterList

public void setClusterList(JLinkedList clusterList)
Parameters:
clusterList - The clusterList to set.

getServerList

public JLinkedList getServerList()
Returns:
Returns the serverList.

setServerList

public void setServerList(JLinkedList serverList)
Parameters:
serverList - The serverList to set.

toXML

public String toXML(int indent)
Represents this element by it's XML description.

Specified by:
toXML in interface Element
Specified by:
toXML in class AbsElement
Parameters:
indent - use this indent for prexifing XML representation.
Returns:
the XML description of this object.


Copyright © 2010 OW2 Consortium. All Rights Reserved.