|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.performance.PerfEntry
public class PerfEntry
PerfEntry class represents the Performance Entry object.
Field Summary | |
---|---|
static int |
BEGIN
|
static int |
END
|
static int |
NOT_DUAL
|
static int |
RESULT
|
static int |
USER
|
Constructor Summary | |
---|---|
PerfEntry()
Constructor for the Performance Entry |
|
PerfEntry(java.lang.String component)
Constructor for the Performance Entry-Message mode |
|
PerfEntry(java.lang.String component,
int dual)
Constructor for the Performance Entry-BEGIN and END mode |
|
PerfEntry(java.lang.String component,
long usedTime,
long usedMemory,
int dual)
Constructor for the Performance Entry - ALL modes |
Method Summary | |
---|---|
static PerfEntry |
addPerfEntries(PerfEntry entry1,
PerfEntry entry2)
Gets the sum of the time stamps and Memory usage of 2 PerfEntry objects. |
static PerfEntry |
diffPerfEntries(PerfEntry begin,
PerfEntry end)
Gets the difference of the time stamps and Memory usage of 2 PerfEntry objects. |
java.lang.String |
dumpEntry()
Dumps the performance Entry Object in display format |
boolean |
equalsPerfEntry(PerfEntry entry)
Checks if the equality of two PerfEntry objects. |
java.lang.String |
getBaseComponent()
Method returns the name of the base component. |
java.lang.String |
getComponent()
Method gets the component name. |
int |
getDual()
Gets the dual message. |
java.lang.String |
getPerfEntryStats()
Gets only the time stamp and memory usage for an entry . |
long |
getTimeStamp()
Gets the time stamp of this PerfEntry |
long |
getUsedMemory()
Gets the memory used. |
boolean |
isPair(PerfEntry entry)
Checks if the PerfEntry objects are pairs. |
void |
setBaseComponent(java.lang.String string)
Sets the name of the base component. |
void |
setComponent(java.lang.String string)
|
void |
setDual(int i)
|
void |
setTimeStamp(long time)
Sets the time stamp value. |
void |
setUsedMemory(long memory)
Sets the memory used value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BEGIN
public static final int END
public static final int NOT_DUAL
public static final int RESULT
public static final int USER
Constructor Detail |
---|
public PerfEntry()
public PerfEntry(java.lang.String component)
component
- The name of the component name.public PerfEntry(java.lang.String component, int dual)
component
- Component namedual
- Type of message PerfEntry.BEGIN or PerfEntry.ENDpublic PerfEntry(java.lang.String component, long usedTime, long usedMemory, int dual)
component
- Component nameusedTime
- TimeusedMemory
- memorydual
- type of message PerfEntry.BEGIN or PerfEntry.ENDMethod Detail |
---|
public boolean equalsPerfEntry(PerfEntry entry)
entry
- PerfEntry object
public boolean isPair(PerfEntry entry)
entry
- PerfEntry object
public static PerfEntry diffPerfEntries(PerfEntry begin, PerfEntry end)
begin
- begin PerfEntry objectend
- end PerfEntry object
public static PerfEntry addPerfEntries(PerfEntry entry1, PerfEntry entry2)
entry1
- PerfEntry objectentry2
- PerfEntry object
public java.lang.String dumpEntry()
public java.lang.String getPerfEntryStats()
public long getTimeStamp()
public long getUsedMemory()
public void setTimeStamp(long time)
time
- The time stamp to set.public void setUsedMemory(long memory)
memory
- The memory used value.public java.lang.String getComponent()
public void setComponent(java.lang.String string)
string
- public java.lang.String getBaseComponent()
public void setBaseComponent(java.lang.String string)
string
- The base component name to set.public int getDual()
public void setDual(int i)
i
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |