public class FinishRecordingElement extends RecordingStrategiesElement
| Modifier and Type | Field and Description |
|---|---|
private LongLongHashMap |
curCpuTime
The id-cpuTime mapping.
|
private long |
now
Stores the now.
|
private long |
threadId
The id of the current thread.
|
| Constructor and Description |
|---|
FinishRecordingElement()
Creates a new empty instance.
|
FinishRecordingElement(long now,
long threadId,
LongLongHashMap curCpuTime)
Creates a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
If a pool is used this method is for releasing the element from the pool.
|
int |
getIdentification()
Returns the unambiguous identification of the element.
|
long |
getNow()
Getter for the now.
|
void |
process(RecorderStrategy strategy)
Hands the information of the element to the
RecorderStrategy. |
void |
read(java.io.DataInputStream in)
Reads this instance from the given input stream.
|
void |
send(java.io.DataOutputStream out)
Writes this instance to the given output stream.
|
void |
setNow(long now)
Setter for the now.
|
releaseprivate long now
private long threadId
private LongLongHashMap curCpuTime
public FinishRecordingElement()
public FinishRecordingElement(long now,
long threadId,
LongLongHashMap curCpuTime)
now - the nowthreadId - the id of the current threadcurCpuTime - the id-CPUtime mapping of all threadspublic long getNow()
public void setNow(long now)
now - the now to setpublic void send(java.io.DataOutputStream out)
throws java.io.IOException
send in class RecordingStrategiesElementout - the output streamjava.io.IOException - in case of any I/O error or problempublic void read(java.io.DataInputStream in)
throws java.io.IOException
read in class RecordingStrategiesElementin - the input streamjava.io.IOException - in case of any I/O error or problempublic int getIdentification()
getIdentification in class RecordingStrategiesElementpublic void process(RecorderStrategy strategy)
RecorderStrategy.process in class RecordingStrategiesElementstrategy - the RecorderStrategypublic void clear()
clear in class RecordingStrategiesElement