|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.server.protocol.Record
public class Record
The Record
contains information for writing via IProtocolWriter
.
Field Summary | |
---|---|
protected java.lang.Throwable |
exception
an exception. |
protected int |
iCount
the count. |
protected long |
lCreation
the creation time in milliseconds. |
protected long |
lCreationNano
the creation time in nanos. |
protected long |
lDuration
the end time in nanos (default: -1, means undefined). |
protected long |
lMemoryConsumption
the memory consumption. |
protected long |
lMemoryInitial
the initial memory. |
protected java.lang.Object[] |
oIdentifier
the identifier. |
protected java.lang.Object[] |
oParameter
the parameter. |
protected java.lang.String |
sCategory
the category. |
protected java.lang.String |
sCommand
the command. |
protected java.lang.String |
sUUID
the UUID. |
Constructor Summary | |
---|---|
Record(IProtocolWriter pWriter,
java.lang.String pCategory,
java.lang.String pCommand)
Creates a new instance of Record for given writer and command. |
|
Record(java.lang.String pCategory,
java.lang.String pCommand)
Creates a new instance of Record for given command. |
Method Summary | |
---|---|
void |
addIdentifier(java.lang.Object pIdentifier)
Adds an identifier at the end. |
void |
addIdentifier(java.lang.Object pIdentifier,
int pIndex)
Adds an identifier at the given position. |
void |
close()
Closes the record. |
java.lang.String |
getCategory()
Gets the protocol category. |
java.lang.String |
getCommand()
Gets the command. |
int |
getCount()
Gets the count. |
long |
getCreationTime()
Gets the creation time. |
long |
getDuration()
Gets the duration. |
java.lang.Throwable |
getException()
Gets the exception (if occured). |
java.lang.Object[] |
getIdentifier()
Gets the identifier. |
long |
getMemoryConsumption()
Gets the memory consumption. |
long |
getMemoryInitial()
Gets the initial memory. |
java.lang.Object[] |
getParameter()
Gets the parameter. |
java.lang.String |
getUUID()
Gets the Universal Unique Identifier. |
void |
setCount(int pCount)
Sets the count. |
void |
setException(java.lang.Throwable pException)
Sets the exception (if occured). |
void |
setParameter(java.lang.Object... pParameter)
Sets the parameter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String sUUID
protected java.lang.String sCategory
protected java.lang.String sCommand
protected java.lang.Object[] oIdentifier
protected java.lang.Object[] oParameter
protected java.lang.Throwable exception
protected long lCreationNano
protected long lCreation
protected long lDuration
protected long lMemoryInitial
protected long lMemoryConsumption
protected int iCount
Constructor Detail |
---|
public Record(java.lang.String pCategory, java.lang.String pCommand)
Record
for given command.
pCategory
- the protocol categorypCommand
- the assigned commandpublic Record(IProtocolWriter pWriter, java.lang.String pCategory, java.lang.String pCommand)
Record
for given writer and command.
pWriter
- the IProtocolWriter
pCategory
- the protocol categorypCommand
- the assigned commandMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getUUID()
public java.lang.String getCategory()
public java.lang.String getCommand()
public long getCreationTime()
public long getDuration()
public void setParameter(java.lang.Object... pParameter)
pParameter
- the parameterpublic java.lang.Object[] getParameter()
public void addIdentifier(java.lang.Object pIdentifier)
pIdentifier
- the identifierpublic void addIdentifier(java.lang.Object pIdentifier, int pIndex)
pIdentifier
- the identifierpIndex
- the index/positionpublic java.lang.Object[] getIdentifier()
public void setCount(int pCount)
pCount
- the countpublic int getCount()
public long getMemoryInitial()
public long getMemoryConsumption()
public void setException(java.lang.Throwable pException)
pException
- the exceptionpublic java.lang.Throwable getException()
public void close()
close
in interface ICloseable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |