|
TPTP 4.2.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.logging.adapter.impl.Component
org.eclipse.hyades.logging.adapter.impl.ProcessUnit
org.eclipse.hyades.logging.adapter.impl.Extractor
This is an abstract Extractor class that uses basic Java String searching to provide message extraction from incoming strings.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit |
|---|
flushingMode |
| Fields inherited from class org.eclipse.hyades.logging.adapter.impl.Component |
|---|
logger, status, stopping |
| Constructor Summary | |
|---|---|
Extractor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getChildEndPattern()
Get the end pattern to indicate the end of the child message or record. |
java.lang.String |
getChildStartPattern()
Get the start pattern to indicate the start of the child message or record. |
boolean |
getContainsLineBreaks()
Get whether the messages or records contain line breaks. |
java.lang.String |
getEndPattern()
Get the end pattern to indicate the end of the message or record. |
IFilterExit |
getFilterExitClassInstance()
Get the instance of IFilteExit class |
boolean |
getIncludeChildEndPattern()
Get whether the child end pattern is to be included in the child message. |
boolean |
getIncludeChildStartPattern()
Get whether the child start pattern is to be included in the child message. |
boolean |
getIncludeEndPattern()
Get whether the end pattern is to be included in the message. |
boolean |
getIncludeStartPattern()
Get whether the start pattern is to be included in the message. |
java.lang.String |
getLineBreakSymbol()
Get the new line break symbol that may be used to replace line breaks in the messages. |
boolean |
getReplaceLineBreaks()
Get whether line breaks in the messages are to be replaced. |
java.lang.String |
getStartPattern()
Get the start pattern to indicate the start of the message or record. |
boolean |
isNestedMessages()
Returns whether messages can be nested. |
java.lang.Object[] |
processEventItems(java.lang.Object[] msgs)
This implementation processes an array of String objects representing data read from the log. |
abstract MessageString[] |
processStrings(java.lang.String[] strings)
Abstract method to process String's. |
void |
setChildEndPattern(java.lang.String childEndPattern)
Set the end pattern to indicate the end of the child message or record. |
void |
setChildStartPattern(java.lang.String childStartPattern)
Set the start pattern to indicate the start of the child message or record. |
void |
setContainsLineBreaks(boolean containsLineBreaks)
Set whether the messages or records contain line breaks. |
void |
setEndPattern(java.lang.String endPattern)
Set the end pattern to indicate the end of the message or record. |
void |
setIncludeChildEndPattern(boolean includeChildEndPattern)
Set whether the child end pattern is to be included in the child message. |
void |
setIncludeChildStartPattern(boolean includeChildStartPattern)
Set whether the child start pattern is to be included in the child message. |
void |
setIncludeEndPattern(boolean includeEndPattern)
Set whether the end pattern is to be included in the message. |
void |
setIncludeStartPattern(boolean includeStartPattern)
Set whether the start pattern is to be included in the message. |
void |
setLineBreakSymbol(java.lang.String newLineBreakSymbol)
Set the new line break symbol that may be used to replace line breaks in the messages. |
void |
setNestedMessages(boolean nestedMessages)
Set whether messages can be nested. |
void |
setReplaceLineBreaks(boolean replaceLineBreaks)
Set whether line breaks in the messages are to be replaced. |
void |
setStartPattern(java.lang.String startPattern)
Set the start pattern to indicate the start of the message or record. |
void |
stop()
Method stop. |
java.lang.Object[] |
testProcessEventItems(java.lang.Object[] msgs)
In order to avoid runtime failures a context should invoke this test method. |
MessageString[] |
testProcessStrings(java.lang.String[] events)
Simulates the processStrings method that access a String array and returns a MessageString array. |
void |
update()
update the configuration based on the configuration Element |
| Methods inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit |
|---|
flushEventItems, getProperties, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.logging.adapter.IProcessUnit |
|---|
flushEventItems |
| Constructor Detail |
public Extractor()
| Method Detail |
public void setNestedMessages(boolean nestedMessages)
nestedMessages - - boolean whether messages can be nested.public boolean isNestedMessages()
public java.lang.Object[] processEventItems(java.lang.Object[] msgs)
processEventItems in interface IProcessUnitprocessEventItems in class ProcessUnitmsgs - - an array of String objects representing log data
IProcessUnit.processEventItems(java.lang.Object[])public abstract MessageString[] processStrings(java.lang.String[] strings)
processStrings in interface IExtractorstrings - - strings to process
public java.lang.Object[] testProcessEventItems(java.lang.Object[] msgs)
throws AdapterInvalidConfig
IProcessUnit
testProcessEventItems in interface IProcessUnittestProcessEventItems in class ProcessUnitAdapterInvalidConfigorg.eclipse.hyades.logging.adapter.IProcessUnit#processEventItem(Object[])public MessageString[] testProcessStrings(java.lang.String[] events)
IExtractor
testProcessStrings in interface IExtractorevents - - Strings to test processing
public void stop()
IComponent
stop in interface IComponentstop in class ComponentIComponent.stop()
public void update()
throws AdapterInvalidConfig
update in interface IComponentupdate in class ProcessUnitAdapterInvalidConfigIComponent.update()public void setContainsLineBreaks(boolean containsLineBreaks)
containsLineBreaks - - boolean whether the messages contain line breaks.public boolean getContainsLineBreaks()
public void setReplaceLineBreaks(boolean replaceLineBreaks)
replaceLineBreaks - - boolean whether line breaks in the messages are to be replaced.public boolean getReplaceLineBreaks()
public void setLineBreakSymbol(java.lang.String newLineBreakSymbol)
newLineBreakSymbol - - the new line break symbol Stringpublic java.lang.String getLineBreakSymbol()
public void setStartPattern(java.lang.String startPattern)
startPattern - - the start pattern Stringpublic java.lang.String getStartPattern()
public void setIncludeStartPattern(boolean includeStartPattern)
includeStartPattern - - boolean whether the start pattern is to be included in the message.public boolean getIncludeStartPattern()
public void setEndPattern(java.lang.String endPattern)
endPattern - - the end pattern String.public java.lang.String getEndPattern()
public void setIncludeEndPattern(boolean includeEndPattern)
includeEndPattern - - boolean whether the end pattern is to be included in the message.public boolean getIncludeEndPattern()
public void setChildStartPattern(java.lang.String childStartPattern)
childStartPattern - - the start pattern String of the child messagepublic java.lang.String getChildStartPattern()
public void setIncludeChildStartPattern(boolean includeChildStartPattern)
includeChildStartPattern - - boolean whether the child start pattern is to be included in the child message.public boolean getIncludeChildStartPattern()
public void setChildEndPattern(java.lang.String childEndPattern)
childEndPattern - - the end pattern String of the child messagepublic java.lang.String getChildEndPattern()
public void setIncludeChildEndPattern(boolean includeChildEndPattern)
includeChildEndPattern - - boolean whether the child end pattern is to be included in the child message.public boolean getIncludeChildEndPattern()
public IFilterExit getFilterExitClassInstance()
|
TPTP 4.2.0 Monitoring Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||