|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.ow2.jasmine.probe.outers.JOuter
public abstract class JOuter
Outer instance. this abstract class should be derived in different forms, depending of the type of output: console, file, mule, etc... These implementations are in separate modules.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected SimpleDateFormat |
dateformat
Std format for the date. |
protected org.ow2.util.log.Log |
logger
logger used for outers |
protected JasmineOutput |
output
|
protected static String |
SEPARATOR
CSV separator. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
JOuter(JasmineOutput output)
|
|
| Method Summary | |
|---|---|
String |
composeName(JasmineIndicatorValue jiv,
String jsrName)
Compose name of value |
String |
findDomain(JasmineIndicatorValue jiv)
|
String |
findMbean(JasmineSingleResult jsr)
Find the mbean property or generate one if do not exist. |
String |
findServer(JasmineIndicatorValue jiv)
|
void |
flushData()
Flush the Outer. |
int |
getMaxQueueSize()
|
int |
getNbInserted()
|
int |
getNbRejected()
|
int |
getNbRetrieved()
|
JasmineOutput |
getOutput()
|
String |
getOutputName()
Return the name of the indicator corresponding to this Collector |
String |
getOutputType()
|
String |
getPublishLocation()
|
int |
getQueueSize()
|
boolean |
isRemoved()
|
protected String |
outputProps(String output,
HashMap<String,String> props,
String separator)
Construct a String containing properties to be published. |
abstract void |
processData(JasmineProbeResult result)
|
void |
publishData(JasmineProbeResult result)
Publish data on this Output |
void |
remove()
Mark outer as removed. |
void |
resetMaxQueueSize()
|
void |
resetNbInserted()
|
void |
resetNbRejected()
|
void |
resetNbRetrieved()
|
void |
run()
run method for Thread implementation. |
void |
stopIt()
stop the AbstractOuter |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.ow2.util.log.Log logger
protected static final String SEPARATOR
protected JasmineOutput output
protected SimpleDateFormat dateformat
| Constructor Detail |
|---|
public JOuter(JasmineOutput output)
| Method Detail |
|---|
public abstract void processData(JasmineProbeResult result)
public JasmineOutput getOutput()
public void run()
run in interface Runnablerun in class Threadpublic void stopIt()
public void flushData()
flushData in interface JasmineOuter
public String composeName(JasmineIndicatorValue jiv,
String jsrName)
jiv - jsrName - name of the JasmineSingleResult
public String findMbean(JasmineSingleResult jsr)
jsr -
public String findDomain(JasmineIndicatorValue jiv)
public String findServer(JasmineIndicatorValue jiv)
public String getOutputName()
getOutputName in interface JasmineOutergetOutputName in interface JOuterMBeanpublic void publishData(JasmineProbeResult result)
publishData in interface JasmineOuterresult - data to publish
protected String outputProps(String output,
HashMap<String,String> props,
String separator)
output - contains properties that are already treatedprops - properties to treatseparator - used to delimit
public void remove()
remove in interface JasmineOuterpublic boolean isRemoved()
isRemoved in interface JasmineOuterpublic int getQueueSize()
getQueueSize in interface JOuterMBeanpublic String getOutputType()
getOutputType in interface JOuterMBeanpublic int getMaxQueueSize()
getMaxQueueSize in interface JOuterMBeanpublic void resetMaxQueueSize()
resetMaxQueueSize in interface JOuterMBeanpublic int getNbInserted()
getNbInserted in interface JOuterMBeanpublic void resetNbInserted()
resetNbInserted in interface JOuterMBeanpublic int getNbRejected()
getNbRejected in interface JOuterMBeanpublic void resetNbRejected()
resetNbRejected in interface JOuterMBeanpublic int getNbRetrieved()
getNbRetrieved in interface JOuterMBeanpublic void resetNbRetrieved()
resetNbRetrieved in interface JOuterMBeanpublic String getPublishLocation()
getPublishLocation in interface JOuterMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||