|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DomainMXBean
Management interface for a domain. A domain is a management unit consisting of subdomains and server pools. Domains are organized in a hierarchical fashion. Domains are named using a directory-like naming scheme. Each domain has a local name within its parent domain (e.g. "ParisDatacenter") and an absolute name (e.g. "/root/paris/ParisDatacenter").
The ObjectName for identifying a DomainMXBean follows the following template:
org.ow2.jasmine.vmm.api:type=Domain,name=<pathname>
Method Summary | |
---|---|
ServerPoolMXBean |
addServerPool(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.lang.String driver)
Add a new ServerPool |
DomainMXBean |
addSubDomain(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> attributes)
Add a subdomain |
void |
deleteServerPool(ServerPoolMXBean server)
Delete a ServerPool |
void |
deleteSubDomain(DomainMXBean domain)
Delete a Domain |
java.lang.String |
getAttribute(java.lang.String key)
Returns an attribute of the domain |
java.lang.String |
getName()
Return the symbolic name of the domain |
java.util.List<ServerPoolMXBean> |
getServerPools()
Returns a list of the server pools belonging to this domain |
java.util.List<DomainMXBean> |
getSubDomains()
Returns a list of the subdomains of this domain |
VirtualMachineMXBean |
provisionVM(VMConfigSpec vmSpec,
java.util.Map<java.lang.String,java.lang.String> constraints,
boolean sync)
Provisions a new virtual machine. |
Methods inherited from interface org.ow2.jasmine.vmm.api.ManagedResourceMXBean |
---|
getObjectName, getPath |
Method Detail |
---|
java.lang.String getName()
java.lang.String getAttribute(java.lang.String key)
VirtualMachineMXBean provisionVM(VMConfigSpec vmSpec, java.util.Map<java.lang.String,java.lang.String> constraints, boolean sync) throws InsufficientResourcesException, InvalidVMConfigException, VMMException
vmSpec
- initial configuration of the virtual machineconstraints
- contraints on the placement of the VMsync
- if true the call will return once the VM has been created
InsufficientResourcesException
- raised if not enough resources are
available to create the VM
InvalidVMConfigException
- raised if the VM configuration is
invalid
VMMException
- raised if any type of runtime fault occurs that is
not covered by the previous exceptionsjava.util.List<ServerPoolMXBean> getServerPools()
java.util.List<DomainMXBean> getSubDomains()
DomainMXBean addSubDomain(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> attributes) throws VMMException
name
- of the new domainattributes
- of the domain
VMMException
ServerPoolMXBean addServerPool(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> attributes, java.lang.String driver) throws VMMException
name
- of the new serverpoolattributes
- of the serverpooldriver
- of the serverpool
VMMException
void deleteServerPool(ServerPoolMXBean server) throws VMMException
server
- is the MBean of the serverpool to delete
VMMException
void deleteSubDomain(DomainMXBean domain) throws VMMException
domain
- is the MBean of the domain to delete
VMMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |