org.sourceforge.mbeanmonitoring.report.castor
Class ServerParam

java.lang.Object
  extended by org.sourceforge.mbeanmonitoring.report.castor.ServerParam
All Implemented Interfaces:
java.io.Serializable

public class ServerParam
extends java.lang.Object
implements java.io.Serializable

Class ServerParam.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ServerParam()
           
 
Method Summary
 void addMbean(int index, Mbean vMbean)
           
 void addMbean(Mbean vMbean)
           
 void deleteDelay()
           
 void deleteMaxBackupIndex()
           
 void deleteNbThreads()
           
 void deletePort()
           
 java.util.Enumeration enumerateMbean()
          Method enumerateMbean.
 int getDelay()
          Returns the value of field 'delay'.
 java.lang.String getExtension()
          Returns the value of field 'extension'.
 java.lang.String getGenereTo()
          Returns the value of field 'genereTo'.
 java.lang.String getHost()
          Returns the value of field 'host'.
 int getMaxBackupIndex()
          Returns the value of field 'maxBackupIndex'.
 java.lang.String getMaxFileSize()
          Returns the value of field 'maxFileSize'.
 Mbean[] getMbean()
          Method getMbean.Returns the contents of the collection in an Array.
 Mbean getMbean(int index)
          Method getMbean.
 int getMbeanCount()
          Method getMbeanCount.
 int getNbThreads()
          Returns the value of field 'nbThreads'.
 short getPort()
          Returns the value of field 'port'.
 java.lang.String getSeparateur()
          Returns the value of field 'separateur'.
 boolean hasDelay()
          Method hasDelay.
 boolean hasMaxBackupIndex()
          Method hasMaxBackupIndex.
 boolean hasNbThreads()
          Method hasNbThreads.
 boolean hasPort()
          Method hasPort.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllMbean()
           
 boolean removeMbean(Mbean vMbean)
          Method removeMbean.
 Mbean removeMbeanAt(int index)
          Method removeMbeanAt.
 void setDelay(int delay)
          Sets the value of field 'delay'.
 void setExtension(java.lang.String extension)
          Sets the value of field 'extension'.
 void setGenereTo(java.lang.String genereTo)
          Sets the value of field 'genereTo'.
 void setHost(java.lang.String host)
          Sets the value of field 'host'.
 void setMaxBackupIndex(int maxBackupIndex)
          Sets the value of field 'maxBackupIndex'.
 void setMaxFileSize(java.lang.String maxFileSize)
          Sets the value of field 'maxFileSize'.
 void setMbean(int index, Mbean vMbean)
           
 void setMbean(Mbean[] vMbeanArray)
           
 void setNbThreads(int nbThreads)
          Sets the value of field 'nbThreads'.
 void setPort(short port)
          Sets the value of field 'port'.
 void setSeparateur(java.lang.String separateur)
          Sets the value of field 'separateur'.
static ServerParam unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerParam

public ServerParam()
Method Detail

addMbean

public void addMbean(Mbean vMbean)
              throws java.lang.IndexOutOfBoundsException
Parameters:
vMbean -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addMbean

public void addMbean(int index,
                     Mbean vMbean)
              throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vMbean -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

deleteDelay

public void deleteDelay()

deleteMaxBackupIndex

public void deleteMaxBackupIndex()

deleteNbThreads

public void deleteNbThreads()

deletePort

public void deletePort()

enumerateMbean

public java.util.Enumeration enumerateMbean()
Method enumerateMbean.

Returns:
an Enumeration over all org.sourceforge.mbeanmonitoring.report.castor.Mbean elements

getDelay

public int getDelay()
Returns the value of field 'delay'.

Returns:
the value of field 'Delay'.

getExtension

public java.lang.String getExtension()
Returns the value of field 'extension'.

Returns:
the value of field 'Extension'.

getGenereTo

public java.lang.String getGenereTo()
Returns the value of field 'genereTo'.

Returns:
the value of field 'GenereTo'.

getHost

public java.lang.String getHost()
Returns the value of field 'host'.

Returns:
the value of field 'Host'.

getMaxBackupIndex

public int getMaxBackupIndex()
Returns the value of field 'maxBackupIndex'.

Returns:
the value of field 'MaxBackupIndex'.

getMaxFileSize

public java.lang.String getMaxFileSize()
Returns the value of field 'maxFileSize'.

Returns:
the value of field 'MaxFileSize'.

getMbean

public Mbean getMbean(int index)
               throws java.lang.IndexOutOfBoundsException
Method getMbean.

Parameters:
index -
Returns:
the value of the org.sourceforge.mbeanmonitoring.report.castor.Mbean at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getMbean

public Mbean[] getMbean()
Method getMbean.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getMbeanCount

public int getMbeanCount()
Method getMbeanCount.

Returns:
the size of this collection

getNbThreads

public int getNbThreads()
Returns the value of field 'nbThreads'.

Returns:
the value of field 'NbThreads'.

getPort

public short getPort()
Returns the value of field 'port'.

Returns:
the value of field 'Port'.

getSeparateur

public java.lang.String getSeparateur()
Returns the value of field 'separateur'.

Returns:
the value of field 'Separateur'.

hasDelay

public boolean hasDelay()
Method hasDelay.

Returns:
true if at least one Delay has been added

hasMaxBackupIndex

public boolean hasMaxBackupIndex()
Method hasMaxBackupIndex.

Returns:
true if at least one MaxBackupIndex has been added

hasNbThreads

public boolean hasNbThreads()
Method hasNbThreads.

Returns:
true if at least one NbThreads has been added

hasPort

public boolean hasPort()
Method hasPort.

Returns:
true if at least one Port has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

removeAllMbean

public void removeAllMbean()

removeMbean

public boolean removeMbean(Mbean vMbean)
Method removeMbean.

Parameters:
vMbean -
Returns:
true if the object was removed from the collection.

removeMbeanAt

public Mbean removeMbeanAt(int index)
Method removeMbeanAt.

Parameters:
index -
Returns:
the element removed from the collection

setDelay

public void setDelay(int delay)
Sets the value of field 'delay'.

Parameters:
delay - the value of field 'delay'.

setExtension

public void setExtension(java.lang.String extension)
Sets the value of field 'extension'.

Parameters:
extension - the value of field 'extension'.

setGenereTo

public void setGenereTo(java.lang.String genereTo)
Sets the value of field 'genereTo'.

Parameters:
genereTo - the value of field 'genereTo'.

setHost

public void setHost(java.lang.String host)
Sets the value of field 'host'.

Parameters:
host - the value of field 'host'.

setMaxBackupIndex

public void setMaxBackupIndex(int maxBackupIndex)
Sets the value of field 'maxBackupIndex'.

Parameters:
maxBackupIndex - the value of field 'maxBackupIndex'.

setMaxFileSize

public void setMaxFileSize(java.lang.String maxFileSize)
Sets the value of field 'maxFileSize'.

Parameters:
maxFileSize - the value of field 'maxFileSize'.

setMbean

public void setMbean(int index,
                     Mbean vMbean)
              throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vMbean -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setMbean

public void setMbean(Mbean[] vMbeanArray)
Parameters:
vMbeanArray -

setNbThreads

public void setNbThreads(int nbThreads)
Sets the value of field 'nbThreads'.

Parameters:
nbThreads - the value of field 'nbThreads'.

setPort

public void setPort(short port)
Sets the value of field 'port'.

Parameters:
port - the value of field 'port'.

setSeparateur

public void setSeparateur(java.lang.String separateur)
Sets the value of field 'separateur'.

Parameters:
separateur - the value of field 'separateur'.

unmarshal

public static ServerParam unmarshal(java.io.Reader reader)
                             throws org.exolab.castor.xml.MarshalException,
                                    org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.sourceforge.mbeanmonitoring.report.castor.ServerParam
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2003-2008. All Rights Reserved.