org.apache.geronimo.clustering
Class AbstractNode

java.lang.Object
  extended by org.apache.geronimo.clustering.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
BasicLocalNode, RemoteNode

public abstract class AbstractNode
extends Object
implements Node


Constructor Summary
AbstractNode(String name)
           
 
Method Summary
 boolean equals(Object obj)
           
protected abstract  String getHost()
           
 JMXConnector getJMXConnector()
           
 String getName()
          Gets the node name.
protected abstract  int getPort()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNode

public AbstractNode(String name)
Method Detail

getName

public String getName()
Description copied from interface: Node
Gets the node name.

Specified by:
getName in interface Node
Returns:
Node name

getJMXConnector

public JMXConnector getJMXConnector()
                             throws IOException
Specified by:
getJMXConnector in interface Node
Throws:
IOException

getHost

protected abstract String getHost()

getPort

protected abstract int getPort()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.