/*================================================================================
Copyright (c) 2013 Steve Jin. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of VMware, Inc. nor the names of its contributors may be used
to endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL VMWARE, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
================================================================================*/
package com.vmware.vim25.ws;
import com.vmware.vim25.*;
import java.util.Calendar;
/**
* @author Steve Jin (http://www.doublecloud.org)
* @version 5.1
*/
public class VimStub
{
private WSClient wsc = null;
public VimStub(String url, boolean ignoreCert) throws java.net.MalformedURLException {
this.wsc = new WSClient(url, ignoreCert);
}
public VimStub(WSClient wsc) {
this.wsc = wsc;
}
public WSClient getWsc() {
return wsc;
}
public void destroyPropertyFilter(ManagedObjectReference _this) throws java.rmi.RemoteException, RuntimeFault {
Argument[] paras = new Argument[1];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
wsc.invoke("DestroyPropertyFilter", paras, null);
}
public ManagedObjectReference createFilter(ManagedObjectReference _this, PropertyFilterSpec spec, boolean partialUpdates) throws java.rmi.RemoteException, InvalidProperty, RuntimeFault {
Argument[] paras = new Argument[3];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("spec", "PropertyFilterSpec", spec);
paras[2] = new Argument("partialUpdates", "boolean", partialUpdates);
return (ManagedObjectReference) wsc.invoke("CreateFilter", paras, "ManagedObjectReference");
}
public ObjectContent[] retrieveProperties(ManagedObjectReference _this, PropertyFilterSpec[] specSet) throws java.rmi.RemoteException, InvalidProperty, RuntimeFault {
Argument[] paras = new Argument[2];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("specSet", "PropertyFilterSpec[]", specSet);
return (ObjectContent[]) wsc.invoke("RetrieveProperties", paras, "ObjectContent[]");
}
public UpdateSet checkForUpdates(ManagedObjectReference _this, String version) throws java.rmi.RemoteException, InvalidCollectorVersion, RuntimeFault {
Argument[] paras = new Argument[2];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("version", "String", version);
return (UpdateSet) wsc.invoke("CheckForUpdates", paras, "UpdateSet");
}
public UpdateSet waitForUpdates(ManagedObjectReference _this, String version) throws java.rmi.RemoteException, InvalidCollectorVersion, RuntimeFault {
Argument[] paras = new Argument[2];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("version", "String", version);
return (UpdateSet) wsc.invoke("WaitForUpdates", paras, "UpdateSet", true);
}
public void stopUpdates() {
wsc.disconnect();
}
public void cancelWaitForUpdates(ManagedObjectReference _this) throws java.rmi.RemoteException, RuntimeFault {
Argument[] paras = new Argument[1];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
wsc.invoke("CancelWaitForUpdates", paras, null);
}
public UpdateSet waitForUpdatesEx(ManagedObjectReference _this, String version, WaitOptions options) throws java.rmi.RemoteException, InvalidCollectorVersion, RuntimeFault {
Argument[] paras = new Argument[3];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("version", "String", version);
paras[2] = new Argument("options", "WaitOptions", options);
return (UpdateSet) wsc.invoke("WaitForUpdatesEx", paras, "UpdateSet");
}
public RetrieveResult retrievePropertiesEx(ManagedObjectReference _this, PropertyFilterSpec[] specSet, RetrieveOptions options) throws java.rmi.RemoteException, InvalidProperty, RuntimeFault {
Argument[] paras = new Argument[3];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("specSet", "PropertyFilterSpec[]", specSet);
paras[2] = new Argument("options", "RetrieveOptions", options);
return (RetrieveResult) wsc.invoke("RetrievePropertiesEx", paras, "RetrieveResult");
}
public RetrieveResult continueRetrievePropertiesEx(ManagedObjectReference _this, String token) throws java.rmi.RemoteException, InvalidProperty, RuntimeFault {
Argument[] paras = new Argument[2];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("token", "String", token);
return (RetrieveResult) wsc.invoke("ContinueRetrievePropertiesEx", paras, "RetrieveResult");
}
public void cancelRetrievePropertiesEx(ManagedObjectReference _this, String token) throws java.rmi.RemoteException, InvalidProperty, RuntimeFault {
Argument[] paras = new Argument[2];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("token", "String", token);
wsc.invoke("CancelRetrievePropertiesEx", paras, null);
}
public ManagedObjectReference createPropertyCollector(ManagedObjectReference _this) throws java.rmi.RemoteException, RuntimeFault {
Argument[] paras = new Argument[1];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
return (ManagedObjectReference) wsc.invoke("CreatePropertyCollector", paras, "ManagedObjectReference");
}
public void destroyPropertyCollector(ManagedObjectReference _this) throws java.rmi.RemoteException, RuntimeFault {
Argument[] paras = new Argument[1];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
wsc.invoke("DestroyPropertyCollector", paras, null);
}
public int addAuthorizationRole(ManagedObjectReference _this, String name, String[] privIds) throws java.rmi.RemoteException, AlreadyExists, InvalidName, RuntimeFault {
Argument[] paras = new Argument[3];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("name", "String", name);
paras[2] = new Argument("privIds", "String[]", privIds);
Integer ret = (Integer) wsc.invoke("AddAuthorizationRole", paras, "int");
return ret.intValue();
}
public void removeAuthorizationRole(ManagedObjectReference _this, int roleId, boolean failIfUsed) throws java.rmi.RemoteException, NotFound, RemoveFailed, RuntimeFault {
Argument[] paras = new Argument[3];
paras[0] = new Argument("_this", "ManagedObjectReference", _this);
paras[1] = new Argument("roleId", "int", roleId);
paras[2] = new Argument("failIfUsed", "boolean", failIfUsed);
wsc.invoke("RemoveAuthorizationRole", paras, null);
}
public void updateAutho
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
vijava 二次开发VMware (2000个子文件)
bootstrap.css 143KB
bootstrap.css 143KB
bootstrap.css 143KB
bootstrap.min.css 118KB
bootstrap.min.css 118KB
bootstrap.min.css 118KB
easyui.css 66KB
easyui.css 66KB
easyui.css 66KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 65KB
easyui.css 63KB
easyui.css 63KB
easyui.css 63KB
easyui.css 62KB
easyui.css 62KB
easyui.css 62KB
font-awesome.css 37KB
font-awesome.css 37KB
font-awesome.css 37KB
base_sms.css 32KB
base_sms.css 32KB
base_sms2.css 32KB
base_sms2.css 32KB
font-awesome.min.css 30KB
font-awesome.min.css 30KB
font-awesome.min.css 30KB
bootstrap-theme.css 26KB
bootstrap-theme.css 26KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 9KB
tabs.css 7KB
tabs.css 7KB
tabs.css 7KB
tabs.css 7KB
tabs.css 7KB
tabs.css 7KB
mobile.css 7KB
mobile.css 7KB
mobile.css 7KB
color.css 6KB
color.css 6KB
color.css 6KB
zTreeStyle.css 6KB
zTreeStyle.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
datagrid.css 6KB
panel.css 6KB
panel.css 6KB
panel.css 6KB
panel.css 6KB
panel.css 6KB
panel.css 6KB
datagrid.css 6KB
panel.css 6KB
panel.css 6KB
datagrid.css 6KB
datagrid.css 6KB
panel.css 6KB
panel.css 5KB
panel.css 5KB
panel.css 5KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 5KB
datagrid.css 5KB
panel.css 5KB
panel.css 5KB
panel.css 5KB
panel.css 5KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- wanzuwodou2018-08-30很好。开源网站上下太慢了。
- sinux1812020-07-28值得,很不错的东西
- qq_399674042018-10-15你好,我下载了你的代码,想请问一下,怎么获取虚拟机的状态和主机的状态信息
- jcl8602102018-08-23很好。开源网站上下太慢了
- deshenglin2018-07-18很好。开源网站上下太慢了。
易水寒_099
- 粉丝: 3
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功