org.objectweb.jonas_domain.xml
Class Server

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.xml.AbsElement
      extended by org.objectweb.jonas_domain.xml.Server
All Implemented Interfaces:
java.io.Serializable, Element

public class Server
extends AbsElement

JOnAS instance

Author:
Adriana Danes, S. Ali Tokmen
See Also:
Serialized Form

Constructor Summary
Server()
          Constructor
 
Method Summary
 void addLocation(Location location)
           
 java.lang.String getClusterDaemon()
           
 java.lang.String getDescription()
           
 Location getLocation()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.String getUsername()
           
 void setClusterDaemon(java.lang.String clusterDaemon)
          Set the cluster daemon name
 void setDescription(java.lang.String description)
           
 void setLocation(Location location)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String password)
           
 void setUsername(java.lang.String username)
           
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.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

Server

public Server()
Constructor

Method Detail

getLocation

public Location getLocation()
Returns:
Returns the location.

setLocation

public void setLocation(Location location)
Parameters:
location - The location to set.

addLocation

public void addLocation(Location location)
Parameters:
location - The location to set.

getUsername

public final java.lang.String getUsername()
Returns:
Returns the username.

setUsername

public final void setUsername(java.lang.String username)
Parameters:
username - The username to set.

getPassword

public final java.lang.String getPassword()
Returns:
Returns the password as encoded in the XML file.

setPassword

public final void setPassword(java.lang.String password)
Parameters:
password - The password to set as encoded in the XML file.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

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

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

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

toXML

public java.lang.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.

getClusterDaemon

public java.lang.String getClusterDaemon()
Returns:
the cluster daemon name

setClusterDaemon

public void setClusterDaemon(java.lang.String clusterDaemon)
Set the cluster daemon name

Parameters:
clusterDaemon - name