UniquelyIdentifiable

public interface UniquelyIdentifiable extends Identifiable

An interface for objects that have an Unique Identifier (UID) that is compounded by a DatacenterBroker ID and the object ID.

Author:Manoel Campos da Silva Filho

Methods

getUid

static String getUid(long brokerId, long id)

Generates an Unique Identifier (UID).

Parameters:
Returns:

the generated UID

getUid

String getUid()

Gets the Unique Identifier (UID) for the VM, that is compounded by the id of a DatacenterBroker (representing the User) and the object id.