本文整理汇总了Java中com.vmware.vim25.RuntimeFault类的典型用法代码示例。如果您正苦于以下问题:Java RuntimeFault类的具体用法?Java RuntimeFault怎么用?Java RuntimeFault使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RuntimeFault类属于com.vmware.vim25包,在下文中一共展示了RuntimeFault类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: forwardMetricsToInsights
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
@Scheduled(fixedRateString = "${collection.interval:30000}")
public void forwardMetricsToInsights() throws InvalidProperty, RuntimeFault, RemoteException {
long start = startTiming();
int datastoreCount = 0;
for (String name : datastores) {
Datastore datastore = (Datastore) inventoryNavigator.searchManagedEntity("Datastore",
name);
if (datastore != null) {
Map<String, Object> attributes = Maps.newHashMap();
attributes.put("platform_instance", cfInstanceName);
attributes.put("type", "datastore");
attributes.put("name", name);
attributes.put("capacity", bytesToGb(datastore.getSummary().getCapacity()));
attributes.put("free_space", bytesToGb(datastore.getSummary().getFreeSpace()));
attributes.put("uncommitted", bytesToGb(datastore.getSummary().getUncommitted()));
insights.recordCustomEvent("cf_iaas_metrics", attributes);
datastoreCount++;
} else {
LOG.error("Unable to find datastore {}", name);
}
}
endTiming(start, datastoreCount);
}
开发者ID:newrelic,项目名称:newrelic-pcf-drain,代码行数:24,代码来源:VSphereMetricsForwarder.java
示例2: configureRelocateSpec
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
private VirtualMachineRelocateSpec configureRelocateSpec(ResourcePool resourcePool, Datastore datastore, VirtualMachine master)
throws Exception, InvalidProperty, RuntimeFault, RemoteException {
VirtualMachineRelocateSpec rSpec = new VirtualMachineRelocateSpec();
if (cloningStrategy.equals("linked")) {
ArrayList<Integer> diskKeys = getIndependentVirtualDiskKeys(master);
if (diskKeys.size() > 0) {
Datastore[] dss = master.getDatastores();
VirtualMachineRelocateSpecDiskLocator[] diskLocator = new VirtualMachineRelocateSpecDiskLocator[diskKeys.size()];
int count = 0;
for (Integer key : diskKeys) {
diskLocator[count] = new VirtualMachineRelocateSpecDiskLocator();
diskLocator[count].setDatastore(dss[0].getMOR());
diskLocator[count]
.setDiskMoveType(VirtualMachineRelocateDiskMoveOptions.moveAllDiskBackingsAndDisallowSharing
.toString());
diskLocator[count].setDiskId(key);
count = count + 1;
}
rSpec.setDiskMoveType(VirtualMachineRelocateDiskMoveOptions.createNewChildDiskBacking.toString());
rSpec.setDisk(diskLocator);
} else {
rSpec.setDiskMoveType(VirtualMachineRelocateDiskMoveOptions.createNewChildDiskBacking.toString());
}
} else if (cloningStrategy.equals("full")) {
rSpec.setDatastore(datastore.getMOR());
rSpec.setPool(resourcePool.getMOR());
//rSpec.setHost();
} else
throw new Exception(String.format("Cloning strategy %s not supported", cloningStrategy));
return rSpec;
}
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:33,代码来源:MasterToVirtualMachineCloneSpec.java
示例3: createRuntimeFaultFault
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* Create an instance of {@link JAXBElement }{@code <}{@link RuntimeFault }{@code >}}
*
*/
@XmlElementDecl(namespace = "urn:pbm", name = "RuntimeFaultFault")
public JAXBElement<RuntimeFault> createRuntimeFaultFault(RuntimeFault value) {
return new JAXBElement<RuntimeFault>(_RuntimeFaultFault_QNAME, RuntimeFault.class, null, value);
}
开发者ID:vmware,项目名称:photon-model,代码行数:9,代码来源:ObjectFactory.java
示例4: moveDatastoreFileTask
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
@Override
public Task moveDatastoreFileTask(String sourceName, Datacenter sourceDatacenter, String destinationName, Datacenter destinationDatacenter, boolean force) throws FileFault, InvalidDatastore, RuntimeFault, RemoteException {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:VSphereFileManager.java
示例5: copyVirtualDiskTask
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
Task copyVirtualDiskTask(String sourceName, Datacenter sourceDatacenter, String destName,
Datacenter destDatacenter, VirtualDiskSpec destSpec, Boolean force) throws FileFault, RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:3,代码来源:VirtualDiskManagerApi.java
示例6: addCustomFieldDef
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
CustomFieldDef addCustomFieldDef(String name, String moType, PrivilegePolicyDef fieldDefPolicy,
PrivilegePolicyDef fieldPolicy) throws DuplicateName, InvalidPrivilege, RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:3,代码来源:CustomFieldsManagerApi.java
示例7: queryDvsCheckCompatibility
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK4.1
*/
List<DistributedVirtualSwitchManagerCompatibilityResult> queryDvsCheckCompatibility(
DistributedVirtualSwitchManagerHostContainer hostContainer, DistributedVirtualSwitchManagerDvsProductSpec dvsProductSpec,
List<DistributedVirtualSwitchManagerHostDvsFilterSpec> hostFilterSpec) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:7,代码来源:DistributedVirtualSwitchManagerApi.java
示例8: acknowledgeAlarm
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since 4.0
*/
void acknowledgeAlarm(Alarm alarm, ManagedEntity entity) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:AlarmManagerApi.java
示例9: areAlarmActionsEnabled
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since 4.0
*/
boolean areAlarmActionsEnabled(ManagedEntity entity) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:AlarmManagerApi.java
示例10: enableAlarmActions
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since 4.0
*/
void enableAlarmActions(ManagedEntity entity, boolean enabled) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:AlarmManagerApi.java
示例11: allocateIpv6Address
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.1
*/
String allocateIpv6Address(Datacenter dc, int poolId, String allocationId) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:IpPoolManagerApi.java
示例12: loginExtensionByCertificate
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK4.0
*/
UserSession loginExtensionByCertificate(String extensionKey, String locale) throws InvalidLogin, InvalidLocale, NoClientCertificate, RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:SessionManagerApi.java
示例13: acquireGenericServiceTicket
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.0
*/
SessionManagerGenericServiceTicket acquireGenericServiceTicket(SessionManagerServiceRequestSpec spec) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:SessionManagerApi.java
示例14: updateLicenseLabel
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK4.0
*/
void updateLicenseLabel(String licenseKey, String labelKey, String labelValue) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:LicenseManagerApi.java
示例15: queryExpressionMetadata
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* SDK4.1 signature for back compatibility
*/
List<ProfileExpressionMetadata> queryExpressionMetadata(List<String> expressionName) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:ProfileComplianceManagerApi.java
示例16: queryPolicyMetadata
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* SDK5.0 signature
*/
List<ProfilePolicyMetadata> queryPolicyMetadata(List<String> policyName, Profile profile) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:ClusterProfileManagerApi.java
示例17: rectifyDvsOnHostTask
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.0
*/
Task rectifyDvsOnHostTask(List<HostSystem> hosts) throws DvsFault, RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:DistributedVirtualSwitchManagerApi.java
示例18: queryExtensionIpAllocationUsage
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.1
*/
List<ExtensionManagerIpAllocationUsage> queryExtensionIpAllocationUsage(List<String> extensionKeys) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:ExtensionManagerApi.java
示例19: queryManagedBy
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.0
*/
List<ManagedEntity> queryManagedBy(String extensionKey) throws RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:5,代码来源:ExtensionManagerApi.java
示例20: unregisterExtension
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* Un-register an existing plugin
* If <code>keyStr</code> is null then a <code>NullPointerException</code>
* is thrown.
*
* @param keyStr The unique key of the plugin
* @throws RemoteException
* @throws RuntimeFault
* @throws com.vmware.vim25.NotFound either because of the web service itself, or because of the service
* provider unable to handle the request.
*/
void unregisterExtension(String keyStr) throws NotFound, RuntimeFault, RemoteException;
开发者ID:igreenfield,项目名称:jcloud-vsphere,代码行数:13,代码来源:ExtensionManagerApi.java
注:本文中的com.vmware.vim25.RuntimeFault类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论