本文整理匯總了Java中com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams.setScope方法的典型用法代碼示例。如果您正苦於以下問題:Java AvailableDatastoreQueryParams.setScope方法的具體用法?Java AvailableDatastoreQueryParams.setScope怎麽用?Java AvailableDatastoreQueryParams.setScope使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams
的用法示例。
在下文中一共展示了AvailableDatastoreQueryParams.setScope方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testQueryavailabledatastore
import com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams; //導入方法依賴的package包/類
@Test
public void testQueryavailabledatastore()
{
AvailableDatastoreQueryParams param = new AvailableDatastoreQueryParams();
param.setLimit(10);
param.setOffset(0);
param.setScope("urn:sites:3EBE06F9:hosts:134");
param.setDatastoreURN("urn:sites:3EBE06F9:datastores:1");
// FCSDKResponse<PageList<Datastore>> lists =
dataStorageResource.queryAvailableDatastore("/service/sites/3EBE06F9", param);
}
示例2: testQueryavailabledatastore
import com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams; //導入方法依賴的package包/類
@Test
public void testQueryavailabledatastore()
{
String uri = "/service/sites/400E07BB";
AvailableDatastoreQueryParams param = new AvailableDatastoreQueryParams();
param.setLimit(1);
param.setOffset(0);
param.setScope("urn:sites:400E07BB:clusters:11");
param.setDatastoreURN("urn:sites:400E07BB:datastores:2");
// param.setScope("urn:sites:400E07BB:hosts:112");
// param.setDatastoreURN("urn:sites:400E07BB:datastores:3");
// param.setScope("urn%3Asites%3A400E07BB%3Aclusters%3A11");
// param.setDatastoreURN("urn%3Asites%3A400E07BB%3Adatastores%3A1");
param.setDataStoreStorageType(100);
FCSDKResponse<PageList<Datastore>> lists = dataStorageResource.queryAvailableDatastore(uri, param);
try
{
List<Datastore> li = lists.getResult().getList();
for (Datastore datastore : li)
{
System.out.println(datastore.getName());
}
}
catch (NullPointerException e)
{
}
}
示例3: testQueryavailabledatastore
import com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams; //導入方法依賴的package包/類
@Test
public void testQueryavailabledatastore()
{
String uri = "/service/sites/400E07BB";
AvailableDatastoreQueryParams param = new AvailableDatastoreQueryParams();
param.setLimit(1);
param.setOffset(0);
param.setScope("urn:sites:400E07BB:clusters:11");
param.setDatastoreURN("urn:sites:400E07BB:datastores:1");
// param.setScope("urn:sites:400E07BB:hosts:112");
// param.setDatastoreURN("urn:sites:400E07BB:datastores:3");
// param.setScope("urn%3Asites%3A400E07BB%3Aclusters%3A11");
// param.setDatastoreURN("urn%3Asites%3A400E07BB%3Adatastores%3A1");
param.setDataStoreStorageType(100);
FCSDKResponse<PageList<Datastore>> lists = dataStorageResource.queryAvailableDatastore(uri, param);
try
{
List<Datastore> li = lists.getResult().getList();
for (Datastore datastore : li)
{
System.out.println(datastore.getName());
}
}
catch (NullPointerException e)
{
}
}