org.exolab.jms.config
Class TcpConfigurationType

java.lang.Object
  |
  +--org.exolab.jms.config.TcpConfigurationType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TcpConfiguration, TcpsConfiguration

public abstract class TcpConfigurationType
extends java.lang.Object
implements java.io.Serializable

This type defines items specific to TCP and TCPS connectors.

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

Constructor Summary
TcpConfigurationType()
           
 
Method Summary
 void deleteJndiPort()
          Method deleteJndiPort
 void deletePort()
          Method deletePort
 java.lang.String getInternalHost()
          Returns the value of field 'internalHost'.
 int getJndiPort()
          Returns the value of field 'jndiPort'.
 int getPort()
          Returns the value of field 'port'.
 boolean hasJndiPort()
          Method hasJndiPort
 boolean hasPort()
          Method hasPort
 boolean isValid()
          Method isValid
 void setInternalHost(java.lang.String internalHost)
          Sets the value of field 'internalHost'.
 void setJndiPort(int jndiPort)
          Sets the value of field 'jndiPort'.
 void setPort(int port)
          Sets the value of field 'port'.
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpConfigurationType

public TcpConfigurationType()
Method Detail

deleteJndiPort

public void deleteJndiPort()
Method deleteJndiPort

deletePort

public void deletePort()
Method deletePort

getInternalHost

public java.lang.String getInternalHost()
Returns the value of field 'internalHost'. The field 'internalHost' has the following description: This is only applicable when the server is behind a NAT firewall. This becomes the internal address the server is known by and the host address in ServerConfiguration is the external address. Clients will attempt to connect to ServerConfiguration/host first. If that fails, they will try to connect to internalHost
Returns:
the value of field 'internalHost'.

getJndiPort

public int getJndiPort()
Returns the value of field 'jndiPort'. The field 'jndiPort' has the following description: The JNDI port, if an embedded JNDI provider is being used.
Returns:
the value of field 'jndiPort'.

getPort

public int getPort()
Returns the value of field 'port'. The field 'port' has the following description: The port number that the server runs on.
Returns:
the value of field 'port'.

hasJndiPort

public boolean hasJndiPort()
Method hasJndiPort

hasPort

public boolean hasPort()
Method hasPort

isValid

public boolean isValid()
Method isValid

setInternalHost

public void setInternalHost(java.lang.String internalHost)
Sets the value of field 'internalHost'. The field 'internalHost' has the following description: This is only applicable when the server is behind a NAT firewall. This becomes the internal address the server is known by and the host address in ServerConfiguration is the external address. Clients will attempt to connect to ServerConfiguration/host first. If that fails, they will try to connect to internalHost
Parameters:
internalHost - the value of field 'internalHost'.

setJndiPort

public void setJndiPort(int jndiPort)
Sets the value of field 'jndiPort'. The field 'jndiPort' has the following description: The JNDI port, if an embedded JNDI provider is being used.
Parameters:
jndiPort - the value of field 'jndiPort'.

setPort

public void setPort(int port)
Sets the value of field 'port'. The field 'port' has the following description: The port number that the server runs on.
Parameters:
port - the value of field 'port'.

validate

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


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