|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.EIFConnector
public class EIFConnector
A connector for sending and receiving messages from/to IBM Tivoli Enterprise Console.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Constructor Summary | |
|---|---|
EIFConnector()
Constructs an instance of this connector. |
|
| Method Summary | |
|---|---|
Entry |
getNextEntry()
The returned entry has the following structure: |
String |
getVersion()
Version information. |
void |
initialize(Object o)
Initialize the connector. |
void |
putEntry(Entry entry)
Sends an Entry to the remote server. |
Object |
querySchema(Object source)
Query the Schema. |
void |
selectEntries()
Prepare the Connector for sequential read. |
void |
terminate()
Terminate the connector. |
void |
updateSchemaFromMap(String path,
Vector<Object> schema)
This method updates the schema vector based on a mapping file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EIFConnector()
| Method Detail |
|---|
public void initialize(Object o)
throws Exception
initialize in interface ConnectorInterfaceinitialize in class Connectoro - User provided parameter
Exception - if the initialization of this connector fails.
public void selectEntries()
throws Exception
selectEntries in interface ConnectorInterfaceselectEntries in class ConnectorException - if an error occurs.
public Entry getNextEntry()
throws Exception
Entry
+-->className:String
+-->{slotName}:String
+-->{slotName}:String
...{moreSlots}...
getNextEntry in interface ConnectorInterfacegetNextEntry in class ConnectorException - if an error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry entry)
throws Exception
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - the event to send. The entry should comply with the following
structure. If the attribute event is present (not null) then
it will be sent to the remote server, otherwise the className
and slots attributes will be used to compile an event.
Entry
+-->className:String
+-->{slotName}:String
+-->{slotName}:String
...{moreSlots}...
Exception - if an error occurs.
public void terminate()
throws Exception
terminate in interface ConnectorInterfaceterminate in class ConnectorException - if an error occurs.public Object querySchema(Object source)
querySchema in interface ConnectorInterfacequerySchema in class Connectorsource - The object on which to discover schema. This may be an Entry
or a string value
eifSchemaFile file is null,
returns the schema for the current Entry; else returns schema
containing destination field names from the mapping file used by
the Gateway for Tivoli EIF.Entry,
Vector
public void updateSchemaFromMap(String path,
Vector<Object> schema)
throws Exception
CREATE MAPPING StatusMap
(
'identifier' = '@Identifier',
'server_identifier'= '@ServerName' + " " + TO_STRING('@ServerSerial'),
'sub_source' = '@AlertKey' ON INSERT ONLY,
'sub_origin' = '@AlertGroup' ON INSERT ONLY,
'msg' = '@Summary' ON INSERT ONLY,
'origin' = '@Node' ON INSERT ONLY,
'node_alias' = '@NodeAlias' ON INSERT ONLY
NOTNULL '@Node',
'manager' = '@Manager' ON INSERT ONLY,
'source' = '@Agent' ON INSERT ONLY,
'severity' = '@Severity',
'date' = '@LastOccurrence' ON INSERT ONLY,
'omnibus_last_modified_time' = '@InternalLast' ON INSERT ONLY );
path - path to the file
Exception - if file could not be found, read or closed.public String getVersion()
VersionInfoInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||