com.sun.enterprise.mgmt.transport.grizzly
Class GrizzlyPeerID

java.lang.Object
  extended by com.sun.enterprise.mgmt.transport.grizzly.GrizzlyPeerID
All Implemented Interfaces:
Serializable, Comparable<GrizzlyPeerID>

public class GrizzlyPeerID
extends Object
implements Serializable, Comparable<GrizzlyPeerID>

Author:
Bongjae Chang
See Also:
Serialized Form

Field Summary
 String host
           
 String multicastAddress
           
 int multicastPort
           
 int tcpPort
           
 
Constructor Summary
GrizzlyPeerID(String host, int tcpPort, String multicastAddress, int multicastPort)
           
 
Method Summary
 int compareTo(GrizzlyPeerID other)
           
 boolean equals(Object other)
           
 String getHost()
           
 String getMulticastAddress()
           
 int getMulticastPort()
           
 int getTcpPort()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

public final String host

tcpPort

public final int tcpPort

multicastAddress

public final String multicastAddress

multicastPort

public final int multicastPort
Constructor Detail

GrizzlyPeerID

public GrizzlyPeerID(String host,
                     int tcpPort,
                     String multicastAddress,
                     int multicastPort)
Method Detail

getHost

public String getHost()

getTcpPort

public int getTcpPort()

getMulticastPort

public int getMulticastPort()

getMulticastAddress

public String getMulticastAddress()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(GrizzlyPeerID other)
Specified by:
compareTo in interface Comparable<GrizzlyPeerID>


Copyright © 2012. All Rights Reserved.