org.jboss.messaging.core.client.impl
Class LocationImpl

java.lang.Object
  extended by org.jboss.messaging.core.client.impl.LocationImpl
All Implemented Interfaces:
java.io.Serializable, Location

public class LocationImpl
extends java.lang.Object
implements Location

Author:
Andy Taylor, Tim Fox
See Also:
Serialized Form

Field Summary
protected  java.lang.String host
           
protected  int port
           
protected  TransportType transport
           
 
Constructor Summary
LocationImpl(int serverID)
           
LocationImpl(TransportType transport, java.lang.String host, int port)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getHost()
           
 java.lang.String getLocation()
           
 int getPort()
           
 int getServerID()
           
 TransportType getTransport()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transport

protected TransportType transport

host

protected java.lang.String host

port

protected int port
Constructor Detail

LocationImpl

public LocationImpl(int serverID)

LocationImpl

public LocationImpl(TransportType transport,
                    java.lang.String host,
                    int port)
Method Detail

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface Location

getTransport

public TransportType getTransport()
Specified by:
getTransport in interface Location

getHost

public java.lang.String getHost()
Specified by:
getHost in interface Location

getPort

public int getPort()
Specified by:
getPort in interface Location

getServerID

public int getServerID()
Specified by:
getServerID in interface Location

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.