org.rhq.enterprise.server.resource.cluster
Class ClusterKey.Node

java.lang.Object
  extended by org.rhq.enterprise.server.resource.cluster.ClusterKey.Node
Enclosing class:
ClusterKey

public static class ClusterKey.Node
extends java.lang.Object

Immutable class representing a node in an AutoCluster hierarchy. The node describes a Set of like resources (same type and same resource key). By itself the node lacks any context and so typically this class is for use within a ClusterKey, which qualifies the node with the root group and constraining node ancestry..


Constructor Summary
ClusterKey.Node(int resourceTypeId, java.lang.String resourceKey)
           
 
Method Summary
 java.lang.String getResourceKey()
           
 int getResourceTypeId()
           
 java.lang.String toNamedString(javax.persistence.EntityManager em)
           
 java.lang.String toString()
          format: resourceTypeId:resourceKey (actual delimiter is ClusterKey.DELIM)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterKey.Node

public ClusterKey.Node(int resourceTypeId,
                       java.lang.String resourceKey)
Method Detail

getResourceTypeId

public int getResourceTypeId()

getResourceKey

public java.lang.String getResourceKey()

toString

public java.lang.String toString()
format: resourceTypeId:resourceKey (actual delimiter is ClusterKey.DELIM)

Overrides:
toString in class java.lang.Object

toNamedString

public java.lang.String toNamedString(javax.persistence.EntityManager em)


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