|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.dev.vcc.spi.AbstractManagedObject<Datacenter>
net.java.dev.vcc.spi.AbstractDatacenter
public abstract class AbstractDatacenter
The base class from which all Service Provider Implementations map a connection from.
| Constructor Summary | |
|---|---|
AbstractDatacenter(LogFactory logFactory,
ManagedObjectId<Datacenter> id,
boolean ignore,
CapabilityProfile... bases)
|
|
AbstractDatacenter(LogFactory logFactory,
ManagedObjectId<Datacenter> id,
CapabilityProfile base,
java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>>... capabilities)
|
|
AbstractDatacenter(LogFactory logFactory,
ManagedObjectId<Datacenter> id,
java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>>... capabilities)
|
|
| Method Summary | |
|---|---|
java.util.Set<Computer> |
getAllComputers()
Gets all the virtual computers that are contained in this container including children. |
java.util.Set<ComputerTemplate> |
getAllComputerTemplates()
Gets all the computer templates that are contained in this container including children. |
java.util.Set<DatacenterResourceGroup> |
getAllDatacenterResourceGroups()
Gets all the DatacenterResourceGroups that are contained in this container including children. |
java.util.Set<HostResourceGroup> |
getAllHostResourceGroups()
Gets all the HostResourceGroups that are contained in this container including
children. |
java.util.Set<Host> |
getAllHosts()
Gets all the hosts available for running virtual computers that are contained in this container including children. |
java.util.Set<java.lang.Class<? extends Command>> |
getCommands(java.lang.Class<? extends ManagedObject> managedObjectClass)
Returns the types of Command that are supported against a specific type of
ManagedObject. |
java.util.Set<ComputerTemplate> |
getComputerTemplates()
Gets all the computer templates that are contained in this container. |
java.util.Set<DatacenterResourceGroup> |
getDatacenterResourceGroups()
Gets alll the DatacenterResourceGroups that are contained in this container. |
java.util.Set<Host> |
getHosts()
Gets all the hosts available for running virtual computers that are contained in this container. |
Log |
getLog()
|
java.util.Set<java.lang.Class<? extends ManagedObject>> |
getObjectClasses()
Returns the types of ManagedObject that are available. |
boolean |
supports(CapabilityProfile that)
Returns true if this CapabilityProfile supports a superset of the
supplied CapabilityProfile. |
protected static java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>> |
with(java.lang.Class<? extends ManagedObject> object,
java.lang.Class<? extends Command>... commands)
Helper method. |
| Methods inherited from class net.java.dev.vcc.spi.AbstractManagedObject |
|---|
equals, getDescription, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.java.dev.vcc.api.Datacenter |
|---|
close, getAllowedStates, getAllowedStates, isOpen |
| Methods inherited from interface net.java.dev.vcc.api.ManagedObject |
|---|
execute, getCommands, getDescription, getId, getName |
| Constructor Detail |
|---|
public AbstractDatacenter(LogFactory logFactory,
ManagedObjectId<Datacenter> id,
java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>>... capabilities)
public AbstractDatacenter(LogFactory logFactory,
ManagedObjectId<Datacenter> id,
CapabilityProfile base,
java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>>... capabilities)
public AbstractDatacenter(LogFactory logFactory,
ManagedObjectId<Datacenter> id,
boolean ignore,
CapabilityProfile... bases)
| Method Detail |
|---|
public final Log getLog()
protected static java.util.Map.Entry<java.lang.Class<? extends ManagedObject>,java.util.Set<java.lang.Class<? extends Command>>> with(java.lang.Class<? extends ManagedObject> object,
java.lang.Class<? extends Command>... commands)
object - The type of ManagedObjectcommands - The types of Commands supported on the ManagedObject.
Map.Entry for use in the constructor.public java.util.Set<ComputerTemplate> getComputerTemplates()
public java.util.Set<Host> getHosts()
public java.util.Set<DatacenterResourceGroup> getDatacenterResourceGroups()
DatacenterResourceGroups that are contained in this container.
DatacenterResourceGroups that are contained in this container.public java.util.Set<Host> getAllHosts()
public java.util.Set<ComputerTemplate> getAllComputerTemplates()
public java.util.Set<Computer> getAllComputers()
public java.util.Set<DatacenterResourceGroup> getAllDatacenterResourceGroups()
DatacenterResourceGroups that are contained in this container including children.
DatacenterResourceGroups that are contained in this container including children.public java.util.Set<HostResourceGroup> getAllHostResourceGroups()
HostResourceGroups that are contained in this container including
children.
HostResourceGroups that are contained in this container including
children.public final java.util.Set<java.lang.Class<? extends Command>> getCommands(java.lang.Class<? extends ManagedObject> managedObjectClass)
Command that are supported against a specific type of
ManagedObject.
getCommands in interface CapabilityProfilemanagedObjectClass - The type of ManagedObject.
Command that are supported on the
ManagedObjectpublic final java.util.Set<java.lang.Class<? extends ManagedObject>> getObjectClasses()
ManagedObject that are available.
getObjectClasses in interface CapabilityProfileManagedObject that are available.public final boolean supports(CapabilityProfile that)
true if this CapabilityProfile supports a superset of the
supplied CapabilityProfile.
supports in interface CapabilityProfilethat - The CapabilityProfile which might be a subset of this.
true if this CapabilityProfile supports a superset of the
supplied CapabilityProfile.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||