public class AssignToAllElement extends RecordingStrategiesElement implements Poolable<AssignToAllElement>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
enter
Stores the enter state.
|
private long |
now
Stores the now.
|
private java.lang.String |
recId
Stores the recId.
|
private ThreadsInfo |
threadsInfo
Stores the
ThreadsInfo. |
| Constructor and Description |
|---|
AssignToAllElement()
Creates a new empty instance.
|
AssignToAllElement(java.lang.String recId,
boolean enter,
long now,
ThreadsInfo threadsInfo)
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.
|
AssignToAllElement |
create()
Creates a further instance of this instances (intended as factory method
to be executed on a prototypical instance).
|
boolean |
getEnter()
Getter for enter.
|
int |
getIdentification()
Returns the unambiguous identification of the element.
|
long |
getNow()
Getter for the now.
|
java.lang.String |
getRecId()
Getter for the recId.
|
ThreadsInfo |
getThreadsInfo()
Getter for the
ThreadsInfo. |
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 |
release()
Release this element from the pool if this instance is
Poolable. |
void |
send(java.io.DataOutputStream out)
Writes this instance to the given output stream.
|
void |
setEnter(boolean enter)
Setter for the enter state.
|
void |
setNow(long now)
Setter for the now.
|
void |
setRecId(java.lang.String recId)
Setter for the recId.
|
void |
setThreadsInfo(ThreadsInfo threadsInfo)
Setter for the
ThreadsInfo. |
private java.lang.String recId
private boolean enter
private long now
private ThreadsInfo threadsInfo
ThreadsInfo.public AssignToAllElement()
public AssignToAllElement(java.lang.String recId,
boolean enter,
long now,
ThreadsInfo threadsInfo)
recId - the recording id (may be also the variability prefix)enter - true if this is a method enter event,
false elsenow - the current system timethreadsInfo - information on the current threadpublic java.lang.String getRecId()
public void setRecId(java.lang.String recId)
recId - the recId to setpublic boolean getEnter()
public void setEnter(boolean enter)
enter - the new enter statepublic long getNow()
public void setNow(long now)
now - the now to setpublic ThreadsInfo getThreadsInfo()
ThreadsInfo.public void setThreadsInfo(ThreadsInfo threadsInfo)
ThreadsInfo.threadsInfo - the threadsInfo 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 interface Poolable<AssignToAllElement>clear in class RecordingStrategiesElementpublic AssignToAllElement create()
create in interface Poolable<AssignToAllElement>public void release()
Poolable.release in class RecordingStrategiesElement