Novell exteNd Messaging Platform 5.2

com.sssw.jms.api
Class JMQServerInfo

java.lang.Object
  extended bycom.sssw.jms.api.JMQServerInfo
All Implemented Interfaces:
Serializable

public final class JMQServerInfo
extends Object
implements Serializable

A JMQServerInfo object encapsulates host and port information about a JMS server. Client applications that use the Novell exteNd Messaging Platform API's use this data structure when creating cluster-aware connections.

Since:
jBroker MQ 2.0
See Also:
JMQConnectionFactory, Serialized Form

Constructor Summary
JMQServerInfo(String host, int port)
          Construct a JMQServerInfo object with host and port information.
 
Method Summary
 String getHost()
          Return the host encapsulated by this object.
 int getPort()
          Return the port encapsulated by this object.
 String toString()
          Return string for of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMQServerInfo

public JMQServerInfo(String host,
                     int port)
Construct a JMQServerInfo object with host and port information.

Parameters:
host - the host of a JMS server.
port - the port of server on host.
Method Detail

getHost

public String getHost()
Return the host encapsulated by this object.

Returns:
Host string.

getPort

public int getPort()
Return the port encapsulated by this object.

Returns:
Port number.

toString

public String toString()
Return string for of this object.

Returns:
A pretty printed string for this object.

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.