public class ClientVmInfo extends Object implements Serializable
ClientVmMgr API, which allows
hydra clients to stop and start client VMs.
The info objects are used to pass in descriptions of the source VM (the one calling the stop or start method) and the target VM (the one which will be stopped or started). Information about the target VM can be specific enough to match only one VM or vague enough so that more than one VM might match (though only one will be chosen and acted upon).
Methods in the ClientVmMgr API return another info object containing full information about the selected target VM.
| Modifier | Constructor and Description |
|---|---|
protected |
ClientVmInfo()
Creates an object describing this client VM, for use with the
ClientVmMgr API. |
|
ClientVmInfo(BridgeHelper.Endpoint endpoint)
Creates an object describing a specific bridge server VM, for use with
the
ClientVmMgr API. |
|
ClientVmInfo(int vmid)
Creates an object describing a client VM, for use with the
ClientVmMgr API. |
|
ClientVmInfo(Integer vmid,
String clientName,
String logicalHost)
Creates an object describing a client VM, for use with the
ClientVmMgr API. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
clientNameMatches(String aClientName) |
String |
getClientName() |
String |
getLogicalHost() |
Integer |
getVmid() |
protected void |
setClientName(String clientName) |
protected void |
setLogicalHost(String logicalHost) |
protected void |
setVmid(Integer vmid) |
String |
toString() |
protected ClientVmInfo()
ClientVmMgr API.
For internal hydra use only.
public ClientVmInfo(int vmid)
ClientVmMgr API.vmid - The unique logical id for the client VM.IllegalArgumentException - if the info provided does not exist.public ClientVmInfo(Integer vmid, String clientName, String logicalHost)
ClientVmMgr API.vmid - The unique logical id for the client VM. Use null
to allow a VM with any ID to match.clientName - One of the values in ClientPrms.names.
Use null to match any logical client name.logicalHost - One of the values in HostPrms.names.
Use null to match any logical host name.IllegalArgumentException - if any of info provided does not exist.public ClientVmInfo(BridgeHelper.Endpoint endpoint)
ClientVmMgr API. To describe a more generic server, use
ClientVmInfo(Integer,String,String).endpoint - The BridgeHelper.Endpoint for the server.IllegalArgumentException - if the endpoint is null.public Integer getVmid()
protected void setVmid(Integer vmid)
public String getClientName()
hydra.ClientPrms-names.protected void setClientName(String clientName)
protected boolean clientNameMatches(String aClientName)
public String getLogicalHost()
hydra.HostPrms-names.protected void setLogicalHost(String logicalHost)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.