|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.fc.Function
com.ibm.di.fc.cbe.CBEGeneratorFC
public class CBEGeneratorFC
This class generates objects of type org.eclipse.hyades.logging.events.cbe.CommonBaseEvent from attributes mapped by user to Entry object.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.fc.Function |
|---|
logger |
| Constructor Summary | |
|---|---|
CBEGeneratorFC()
|
|
| Method Summary | |
|---|---|
static String |
convertCBEEventToXML(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)
returns the CBE event as a XMLDocString using org.eclipse.hyades.logging.events.cbe.util.EventFormatter |
static String |
getCBELogXml(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event,
boolean isXMLComplete)
Method uses org.eclipse.hyades.logging.java.CommonBaseEventLogRecord to generate log records |
String |
getVersion()
Returns version information |
void |
initialize(Object obj)
This method initialises the eventFactory object used to create the CommonBaseEvent and the LOGGERS_NAME |
static void |
mapCbeToEntry(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent aCbe,
Entry aEntry)
Maps the fields of a Common Base Event object into the attributes of a TDI Entry. |
Object |
perform(Object obj)
The attributes of the Entry object passed as parameter to this method is mapped to a CommonBaseEvent. |
| Methods inherited from class com.ibm.di.fc.Function |
|---|
debug, getConfiguration, getContext, getLog, getParam, getUI, initialize, logmsg, setConfiguration, setContext, setLog, setParam, terminate, updateSchema, verifyInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CBEGeneratorFC()
| Method Detail |
|---|
public Object perform(Object obj)
throws Exception
obj - object of type Entry
if - the user has passed a null or non Entry type object as param
Exception - An exception is thrown if this method fails.public String getVersion()
public void initialize(Object obj)
throws Exception
initialize in interface FunctionInterfaceinitialize in class Functionobj - this object provides information to the Function Component needed on initialization
Exception - An exception is thrown if the initialization fails.
public static String convertCBEEventToXML(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)
throws Exception
event - CommonBaseEvent
Exception
public static String getCBELogXml(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event,
boolean isXMLComplete)
throws Exception
event - CommomnBaseEventisXMLComplete - returns a complete xml string if true
Exception
public static void mapCbeToEntry(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent aCbe,
Entry aEntry)
aCbe - the Common Base Event to be mapped into the EntryaEntry - the Entry, where will be mapped the fields of the Common Base Event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||