org.exolab.jms.config
Class DefaultConfiguration

java.lang.Object
  |
  +--org.exolab.jms.config.DefaultConfiguration
All Implemented Interfaces:
java.io.Serializable

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

This top level element defines the elements which do not need to be configured by users, but are required by OpenJMS. Where an element is not provided by Configuration, the default values provided by this element will be used.

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

Constructor Summary
DefaultConfiguration()
           
 
Method Summary
 Connectors getConnectors()
          Returns the value of field 'connectors'.
 GarbageCollectionConfiguration getGarbageCollectionConfiguration()
          Returns the value of field 'garbageCollectionConfiguration'.
 HttpConfiguration getHttpConfiguration()
          Returns the value of field 'httpConfiguration'.
 HttpsConfiguration getHttpsConfiguration()
          Returns the value of field 'httpsConfiguration'.
 LoggerConfiguration getLoggerConfiguration()
          Returns the value of field 'loggerConfiguration'.
 MessageManagerConfiguration getMessageManagerConfiguration()
          Returns the value of field 'messageManagerConfiguration'.
 RmiConfiguration getRmiConfiguration()
          Returns the value of field 'rmiConfiguration'.
 SchedulerConfiguration getSchedulerConfiguration()
          Returns the value of field 'schedulerConfiguration'.
 SecurityConfiguration getSecurityConfiguration()
          Returns the value of field 'securityConfiguration'.
 ServerConfiguration getServerConfiguration()
          Returns the value of field 'serverConfiguration'.
 TcpConfiguration getTcpConfiguration()
          Returns the value of field 'tcpConfiguration'.
 TcpsConfiguration getTcpsConfiguration()
          Returns the value of field 'tcpsConfiguration'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setConnectors(Connectors connectors)
          Sets the value of field 'connectors'.
 void setGarbageCollectionConfiguration(GarbageCollectionConfiguration garbageCollectionConfiguration)
          Sets the value of field 'garbageCollectionConfiguration'.
 void setHttpConfiguration(HttpConfiguration httpConfiguration)
          Sets the value of field 'httpConfiguration'.
 void setHttpsConfiguration(HttpsConfiguration httpsConfiguration)
          Sets the value of field 'httpsConfiguration'.
 void setLoggerConfiguration(LoggerConfiguration loggerConfiguration)
          Sets the value of field 'loggerConfiguration'.
 void setMessageManagerConfiguration(MessageManagerConfiguration messageManagerConfiguration)
          Sets the value of field 'messageManagerConfiguration'.
 void setRmiConfiguration(RmiConfiguration rmiConfiguration)
          Sets the value of field 'rmiConfiguration'.
 void setSchedulerConfiguration(SchedulerConfiguration schedulerConfiguration)
          Sets the value of field 'schedulerConfiguration'.
 void setSecurityConfiguration(SecurityConfiguration securityConfiguration)
          Sets the value of field 'securityConfiguration'.
 void setServerConfiguration(ServerConfiguration serverConfiguration)
          Sets the value of field 'serverConfiguration'.
 void setTcpConfiguration(TcpConfiguration tcpConfiguration)
          Sets the value of field 'tcpConfiguration'.
 void setTcpsConfiguration(TcpsConfiguration tcpsConfiguration)
          Sets the value of field 'tcpsConfiguration'.
static DefaultConfiguration unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfiguration

public DefaultConfiguration()
Method Detail

getConnectors

public Connectors getConnectors()
Returns the value of field 'connectors'.
Returns:
the value of field 'connectors'.

getGarbageCollectionConfiguration

public GarbageCollectionConfiguration getGarbageCollectionConfiguration()
Returns the value of field 'garbageCollectionConfiguration'. The field 'garbageCollectionConfiguration' has the following description: This element defines items specific to the garbage collection service.
Returns:
the value of field 'garbageCollectionConfiguration'.

getHttpConfiguration

public HttpConfiguration getHttpConfiguration()
Returns the value of field 'httpConfiguration'. The field 'httpConfiguration' has the following description: This element defines items specific to the HTTP configuration. It defines the host and port of the web server that a client can use to start the OpenJMS servlet required for HTTP connections. The OpenJMS HTTP connector will use this information to build a URL of the form: http://host:port/openjms/OpenJMSServer
Returns:
the value of field 'httpConfiguration'.

getHttpsConfiguration

public HttpsConfiguration getHttpsConfiguration()
Returns the value of field 'httpsConfiguration'. The field 'httpsConfiguration' has the following description: This element defines items specific to the HTTPS configuration. It defines the host and port of the web server that a client can use to start the OpenJMS servlet required for HTTPS connections.
Returns:
the value of field 'httpsConfiguration'.

getLoggerConfiguration

public LoggerConfiguration getLoggerConfiguration()
Returns the value of field 'loggerConfiguration'. The field 'loggerConfiguration' has the following description: This element specifies the file to initialise logging with. OpenJMS uses Apache log4j (http://jakarta.apache.org/log4j/docs/index.html) for logging.
Returns:
the value of field 'loggerConfiguration'.

getMessageManagerConfiguration

public MessageManagerConfiguration getMessageManagerConfiguration()
Returns the value of field 'messageManagerConfiguration'. The field 'messageManagerConfiguration' has the following description: This element defines items specific to the message manager.
Returns:
the value of field 'messageManagerConfiguration'.

getRmiConfiguration

public RmiConfiguration getRmiConfiguration()
Returns the value of field 'rmiConfiguration'. The field 'rmiConfiguration' has the following description: This element defines items specific to the RMI connector.
Returns:
the value of field 'rmiConfiguration'.

getSchedulerConfiguration

public SchedulerConfiguration getSchedulerConfiguration()
Returns the value of field 'schedulerConfiguration'. The field 'schedulerConfiguration' has the following description: This element defines items specific to the scheduler.
Returns:
the value of field 'schedulerConfiguration'.

getSecurityConfiguration

public SecurityConfiguration getSecurityConfiguration()
Returns the value of field 'securityConfiguration'. The field 'securityConfiguration' has the following description: This element defines items specific to the OpenJMS server. By default, OpenJMS uses no security.
Returns:
the value of field 'securityConfiguration'.

getServerConfiguration

public ServerConfiguration getServerConfiguration()
Returns the value of field 'serverConfiguration'. The field 'serverConfiguration' has the following description: This element defines items specific to the OpenJMS server. By default, OpenJMS uses an embedded JNDI server.
Returns:
the value of field 'serverConfiguration'.

getTcpConfiguration

public TcpConfiguration getTcpConfiguration()
Returns the value of field 'tcpConfiguration'. The field 'tcpConfiguration' has the following description: This element defines items specific to the TCP connector.
Returns:
the value of field 'tcpConfiguration'.

getTcpsConfiguration

public TcpsConfiguration getTcpsConfiguration()
Returns the value of field 'tcpsConfiguration'. The field 'tcpsConfiguration' has the following description: This element defines items specific to the TCP connector.
Returns:
the value of field 'tcpsConfiguration'.

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
out -  

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
handler -  

setConnectors

public void setConnectors(Connectors connectors)
Sets the value of field 'connectors'.
Parameters:
connectors - the value of field 'connectors'.

setGarbageCollectionConfiguration

public void setGarbageCollectionConfiguration(GarbageCollectionConfiguration garbageCollectionConfiguration)
Sets the value of field 'garbageCollectionConfiguration'. The field 'garbageCollectionConfiguration' has the following description: This element defines items specific to the garbage collection service.
Parameters:
garbageCollectionConfiguration - the value of field 'garbageCollectionConfiguration'.

setHttpConfiguration

public void setHttpConfiguration(HttpConfiguration httpConfiguration)
Sets the value of field 'httpConfiguration'. The field 'httpConfiguration' has the following description: This element defines items specific to the HTTP configuration. It defines the host and port of the web server that a client can use to start the OpenJMS servlet required for HTTP connections. The OpenJMS HTTP connector will use this information to build a URL of the form: http://host:port/openjms/OpenJMSServer
Parameters:
httpConfiguration - the value of field 'httpConfiguration'.

setHttpsConfiguration

public void setHttpsConfiguration(HttpsConfiguration httpsConfiguration)
Sets the value of field 'httpsConfiguration'. The field 'httpsConfiguration' has the following description: This element defines items specific to the HTTPS configuration. It defines the host and port of the web server that a client can use to start the OpenJMS servlet required for HTTPS connections.
Parameters:
httpsConfiguration - the value of field 'httpsConfiguration'.

setLoggerConfiguration

public void setLoggerConfiguration(LoggerConfiguration loggerConfiguration)
Sets the value of field 'loggerConfiguration'. The field 'loggerConfiguration' has the following description: This element specifies the file to initialise logging with. OpenJMS uses Apache log4j (http://jakarta.apache.org/log4j/docs/index.html) for logging.
Parameters:
loggerConfiguration - the value of field 'loggerConfiguration'.

setMessageManagerConfiguration

public void setMessageManagerConfiguration(MessageManagerConfiguration messageManagerConfiguration)
Sets the value of field 'messageManagerConfiguration'. The field 'messageManagerConfiguration' has the following description: This element defines items specific to the message manager.
Parameters:
messageManagerConfiguration - the value of field 'messageManagerConfiguration'.

setRmiConfiguration

public void setRmiConfiguration(RmiConfiguration rmiConfiguration)
Sets the value of field 'rmiConfiguration'. The field 'rmiConfiguration' has the following description: This element defines items specific to the RMI connector.
Parameters:
rmiConfiguration - the value of field 'rmiConfiguration'

setSchedulerConfiguration

public void setSchedulerConfiguration(SchedulerConfiguration schedulerConfiguration)
Sets the value of field 'schedulerConfiguration'. The field 'schedulerConfiguration' has the following description: This element defines items specific to the scheduler.
Parameters:
schedulerConfiguration - the value of field 'schedulerConfiguration'.

setSecurityConfiguration

public void setSecurityConfiguration(SecurityConfiguration securityConfiguration)
Sets the value of field 'securityConfiguration'. The field 'securityConfiguration' has the following description: This element defines items specific to the OpenJMS server. By default, OpenJMS uses no security.
Parameters:
securityConfiguration - the value of field 'securityConfiguration'.

setServerConfiguration

public void setServerConfiguration(ServerConfiguration serverConfiguration)
Sets the value of field 'serverConfiguration'. The field 'serverConfiguration' has the following description: This element defines items specific to the OpenJMS server. By default, OpenJMS uses an embedded JNDI server.
Parameters:
serverConfiguration - the value of field 'serverConfiguration'.

setTcpConfiguration

public void setTcpConfiguration(TcpConfiguration tcpConfiguration)
Sets the value of field 'tcpConfiguration'. The field 'tcpConfiguration' has the following description: This element defines items specific to the TCP connector.
Parameters:
tcpConfiguration - the value of field 'tcpConfiguration'

setTcpsConfiguration

public void setTcpsConfiguration(TcpsConfiguration tcpsConfiguration)
Sets the value of field 'tcpsConfiguration'. The field 'tcpsConfiguration' has the following description: This element defines items specific to the TCP connector.
Parameters:
tcpsConfiguration - the value of field 'tcpsConfiguration'.

unmarshal

public static DefaultConfiguration unmarshal(java.io.Reader reader)
                                      throws org.exolab.castor.xml.MarshalException,
                                             org.exolab.castor.xml.ValidationException
Method unmarshal
Parameters:
reader -  

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.