public class VdsServerWrapper extends Object implements IVdsServer
Constructor and Description |
---|
VdsServerWrapper(VdsServerConnector innerImplementor,
org.apache.commons.httpclient.HttpClient httpClient) |
public VdsServerWrapper(VdsServerConnector innerImplementor, org.apache.commons.httpclient.HttpClient httpClient)
public org.apache.commons.httpclient.HttpClient getHttpClient()
public OneVmReturnForXmlRpc create(XmlRpcStruct createInfo)
create
in interface IVdsServer
public StatusOnlyReturnForXmlRpc destroy(String vmId)
destroy
in interface IVdsServer
public StatusOnlyReturnForXmlRpc shutdown(String vmId, String timeout, String message)
shutdown
in interface IVdsServer
public StatusOnlyReturnForXmlRpc shutdownHost(int reboot)
shutdownHost
in interface IVdsServer
public OneVmReturnForXmlRpc pause(String vmId)
pause
in interface IVdsServer
public StatusOnlyReturnForXmlRpc hibernate(String vmId, String hiberVolHandle)
hibernate
in interface IVdsServer
public OneVmReturnForXmlRpc powerDown(String vmId)
powerDown
in interface IVdsServer
public OneVmReturnForXmlRpc reset(String vmId)
reset
in interface IVdsServer
public OneVmReturnForXmlRpc resume(String vmId)
resume
in interface IVdsServer
public VMListReturnForXmlRpc list()
list
in interface IVdsServer
public VDSInfoReturnForXmlRpc getCapabilities()
getCapabilities
in interface IVdsServer
public VDSInfoReturnForXmlRpc getVdsStats()
getVdsStats
in interface IVdsServer
public StatusOnlyReturnForXmlRpc desktopLogin(String vmId, String domain, String user, String password)
desktopLogin
in interface IVdsServer
public StatusOnlyReturnForXmlRpc desktopLogoff(String vmId, String force)
desktopLogoff
in interface IVdsServer
public StatusOnlyReturnForXmlRpc desktopLock(String vmId)
desktopLock
in interface IVdsServer
public VMInfoListReturnForXmlRpc getVmStats(String vmId)
getVmStats
in interface IVdsServer
public VMInfoListReturnForXmlRpc getAllVmStats()
getAllVmStats
in interface IVdsServer
public StatusOnlyReturnForXmlRpc migrate(Map<String,String> migrationInfo)
migrate
in interface IVdsServer
public StatusOnlyReturnForXmlRpc migrateStatus(String vmId)
migrateStatus
in interface IVdsServer
public StatusOnlyReturnForXmlRpc migrateCancel(String vmId)
migrateCancel
in interface IVdsServer
public OneVmReturnForXmlRpc changeDisk(String vmId, String imageLocation)
changeDisk
in interface IVdsServer
public OneVmReturnForXmlRpc changeFloppy(String vmId, String imageLocation)
changeFloppy
in interface IVdsServer
public StatusOnlyReturnForXmlRpc heartBeat()
heartBeat
in interface IVdsServer
public StatusOnlyReturnForXmlRpc monitorCommand(String vmId, String monitorCommand)
monitorCommand
in interface IVdsServer
public StatusOnlyReturnForXmlRpc sendHcCmdToDesktop(String vmId, String hcCommand)
sendHcCmdToDesktop
in interface IVdsServer
public StatusOnlyReturnForXmlRpc setVmTicket(String vmId, String otp64, String sec)
setVmTicket
in interface IVdsServer
public StatusOnlyReturnForXmlRpc startSpice(String vdsIp, int port, String ticket)
startSpice
in interface IVdsServer
public StatusOnlyReturnForXmlRpc addNetwork(String bridge, String vlan, String bond, String[] nics, Map<String,String> options)
addNetwork
in interface IVdsServer
public StatusOnlyReturnForXmlRpc delNetwork(String bridge, String vlan, String bond, String[] nics)
delNetwork
in interface IVdsServer
public StatusOnlyReturnForXmlRpc editNetwork(String oldBridge, String newBridge, String vlan, String bond, String[] nics, Map<String,String> options)
editNetwork
in interface IVdsServer
public StatusOnlyReturnForXmlRpc setupNetworks(XmlRpcStruct networks, XmlRpcStruct bonding, XmlRpcStruct options)
setupNetworks
in interface IVdsServer
public StatusOnlyReturnForXmlRpc setSafeNetworkConfig()
setSafeNetworkConfig
in interface IVdsServer
public FenceStatusReturnForXmlRpc fenceNode(String ip, String port, String type, String user, String password, String action, String secured, String options)
fenceNode
in interface IVdsServer
public ServerConnectionStatusReturnForXmlRpc connectStorageServer(int serverType, String spUUID, Map<String,String>[] args)
connectStorageServer
in interface IVdsServer
public ServerConnectionStatusReturnForXmlRpc validateStorageServerConnection(int serverType, String spUUID, Map<String,String>[] args)
validateStorageServerConnection
in interface IVdsServer
public ServerConnectionStatusReturnForXmlRpc disconnectStorageServer(int serverType, String spUUID, Map<String,String>[] args)
disconnectStorageServer
in interface IVdsServer
public ServerConnectionListReturnForXmlRpc getStorageConnectionsList(String spUUID)
getStorageConnectionsList
in interface IVdsServer
public StatusOnlyReturnForXmlRpc validateStorageDomain(String sdUUID)
validateStorageDomain
in interface IVdsServer
public StatusOnlyReturnForXmlRpc createStorageDomain(int domainType, String sdUUID, String domainName, String arg, int storageType)
createStorageDomain
in interface IVdsServer
public StatusOnlyReturnForXmlRpc createStorageDomain(int domainType, String sdUUID, String domainName, String arg, int storageType, String storageFormatType)
createStorageDomain
in interface IVdsServer
public StatusOnlyReturnForXmlRpc formatStorageDomain(String sdUUID)
formatStorageDomain
in interface IVdsServer
public StatusOnlyReturnForXmlRpc connectStoragePool(String spUUID, int hostSpmId, String SCSIKey, String masterdomainId, int masterVersion)
connectStoragePool
in interface IVdsServer
public StatusOnlyReturnForXmlRpc disconnectStoragePool(String spUUID, int hostSpmId, String SCSIKey)
disconnectStoragePool
in interface IVdsServer
public StatusOnlyReturnForXmlRpc createStoragePool(int poolType, String spUUID, String poolName, String msdUUID, String[] domList, int masterVersion, String lockPolicy, int lockRenewalIntervalSec, int leaseTimeSec, int ioOpTimeoutSec, int leaseRetries)
createStoragePool
in interface IVdsServer
public StatusOnlyReturnForXmlRpc reconstructMaster(String spUUID, String poolName, String masterDom, Map<String,String> domDict, int masterVersion, String lockPolicy, int lockRenewalIntervalSec, int leaseTimeSec, int ioOpTimeoutSec, int leaseRetries)
reconstructMaster
in interface IVdsServer
public OneStorageDomainStatsReturnForXmlRpc getStorageDomainStats(String sdUUID)
getStorageDomainStats
in interface IVdsServer
public OneStorageDomainInfoReturnForXmlRpc getStorageDomainInfo(String sdUUID)
getStorageDomainInfo
in interface IVdsServer
public StorageDomainListReturnForXmlRpc getStorageDomainsList(String sdUUID, int domainType, int poolType, String path)
getStorageDomainsList
in interface IVdsServer
public IsoListReturnForXmlRpc getIsoList(String spUUID)
getIsoList
in interface IVdsServer
public OneUuidReturnForXmlRpc createVG(String sdUUID, String[] deviceList)
createVG
in interface IVdsServer
public StatusOnlyReturnForXmlRpc removeVG(String vgUUID)
removeVG
in interface IVdsServer
public VGListReturnForXmlRpc getVGList()
getVGList
in interface IVdsServer
public OneVGReturnForXmlRpc getVGInfo(String vgUUID)
getVGInfo
in interface IVdsServer
public LUNListReturnForXmlRpc getDeviceList(int storageType)
getDeviceList
in interface IVdsServer
public OneLUNReturnForXmlRpc getDeviceInfo(String devGUID)
getDeviceInfo
in interface IVdsServer
public DevicesVisibilityMapReturnForXmlRpc getDevicesVisibility(String[] devicesList)
getDevicesVisibility
in interface IVdsServer
public IQNListReturnForXmlRpc discoverSendTargets(Map<String,String> args)
discoverSendTargets
in interface IVdsServer
public SessionsListReturnForXmlRpc getSessionList()
getSessionList
in interface IVdsServer
public OneUuidReturnForXmlRpc spmStart(String spUUID, int prevID, String prevLVER, int recoveryMode, String SCSIFencing, int maxHostId)
spmStart
in interface IVdsServer
public OneUuidReturnForXmlRpc spmStart(String spUUID, int prevID, String prevLVER, int recoveryMode, String SCSIFencing, int maxHostId, String storagePoolFormatType)
spmStart
in interface IVdsServer
public StatusOnlyReturnForXmlRpc spmStop(String spUUID)
spmStop
in interface IVdsServer
public SpmStatusReturnForXmlRpc spmStatus(String spUUID)
spmStatus
in interface IVdsServer
public StatusOnlyReturnForXmlRpc fenceSpmStorage(String spUUID, int prevID, String prevLVER)
fenceSpmStorage
in interface IVdsServer
public StatusOnlyReturnForXmlRpc refreshStoragePool(String spUUID, String msdUUID, int masterVersion)
refreshStoragePool
in interface IVdsServer
public TaskStatusReturnForXmlRpc getTaskStatus(String taskUUID)
getTaskStatus
in interface IVdsServer
public TaskStatusListReturnForXmlRpc getAllTasksStatuses()
getAllTasksStatuses
in interface IVdsServer
public TaskInfoReturnForXmlRpc getTaskInfo(String taskUUID)
getTaskInfo
in interface IVdsServer
public TaskInfoListReturnForXmlRpc getAllTasksInfo()
getAllTasksInfo
in interface IVdsServer
public StatusOnlyReturnForXmlRpc stopTask(String taskUUID)
stopTask
in interface IVdsServer
public StatusOnlyReturnForXmlRpc clearTask(String taskUUID)
clearTask
in interface IVdsServer
public StatusOnlyReturnForXmlRpc revertTask(String taskUUID)
revertTask
in interface IVdsServer
Copyright © 2012. All Rights Reserved.