Java 类com.vmware.vim25.InvalidArgument 实例源码

项目:primecloud-controller    文件:VmwareProcessClient.java   
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));
    }
}
项目:photon-model    文件:ObjectFactory.java   
/**
 * 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);
}
项目:vijava    文件:HostVirtualNicManager.java   
public VirtualNicManagerNetConfig queryNetConfig(String nicType) throws HostConfigFault, InvalidArgument, RuntimeFault, RemoteException
{
    return getVimService().queryNetConfig(getMOR(), nicType);
}
项目:vijava    文件:HostVirtualNicManager.java   
public void deselectVnicForNicType(String nicType, String device) throws HostConfigFault, InvalidArgument, RuntimeFault, RemoteException
{
    getVimService().deselectVnicForNicType(getMOR(), nicType, device);
}
项目:vijava    文件:HostVirtualNicManager.java   
public void selectVnicForNicType(String nicType, String device) throws HostConfigFault, InvalidArgument, RuntimeFault, RemoteException
{
    getVimService().selectVnicForNicType(getMOR(), nicType, device);
}