net.java.dev.vcc.api
Class ManagedObjectId<T extends ManagedObject>

java.lang.Object
  extended by net.java.dev.vcc.api.ManagedObjectId<T>
Type Parameters:
T - The type of ManagedObject that this ID is for.
All Implemented Interfaces:
java.io.Serializable

public abstract class ManagedObjectId<T extends ManagedObject>
extends java.lang.Object
implements java.io.Serializable

The unique ID of a ManagedObject instance.

See Also:
Serialized Form

Constructor Summary
protected ManagedObjectId(java.lang.Class<T> managedObjectClass, java.lang.String datacenterUrl)
          Constructs a new ManagedObjectId.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 java.lang.String getDatacenterUrl()
          Getst the URL of the Datacenter hosting the instance referenced by this ID.
 java.lang.Class<T> getManagedObjectClass()
          Gets the class of ManagedObject that this ID is for.
 int hashCode()
          
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedObjectId

protected ManagedObjectId(java.lang.Class<T> managedObjectClass,
                          java.lang.String datacenterUrl)
Constructs a new ManagedObjectId.

Parameters:
managedObjectClass - The class of ManagedObject that this ID is for.
datacenterUrl - The URL of the Datacenter hosting the instance referenced by this ID.
Method Detail

getManagedObjectClass

public java.lang.Class<T> getManagedObjectClass()
Gets the class of ManagedObject that this ID is for.

Returns:
The class of ManagedObject that this ID is for.

getDatacenterUrl

public java.lang.String getDatacenterUrl()
Getst the URL of the Datacenter hosting the instance referenced by this ID.

Returns:
The URL of the Datacenter hosting the instance referenced by this ID.

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

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


Copyright © 2009. All Rights Reserved.