public class GetMOREF extends BaseHelper
BaseHelper.HelperException| Constructor and Description |
|---|
GetMOREF(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
com.vmware.vim25.RetrieveResult |
containerViewByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions) |
com.vmware.vim25.RetrieveResult |
containerViewByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions,
java.lang.String... morefProperties)
Returns the raw RetrieveResult object for the provided container filtered on properties list
|
com.vmware.vim25.RetrieveResult |
containerViewByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String[] morefProperties,
com.vmware.vim25.RetrieveOptions retrieveOptions,
com.vmware.vim25.PropertyFilterSpec... propertyFilterSpecs) |
java.util.Map<com.vmware.vim25.ManagedObjectReference,java.util.Map<java.lang.String,java.lang.Object>> |
entityProps(java.util.List<com.vmware.vim25.ManagedObjectReference> entityMors,
java.lang.String[] props)
Method to retrieve properties of list of
ManagedObjectReference |
java.util.Map<java.lang.String,java.lang.Object> |
entityProps(com.vmware.vim25.ManagedObjectReference entityMor,
java.lang.String[] props)
Method to retrieve properties of a
ManagedObjectReference |
com.vmware.vim25.TraversalSpec |
getVMTraversalSpec() |
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> |
inContainerByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType) |
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> |
inContainerByType(com.vmware.vim25.ManagedObjectReference folder,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions)
Returns all the MOREFs of the specified type that are present under the
container
|
java.util.Map<com.vmware.vim25.ManagedObjectReference,java.util.Map<java.lang.String,java.lang.Object>> |
inContainerByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String[] strings) |
java.util.Map<com.vmware.vim25.ManagedObjectReference,java.util.Map<java.lang.String,java.lang.Object>> |
inContainerByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String[] morefProperties,
com.vmware.vim25.RetrieveOptions retrieveOptions)
Returns all the MOREFs of the specified type that are present under the
container
|
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> |
inFolderByType(com.vmware.vim25.ManagedObjectReference folder,
java.lang.String morefType) |
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> |
inFolderByType(com.vmware.vim25.ManagedObjectReference folder,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions)
Returns all the MOREFs of the specified type that are present under the
folder
|
static java.lang.String |
populate(com.vmware.vim25.RetrieveResult rslts,
java.util.List<com.vmware.vim25.ObjectContent> listobjcontent) |
static java.lang.String |
populate(com.vmware.vim25.RetrieveResult rslts,
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> tgtMoref) |
com.vmware.vim25.PropertyFilterSpec[] |
propertyFilterSpecs(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String... morefProperties) |
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> |
toMap(com.vmware.vim25.RetrieveResult rslts) |
com.vmware.vim25.ManagedObjectReference |
vmByVMname(java.lang.String vmName,
com.vmware.vim25.ManagedObjectReference propCollectorRef)
Get the MOR of the Virtual Machine by its name.
|
public GetMOREF(Connection connection)
public com.vmware.vim25.RetrieveResult containerViewByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions)
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic com.vmware.vim25.RetrieveResult containerViewByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions,
java.lang.String... morefProperties)
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
container - - container to look inmorefType - - type to filter formorefProperties - - properties to includecom.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic com.vmware.vim25.PropertyFilterSpec[] propertyFilterSpecs(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String... morefProperties)
throws com.vmware.vim25.RuntimeFaultFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgpublic com.vmware.vim25.RetrieveResult containerViewByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String[] morefProperties,
com.vmware.vim25.RetrieveOptions retrieveOptions,
com.vmware.vim25.PropertyFilterSpec... propertyFilterSpecs)
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> inFolderByType(com.vmware.vim25.ManagedObjectReference folder,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions)
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
folder - ManagedObjectReference of the folder to begin the search
frommorefType - Type of the managed entity that needs to be searchedcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgpublic java.util.Map<com.vmware.vim25.ManagedObjectReference,java.util.Map<java.lang.String,java.lang.Object>> inContainerByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String[] morefProperties,
com.vmware.vim25.RetrieveOptions retrieveOptions)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
container - ManagedObjectReference of the container to begin the
search frommorefType - Type of the managed entity that needs to be searchedmorefProperties - Array of properties to be fetched for the morefcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgpublic java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> inContainerByType(com.vmware.vim25.ManagedObjectReference folder,
java.lang.String morefType,
com.vmware.vim25.RetrieveOptions retrieveOptions)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
folder - ManagedObjectReference of the container to begin the
search frommorefType - Type of the managed entity that needs to be searchedcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgpublic java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> toMap(com.vmware.vim25.RetrieveResult rslts)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgpublic static java.lang.String populate(com.vmware.vim25.RetrieveResult rslts,
java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> tgtMoref)
public static java.lang.String populate(com.vmware.vim25.RetrieveResult rslts,
java.util.List<com.vmware.vim25.ObjectContent> listobjcontent)
public com.vmware.vim25.ManagedObjectReference vmByVMname(java.lang.String vmName,
com.vmware.vim25.ManagedObjectReference propCollectorRef)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
vmName - The name of the Virtual MachinepropCollectorRef - com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic com.vmware.vim25.TraversalSpec getVMTraversalSpec()
public java.util.Map<java.lang.String,java.lang.Object> entityProps(com.vmware.vim25.ManagedObjectReference entityMor,
java.lang.String[] props)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
ManagedObjectReferenceentityMor - ManagedObjectReference of the entityprops - Array of properties to be looked upcom.vmware.vim25.InvalidPropertyFaultMsg - If a property does not existcom.vmware.vim25.RuntimeFaultFaultMsgpublic java.util.Map<com.vmware.vim25.ManagedObjectReference,java.util.Map<java.lang.String,java.lang.Object>> entityProps(java.util.List<com.vmware.vim25.ManagedObjectReference> entityMors,
java.lang.String[] props)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
ManagedObjectReferenceentityMors - List of ManagedObjectReference for which the properties
needs to be retrievedprops - Common properties that need to be retrieved for all the
ManagedObjectReference passedManagedObjectReference and their corresponding name
value pair of propertiescom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgpublic java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> inContainerByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsgpublic java.util.Map<java.lang.String,com.vmware.vim25.ManagedObjectReference> inFolderByType(com.vmware.vim25.ManagedObjectReference folder,
java.lang.String morefType)
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgpublic java.util.Map<com.vmware.vim25.ManagedObjectReference,java.util.Map<java.lang.String,java.lang.Object>> inContainerByType(com.vmware.vim25.ManagedObjectReference container,
java.lang.String morefType,
java.lang.String[] strings)
throws com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.RuntimeFaultFaultMsg
com.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.RuntimeFaultFaultMsg