public class ClientVmRecord extends Object implements Serializable
ClientRecord objects for the client
threads in this VM, plus runtime VM management information, such as the PID.| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEAD |
protected static int |
DISCONNECTED |
protected static int |
LIVE |
protected static int |
NO_PID
Indicates that the process has no valid PID.
|
protected static int |
PENDING |
protected static int |
POTENTIAL |
| Constructor and Description |
|---|
ClientVmRecord(int vmid,
int basetid,
ClientDescription cd) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acting()
Returns true if any client in the vm is in the process of initiating a
dynamic action.
|
protected void |
addClient(ClientRecord cr) |
protected void |
bumpJavaHome() |
protected void |
bumpVersion() |
protected void |
decDynamicActionCount()
Decrements the count of clients initiating a dynamic action.
|
protected boolean |
fullyRegistered()
Returns true if all clients in this vm have registered.
|
protected int |
getBaseThreadId() |
ClientRecord |
getClient(int tid) |
ClientDescription |
getClientDescription() |
String |
getClientName() |
protected Map<Integer,ClientRecord> |
getClients() |
protected Collection |
getCopyOfClientCollection()
Returns a copy of the client record values map for use by the mapper.
|
protected String |
getHost() |
protected ClientVmInfo |
getInfo()
Returns a fully specified
ClientVmInfo for this VM. |
protected String |
getJavaHome() |
protected String |
getLogicalHost() |
protected HostHelper.OSType |
getOSType() |
int |
getPid() |
ClientRecord |
getRepresentativeClient() |
protected int |
getState() |
String |
getStateAsString(int state) |
String |
getStateString() |
protected String |
getVersion() |
Integer |
getVmid() |
protected void |
incDynamicActionCount()
Increments the count of clients initiating a dynamic action.
|
protected boolean |
isDead()
Returns true if the vm is dead.
|
protected boolean |
isDisconnected()
Returns true if the vm was previously disconnected in a dynamic action and is not
otherwise dead.
|
protected boolean |
isDynamic()
Returns true if the vm is undergoing dynamic action.
|
protected boolean |
isLive()
Returns true if the vm is live.
|
protected boolean |
matches(ClientVmInfo info)
Answers whether this client VM satisfies the requirements provided by the
ClientVmInfo. |
void |
notifyDynamicActionComplete(int actionId,
int lastKnownPid)
Notifies this client VM that the dynamic action is complete.
|
protected void |
registerClient()
Registers a client with this vm.
|
protected void |
registerDisconnect() |
protected boolean |
registeredDisconnect() |
protected void |
reserve() |
protected boolean |
reserved() |
protected void |
reset()
Resets the vm to its primordial state (except for version and java home).
|
protected void |
resetForDisconnect()
Resets the vm to the proper state after a dynamic disconnect.
|
protected void |
setPid(int pid) |
protected void |
setState(int state) |
String |
toClientString() |
String |
toInfoString() |
String |
toStateString() |
String |
toString()
Print (cached) non-runtime information about the vm.
|
protected void |
unreserve() |
protected static int NO_PID
protected static final int POTENTIAL
protected static final int PENDING
protected static final int LIVE
protected static final int DEAD
protected static final int DISCONNECTED
public ClientVmRecord(int vmid,
int basetid,
ClientDescription cd)
public Integer getVmid()
protected int getBaseThreadId()
protected Map<Integer,ClientRecord> getClients()
public ClientRecord getClient(int tid)
public ClientRecord getRepresentativeClient()
protected void addClient(ClientRecord cr)
protected Collection getCopyOfClientCollection()
public ClientDescription getClientDescription()
public String getClientName()
protected String getLogicalHost()
protected String getHost()
protected HostHelper.OSType getOSType()
protected int getState()
protected void setState(int state)
public String getStateString()
public String getStateAsString(int state)
protected String getJavaHome()
protected void bumpJavaHome()
protected String getVersion()
protected void bumpVersion()
public int getPid()
protected void setPid(int pid)
protected void registerClient()
protected boolean fullyRegistered()
protected void incDynamicActionCount()
protected void decDynamicActionCount()
protected boolean acting()
protected void reserve()
protected void unreserve()
protected boolean reserved()
protected boolean isDynamic()
protected void registerDisconnect()
protected boolean registeredDisconnect()
protected boolean isDisconnected()
protected boolean isLive()
protected boolean isDead()
RebootMgr to avoid
returning permanently dead vms.protected void reset()
protected void resetForDisconnect()
protected boolean matches(ClientVmInfo info)
ClientVmInfo.public void notifyDynamicActionComplete(int actionId,
int lastKnownPid)
protected ClientVmInfo getInfo()
ClientVmInfo for this VM.public String toString()
public String toInfoString()
public String toStateString()
public String toClientString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.