public class Integrator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBS_TAG |
protected TransInfo |
curTrans |
protected boolean |
immutable |
static java.lang.String |
INTEGRATOR_TAG |
static java.lang.String |
TRANSACTION_TAG |
protected java.util.List<TransInfo> |
transactions |
static java.lang.String |
VERSION |
Constructor and Description |
---|
Integrator() |
Modifier and Type | Method and Description |
---|---|
static Integrator |
fromXML(org.w3c.dom.Element iel) |
static Integrator |
fromXML(java.lang.String xml) |
java.lang.String |
getAttribute(java.lang.String key) |
static boolean |
getBool(java.lang.String val,
boolean def)
This is a utility method used for parsing a string into a boolean value
|
TransInfo |
getCurTrans()
This method will return the currently running transaction
|
java.lang.String |
getLisaIntegrator() |
java.util.List<TransInfo> |
getTransactionList()
Gives us all the transactions that have been loaded into this Integrator in the order that
they were started.
|
boolean |
isDebug()
Some Integrators can request that a debug setting be turned on.
|
boolean |
isLogCompContent()
Some servers support reporting their actual content on a component-by-component basis.
|
boolean |
isLogTrace()
For those Integrators that support sending all trace information to Lisa, this will tell
you if the test case has requested that log data or not
|
void |
putAttribute(java.lang.String key,
java.lang.String value) |
void |
reset()
For those server-side platforms that are not fully automatic (that's everyone but the
JPL), you will need to call clearOldTrans() to make sure that a previous transaction
is not accidentally used on a subsequent call.
|
void |
setDebug(boolean debug)
Used to turn on/off the request to turn the sever debug mode on.
|
void |
setImmutable(boolean b) |
void |
setLogCompContent(boolean logCompContent)
Used to request logging of compnent content on or off
|
void |
setLogTrace(boolean logTrace)
Called to turn on/off the request to log trace info from the server back to Lisa.
|
TransInfo |
startTransaction(java.lang.String transID)
This method is called by test-enabled components to notify the Lisa Integrator that a new
transaction has started.
|
java.lang.String |
toPrettyXML()
More expensive but better looking xml rep of this integrator...
|
java.lang.String |
toString()
Provides simple string output info for this Integrator
|
java.lang.String |
toXML() |
java.lang.String |
toXML(boolean fullXMLDoc) |
protected TransInfo curTrans
protected java.util.List<TransInfo> transactions
public static final java.lang.String INTEGRATOR_TAG
public static final java.lang.String VERSION
public static final java.lang.String ATTRIBS_TAG
public static final java.lang.String TRANSACTION_TAG
protected transient boolean immutable
public static Integrator fromXML(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
public static Integrator fromXML(org.w3c.dom.Element iel)
public TransInfo startTransaction(java.lang.String transID)
transID
- is any string that will best describe the transaction to the Lisa test case
author so that she has an understanding of what the transaction ispublic TransInfo getCurTrans()
public void reset()
public java.util.List<TransInfo> getTransactionList()
public boolean isLogTrace()
public void setLogTrace(boolean logTrace)
logTrace
- true if we should report trace info to Lisapublic boolean isDebug()
public void setDebug(boolean debug)
debug
- true if you want the server to run in debug mode.public boolean isLogCompContent()
public void setLogCompContent(boolean logCompContent)
logCompContent
- true if you want component content logging onpublic void putAttribute(java.lang.String key, java.lang.String value)
public java.lang.String getAttribute(java.lang.String key)
public static boolean getBool(java.lang.String val, boolean def)
val
- the string to parsedef
- the default value if a valid boolean cannot be determined from valpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLisaIntegrator()
public java.lang.String toXML()
public java.lang.String toXML(boolean fullXMLDoc)
public java.lang.String toPrettyXML()
public void setImmutable(boolean b)
Copyright © 1998-2014 CA, Inc. All Rights Reserved.