public void removeCustomFieldDef(String name, Class<?> type) { CustomFieldsManager manager = vmwareClient.getServiceInstance().getCustomFieldsManager(); CustomFieldDef[] defs = manager.getField(); String typeName = type.getSimpleName(); CustomFieldDef customFieldDef = null; if (defs != null) { for (CustomFieldDef def : defs) { if (def.getName().equals(name) && def.getManagedObjectType().equals(typeName)) { customFieldDef = def; } } } if (customFieldDef == null) { // 既にカスタムフィールドが存在しない場合はスキップ } try { manager.removeCustomFieldDef(customFieldDef.getKey()); } catch (InvalidArgument ignore) { // 他のスレッドで同時に削除された場合に備えて握りつぶす return; } catch (RemoteException e) { throw new AutoException("EPROCESS-000526", e, name, typeName); } if (log.isInfoEnabled()) { log.info(MessageUtils.getMessage("IPROCESS-100462", name)); } }
/** * Create an instance of {@link JAXBElement }{@code <}{@link InvalidArgument }{@code >}} * */ @XmlElementDecl(namespace = "urn:pbm", name = "InvalidArgumentFault") public JAXBElement<InvalidArgument> createInvalidArgumentFault(InvalidArgument value) { return new JAXBElement<InvalidArgument>(_InvalidArgumentFault_QNAME, InvalidArgument.class, null, value); }
public VirtualNicManagerNetConfig queryNetConfig(String nicType) throws HostConfigFault, InvalidArgument, RuntimeFault, RemoteException { return getVimService().queryNetConfig(getMOR(), nicType); }
public void deselectVnicForNicType(String nicType, String device) throws HostConfigFault, InvalidArgument, RuntimeFault, RemoteException { getVimService().deselectVnicForNicType(getMOR(), nicType, device); }
public void selectVnicForNicType(String nicType, String device) throws HostConfigFault, InvalidArgument, RuntimeFault, RemoteException { getVimService().selectVnicForNicType(getMOR(), nicType, device); }