org.rhq.plugins.jmx.util
Class Socket

java.lang.Object
  extended by org.rhq.plugins.jmx.util.Socket
All Implemented Interfaces:
Comparable<Socket>

public class Socket
extends Object
implements Comparable<Socket>

Author:
Ian Springer

Nested Class Summary
static class Socket.Protocol
           
 
Constructor Summary
Socket(Socket.Protocol protocol, String host, long port)
           
 
Method Summary
 int compareTo(Socket that)
           
 boolean equals(Object o)
           
 String getHost()
           
 long getPort()
           
 Socket.Protocol getProtocol()
           
 int hashCode()
           
 String toString()
           
static Socket valueOf(String string)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Socket

public Socket(Socket.Protocol protocol,
              String host,
              long port)
Method Detail

valueOf

public static Socket valueOf(String string)

getProtocol

public Socket.Protocol getProtocol()

getHost

public String getHost()

getPort

public long getPort()

equals

public boolean equals(Object o)
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(Socket that)
Specified by:
compareTo in interface Comparable<Socket>


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.