public class ClientVmRecord
extends java.lang.Object
implements java.io.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() |
java.lang.String |
getClientName() |
protected java.util.Map<java.lang.Integer,ClientRecord> |
getClients() |
protected java.util.Collection |
getCopyOfClientCollection()
Returns a copy of the client record values map for use by the mapper.
|
protected java.lang.String |
getHost() |
protected ClientVmInfo |
getInfo()
Returns a fully specified
ClientVmInfo for this VM. |
protected java.lang.String |
getJavaHome() |
protected java.lang.String |
getLogicalHost() |
protected HostHelper.OSType |
getOSType() |
int |
getPid() |
ClientRecord |
getRepresentativeClient() |
protected int |
getState() |
java.lang.String |
getStateAsString(int state) |
java.lang.String |
getStateString() |
protected java.lang.String |
getVersion() |
java.lang.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) |
java.lang.String |
toClientString() |
java.lang.String |
toInfoString() |
java.lang.String |
toStateString() |
java.lang.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 java.lang.Integer getVmid()
protected int getBaseThreadId()
protected java.util.Map<java.lang.Integer,ClientRecord> getClients()
public ClientRecord getClient(int tid)
public ClientRecord getRepresentativeClient()
protected void addClient(ClientRecord cr)
protected java.util.Collection getCopyOfClientCollection()
public ClientDescription getClientDescription()
public java.lang.String getClientName()
protected java.lang.String getLogicalHost()
protected java.lang.String getHost()
protected HostHelper.OSType getOSType()
protected int getState()
protected void setState(int state)
public java.lang.String getStateString()
public java.lang.String getStateAsString(int state)
protected java.lang.String getJavaHome()
protected void bumpJavaHome()
protected java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toInfoString()
public java.lang.String toStateString()
public java.lang.String toClientString()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.