net.java.dev.vcc.api
Interface ManagedObject<T extends ManagedObject<T>>

All Known Subinterfaces:
Computer, ComputerSnapshot, ComputerTemplate, Datacenter, DatacenterResourceGroup, Host, HostResourceGroup
All Known Implementing Classes:
AbstractComputer, AbstractComputerSnapshot, AbstractComputerTemplate, AbstractDatacenter, AbstractDatacenterResourceGroup, AbstractHost, AbstractHostResourceGroup, AbstractManagedObject

public interface ManagedObject<T extends ManagedObject<T>>

Represents an object in a Datacenter


Method Summary
<T extends Command>
T
execute(T command)
          Executes a command against this managed object.
 java.util.Set<java.lang.Class<? extends Command>> getCommands()
          Returns the types of Command that are supported on this Managed Object.
 java.lang.String getDescription()
          Gets the description of this managed object or null if descriptions are not supported.
 ManagedObjectId<T> getId()
           
 java.lang.String getName()
          Gets the name of this managed object.
 

Method Detail

getId

ManagedObjectId<T> getId()

getCommands

java.util.Set<java.lang.Class<? extends Command>> getCommands()
Returns the types of Command that are supported on this Managed Object.

Returns:
the types of Command that are supported on this Managed Object.

execute

<T extends Command> T execute(T command)
Executes a command against this managed object.

Type Parameters:
T - the type of this command.
Parameters:
command - the command to execute.
Returns:
the command parameter (to support method chaining).

getName

java.lang.String getName()
Gets the name of this managed object.

Returns:
the name of this managed object.

getDescription

java.lang.String getDescription()
Gets the description of this managed object or null if descriptions are not supported.

Returns:
the description of this managed object or null if descriptions are not supported.


Copyright © 2009. All Rights Reserved.