|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vim25.mo.ManagedObject
public abstract class ManagedObject
This class is intended to provide a wrapper around a managed object class. The abstraction will hide the web service details and make the managed objects OO style in the client side programming. Every managed object class can inherit from this and take advantage of this abstraction.
| Constructor Summary | |
|---|---|
protected |
ManagedObject()
|
|
ManagedObject(ServerConnection serverConnection,
ManagedObjectReference mor)
Constructor that reuse exiting web service connection Use this contructor when you can re-use existing web service connection. |
| Method Summary | |
|---|---|
protected ManagedObjectReference[] |
convertMors(ManagedObject[] mos)
|
protected Object |
getCurrentProperty(String propertyName)
|
protected Datastore[] |
getDatastores(String propName)
|
protected PropertyFilter[] |
getFilter(String propName)
|
protected HostSystem[] |
getHosts(String propName)
|
protected ManagedObject |
getManagedObject(String propName)
|
protected ManagedObject[] |
getManagedObjects(String propName)
|
protected ManagedObject[] |
getManagedObjects(String propName,
boolean mixedType)
|
ManagedObjectReference |
getMOR()
get the ManagedObjectReference object pointing to the managed object |
protected Network[] |
getNetworks(String propName)
|
Hashtable |
getPropertiesByPaths(String[] propPaths)
Get multiple properties by their paths |
Object |
getPropertyByPath(String propPath)
|
protected ResourcePool[] |
getResourcePools(String propName)
|
protected ScheduledTask[] |
getScheduledTasks(String propName)
|
ServerConnection |
getServerConnection()
|
protected Task[] |
getTasks(String propName)
|
protected View[] |
getViews(String propName)
|
protected VimPortType |
getVimService()
Get the web service |
protected VirtualMachine[] |
getVms(String propName)
|
protected ObjectContent |
retrieveObjectProperties(String[] properties)
|
protected void |
setMOR(ManagedObjectReference mor)
Set the ManagedObjectReference object pointing to the managed object |
protected void |
setServerConnection(ServerConnection sc)
Set up the ServerConnection, only when it hasn't been set yet. |
String |
toString()
|
protected Object[] |
waitForValues(String[] filterProps,
String[] endWaitProps,
Object[][] expectedVals)
Handle Updates for a single object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ManagedObject()
public ManagedObject(ServerConnection serverConnection,
ManagedObjectReference mor)
serverConnection - mor - | Method Detail |
|---|
protected void setMOR(ManagedObjectReference mor)
public ManagedObjectReference getMOR()
protected VimPortType getVimService()
public ServerConnection getServerConnection()
protected void setServerConnection(ServerConnection sc)
sc - protected ObjectContent retrieveObjectProperties(String[] properties)
protected Object getCurrentProperty(String propertyName)
propertyName - The property name of current managed object
RemoteException
RuntimeFault
InvalidPropertypublic Object getPropertyByPath(String propPath)
public Hashtable getPropertiesByPaths(String[] propPaths)
throws InvalidProperty,
RuntimeFault,
RemoteException
propPaths - an array of strings for property path
InvalidProperty
RuntimeFault
RemoteException
protected ManagedObject[] getManagedObjects(String propName,
boolean mixedType)
protected ManagedObject[] getManagedObjects(String propName)
protected Datastore[] getDatastores(String propName)
protected Network[] getNetworks(String propName)
protected VirtualMachine[] getVms(String propName)
protected PropertyFilter[] getFilter(String propName)
protected ResourcePool[] getResourcePools(String propName)
protected Task[] getTasks(String propName)
protected ScheduledTask[] getScheduledTasks(String propName)
protected View[] getViews(String propName)
protected HostSystem[] getHosts(String propName)
protected ManagedObject getManagedObject(String propName)
protected Object[] waitForValues(String[] filterProps,
String[] endWaitProps,
Object[][] expectedVals)
throws InvalidProperty,
RuntimeFault,
RemoteException
filterProps - Properties list to filterendWaitProps - Properties list to check for expected values
these be properties of a property in the filter properties listexpectedVals - values for properties to end the wait
RemoteException
RuntimeFault
InvalidPropertypublic String toString()
toString in class Objectprotected ManagedObjectReference[] convertMors(ManagedObject[] mos)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||