|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tppt.util.Transaction
Transaction
class represents as a transaction method the
user defined in the transaction prototype file.
Field Summary | |
double |
AccDeadLockTime
Deprecated. This variable is not be used. |
(package private) java.util.Vector |
argumentValues
|
int |
DEADLOCKED
|
double |
DeadLockTime
the accumulated response time when deadlock happends |
int |
EachDeadLock
|
int |
EXCEPTION
|
(package private) int |
isolationLevel
|
int |
LOGICALLYFAILED
|
double |
LogicFailTime
The accumulated response time when login failure happends |
int |
NumOfDeadLock
The accumulated number of deadlock happened in this transaction. |
int |
NumOfLogicFail
the number of logic failures |
int |
NumOfSuccess
Deprecated. |
(package private) int |
paraCount
|
(package private) java.util.Vector |
parameterNames
|
(package private) java.util.Vector |
parameterTypes
|
double |
responseTime
Accumulated response time (The end time of procedure exection - the start time ) in milliseconds. |
(package private) java.lang.String |
returnType
|
int |
SUCCEEDED
|
double |
SuccessTime
Deprecated. This variable is obsolete. |
(package private) java.lang.String |
transClassName
|
int |
transCounter
The accumulated number of the sucessful transactions. |
java.lang.String |
transName
|
Constructor Summary | |
Transaction(java.lang.String transClassName,
java.lang.String transName,
java.lang.String returnType)
Constructs a Transaction that initialized with a transaction class name, transaction name and return type. |
Method Summary | |
Transaction |
copy()
Return a Transaction instance that is the deep-copy of current Transaction object. |
int |
execTransaction()
executes this transaction. |
int |
getIsoLevel()
|
java.util.Vector |
getParaNames()
|
java.lang.String |
getTransClassName()
Returns the class name of this transaction. |
java.lang.String |
getTransName()
|
static void |
initDLcounter()
|
void |
recordEndTime(long endTime)
Set up the end time of this transaction. |
void |
recordStartTime(long startTime)
Set up the start time of this transaction. |
void |
recordTransRT(double responseTime,
int whichTime)
Store the response time according to the return result by user-defined transaction procedure. |
void |
recordTransRT(double responseTime,
java.lang.Integer result)
|
void |
setArgumentValues(int parameterIndex,
java.lang.Object argumentValue)
|
void |
setIsolationLevel(int level)
|
void |
setParameterNames(int parameterIndex,
java.lang.String parameterName)
Set the name for parameterIndex -th parameter. |
void |
setParameterTypes(int parameterIndex,
java.lang.String parameterType)
Set the type for parameterIndex -th parameter. |
(package private) void |
showError(java.lang.String errorMsg)
|
java.lang.String |
toString()
return a string representation of Transaction, for debugging purpose |
static void |
updateDLcounter()
|
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String transClassName
public java.lang.String transName
java.lang.String returnType
java.util.Vector parameterTypes
java.util.Vector parameterNames
java.util.Vector argumentValues
int paraCount
int isolationLevel
public double responseTime
public int transCounter
public int NumOfDeadLock
public double DeadLockTime
public double AccDeadLockTime
public int NumOfSuccess
public double SuccessTime
public int NumOfLogicFail
public double LogicFailTime
public final int DEADLOCKED
public final int LOGICALLYFAILED
public final int SUCCEEDED
public final int EXCEPTION
public int EachDeadLock
Constructor Detail |
public Transaction(java.lang.String transClassName, java.lang.String transName, java.lang.String returnType)
Method Detail |
public void setParameterTypes(int parameterIndex, java.lang.String parameterType)
parameterIndex
-th parameter.parameterIndex
- index at which the specified element is to be inserted.parameterType
- the parameter type.public void setParameterNames(int parameterIndex, java.lang.String parameterName)
parameterIndex
-th parameter.parameterIndex
- index at which the specified element is to be inserted.parameterName
- the parameter Name.public void setArgumentValues(int parameterIndex, java.lang.Object argumentValue)
public void setIsolationLevel(int level)
public java.lang.String getTransClassName()
public java.lang.String getTransName()
public java.util.Vector getParaNames()
public int getIsoLevel()
public Transaction copy()
public java.lang.String toString()
toString
in class java.lang.Object
void showError(java.lang.String errorMsg)
public int execTransaction()
public void recordStartTime(long startTime)
the
- start time in millisecond.public void recordEndTime(long endTime)
the
- end time in millisecond.GlobalData.transEndTime
public void recordTransRT(double responseTime, java.lang.Integer result)
public void recordTransRT(double responseTime, int whichTime)
responseTime
- the response time calculated by program.
(=endTime
- startTime
)whichTime
- which return type.public static void initDLcounter()
public static void updateDLcounter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |