|
||||||||||
| 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.FileConnector
public class FileConnector
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Fields inherited from interface com.ibm.di.server.CheckpointRestartInterface |
|---|
RESTART_AFTER, RESTART_BEFORE, RESTART_IN |
| Constructor Summary | |
|---|---|
FileConnector()
|
|
| Method Summary | |
|---|---|
void |
acquireLock(FileChannel fc,
long timeout,
boolean shared)
|
Entry |
getCheckpointInformation()
Returns the state information for the connector. |
Entry |
getNextEntry()
Returns the next Entry from the connector. |
String |
getVersion()
Return version information |
void |
initialize(Object o)
Initialize the connector. |
boolean |
isCheckpointRestartEnabled(int mode)
Components that support checkpoint/restart for a specific mode must return TRUE from this method. |
void |
openReadFile()
|
void |
openWriteFile()
|
void |
prepareForRestart(ALState state,
Entry restartInfo,
int restartPoint)
Notifies the connector of a restart situation. |
void |
putEntry(Entry entry)
Adds a new entry to the data source |
void |
reconnect()
Reconnect to the underlying data source. |
void |
releaseLock()
|
void |
selectEntries()
Prepare the Connector for sequential read. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
|---|
deleteEntry, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminate, terminateServer |
| Constructor Detail |
|---|
public FileConnector()
| Method Detail |
|---|
public void initialize(Object o)
throws Exception
Connector
initialize in interface ConnectorInterfaceinitialize in class Connectoro - User provided parameter
Exception
public void selectEntries()
throws Exception
Connector
selectEntries in interface ConnectorInterfaceselectEntries in class ConnectorException
public Entry getNextEntry()
throws Exception
Connector
getNextEntry in interface ConnectorInterfacegetNextEntry in class ConnectorExceptionConnector.selectEntries()
public void putEntry(Entry entry)
throws Exception
Connector
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - The entry data to add
Exception - Any exceptions thrown by the connector's underlying classes
public void openReadFile()
throws Exception
Exception
public void openWriteFile()
throws Exception
Exception
public void acquireLock(FileChannel fc,
long timeout,
boolean shared)
throws Exception
Exceptionpublic void releaseLock()
public String getVersion()
getVersion in interface VersionInfoInterfacepublic boolean isCheckpointRestartEnabled(int mode)
isCheckpointRestartEnabled in interface CheckpointRestartInterfacemode - The mode the connector runs in
ServerConstants
public Entry getCheckpointInformation()
throws Exception
getCheckpointInformation in interface CheckpointRestartInterfaceException
public void prepareForRestart(ALState state,
Entry restartInfo,
int restartPoint)
throws Exception
prepareForRestart in interface CheckpointRestartInterfacerestartInfo - The last entry object returned by the
connector in the getCheckpointInformation methodstate - The ALState object for the AssemblyLinerestartPoint - The relative point where restarting is taking place (e.g. RESTART_BEFORE ...)
Exception
public void reconnect()
throws Exception
Connector
reconnect in class ConnectorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||