public class ThreadProtocol
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ThreadProtocol()
Instantiates a new thread protocol.
|
ThreadProtocol(long timestamp,
float loadCPU)
Instantiates a new thread protocol.
|
ThreadProtocol(long timestamp,
java.lang.String processID,
java.lang.String containerName,
float loadCPU,
java.util.Vector<ThreadDetail> threadDetails)
Instantiates a new thread protocol.
|
Modifier and Type | Method and Description |
---|---|
void |
addThreadProtocol(ThreadProtocol threadProtocol2Add)
Adds the specified ThreadProtocol to the current if the time stamps of the protocols are equal.
|
java.lang.String |
getContainerName()
Gets the container name.
|
java.lang.String |
getJVMName()
Gets the JVM name.
|
float |
getLoadCPU()
Gets the load CPU.
|
java.lang.String |
getMachineName()
Gets the machine name.
|
double |
getMflops() |
java.lang.String |
getProcessID()
Gets the machine name.
|
java.util.Vector<ThreadDetail> |
getThreadDetails()
Gets the thread details.
|
long |
getTimestamp()
Gets the time stamp.
|
boolean |
load(java.io.File file2Read)
Load.
|
boolean |
save(java.io.File file2Save)
Save.
|
void |
setContainerName(java.lang.String containerName)
Sets the container name.
|
void |
setJVMName(java.lang.String jvmName)
Sets the JVM name.
|
void |
setLoadCPU(float loadCPU)
Sets the load CPU.
|
void |
setMachineName(java.lang.String machineName)
Sets the machine name.
|
void |
setMflops(double mflops) |
void |
setProcessID(java.lang.String processID)
Sets the processID .
|
void |
setThreadDetails(java.util.Vector<ThreadDetail> threadDetails)
Sets the thread details.
|
void |
setTimestamp(long timestamp)
Sets the time stamp.
|
public ThreadProtocol()
public ThreadProtocol(long timestamp, float loadCPU)
timestamp
- the time stamppublic ThreadProtocol(long timestamp, java.lang.String processID, java.lang.String containerName, float loadCPU, java.util.Vector<ThreadDetail> threadDetails)
timestamp
- the time stampprocessID
- the process idcontainerName
- the container namethreadDetails
- the thread detailspublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- the new time stamppublic void setLoadCPU(float loadCPU)
loadCPU
- the new load CPUpublic float getLoadCPU()
public java.util.Vector<ThreadDetail> getThreadDetails()
public void setThreadDetails(java.util.Vector<ThreadDetail> threadDetails)
threadDetails
- the new thread detailspublic java.lang.String getContainerName()
public void setContainerName(java.lang.String containerName)
containerName
- the new container namepublic java.lang.String getProcessID()
public void setProcessID(java.lang.String processID)
processID
- the process IDpublic boolean save(java.io.File file2Save)
file2Save
- the file2 savepublic void addThreadProtocol(ThreadProtocol threadProtocol2Add)
threadProtocol2Add
- the thread protocol to addpublic boolean load(java.io.File file2Read)
file2Read
- the file2 readpublic void setJVMName(java.lang.String jvmName)
jvmName
- the new JVM namepublic void setMachineName(java.lang.String machineName)
machineName
- the new machine namepublic java.lang.String getJVMName()
public java.lang.String getMachineName()
public double getMflops()
public void setMflops(double mflops)
mflops
- the MFLOPS to set