本文整理汇总了Java中com.vmware.vim25.RuntimeFault类的典型用法代码示例。如果您正苦于以下问题:Java RuntimeFault类的具体用法?Java RuntimeFault怎么用?Java RuntimeFault使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RuntimeFault类属于com.vmware.vim25包,在下文中一共展示了RuntimeFault类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例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);
}
示例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.
}
示例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;
示例6: addCustomFieldDef
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
CustomFieldDef addCustomFieldDef(String name, String moType, PrivilegePolicyDef fieldDefPolicy,
PrivilegePolicyDef fieldPolicy) throws DuplicateName, InvalidPrivilege, RuntimeFault, RemoteException;
示例7: queryDvsCheckCompatibility
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK4.1
*/
List<DistributedVirtualSwitchManagerCompatibilityResult> queryDvsCheckCompatibility(
DistributedVirtualSwitchManagerHostContainer hostContainer, DistributedVirtualSwitchManagerDvsProductSpec dvsProductSpec,
List<DistributedVirtualSwitchManagerHostDvsFilterSpec> hostFilterSpec) throws RuntimeFault, RemoteException;
示例8: acknowledgeAlarm
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since 4.0
*/
void acknowledgeAlarm(Alarm alarm, ManagedEntity entity) throws RuntimeFault, RemoteException;
示例9: areAlarmActionsEnabled
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since 4.0
*/
boolean areAlarmActionsEnabled(ManagedEntity entity) throws RuntimeFault, RemoteException;
示例10: enableAlarmActions
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since 4.0
*/
void enableAlarmActions(ManagedEntity entity, boolean enabled) throws RuntimeFault, RemoteException;
示例11: allocateIpv6Address
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.1
*/
String allocateIpv6Address(Datacenter dc, int poolId, String allocationId) throws RuntimeFault, RemoteException;
示例12: loginExtensionByCertificate
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK4.0
*/
UserSession loginExtensionByCertificate(String extensionKey, String locale) throws InvalidLogin, InvalidLocale, NoClientCertificate, RuntimeFault, RemoteException;
示例13: acquireGenericServiceTicket
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK5.0
*/
SessionManagerGenericServiceTicket acquireGenericServiceTicket(SessionManagerServiceRequestSpec spec) throws RuntimeFault, RemoteException;
示例14: updateLicenseLabel
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* @since SDK4.0
*/
void updateLicenseLabel(String licenseKey, String labelKey, String labelValue) throws RuntimeFault, RemoteException;
示例15: queryExpressionMetadata
import com.vmware.vim25.RuntimeFault; //导入依赖的package包/类
/**
* SDK4.1 signature for back compatibility
*/
List<ProfileExpressionMetadata> queryExpressionMetadata(List<String> expressionName) throws RuntimeFault, RemoteException;