com.vmware.samples.sms
Class QueryDatastoresInDcWithFilter

java.lang.Object
  extended by com.vmware.samples.sms.QueryDatastoresInDcWithFilter

public class QueryDatastoresInDcWithFilter
extends java.lang.Object

This sample implements a function that



Command line: 
run.bat com.vmware.samples.sms.QueryDatastoresInDcWithFilter --url  
--username  --password  --sortPropertyName  
 
 Sample command line to get all datastores on all datacenters in the inventory along with sample SortSpec and FilterSpec options
 
run.bat com.vmware.samples.sms.QueryDatastoresInDcWithFilter --url http://localhost/sdk --username administrator --password password --ignorecert 
--sortPropertyName NAME 
 


Constructor Summary
QueryDatastoresInDcWithFilter()
           
 
Method Summary
 void execute()
           
 com.vmware.vim.sms.FilterSpec getFilterSpec()
           
 com.vmware.vim.sms.SortSpec[] getSortSpec()
           
static void main(java.lang.String[] args)
           
 void printFormattedQueryListResult(com.vmware.vim.sms.QueryResult result, boolean relEntityTypeSpecified)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryDatastoresInDcWithFilter

public QueryDatastoresInDcWithFilter()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Throws:
java.lang.Exception

getSortSpec

public com.vmware.vim.sms.SortSpec[] getSortSpec()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getFilterSpec

public com.vmware.vim.sms.FilterSpec getFilterSpec()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

printFormattedQueryListResult

public void printFormattedQueryListResult(com.vmware.vim.sms.QueryResult result,
                                          boolean relEntityTypeSpecified)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception