|
|||||||||||
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.MemQConnector
public class MemQConnector
This class is a connector that wraps over the Memory Buffer Queue infrastructure.
Field Summary |
---|
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
MemQConnector()
Class constructor |
Method Summary | |
---|---|
void |
acquireLock()
Acquire lock on memq |
int |
getMode()
Returns the mode of the connector |
Entry |
getNextEntry()
Returns the next entry obj |
String |
getVersion()
Returns version information |
boolean |
hasMore()
Checks if the specified memq has more entries |
void |
initialize(Object o)
Method reads initialization params ,creates new pipe and calls initDB if persistence is enabled. |
boolean |
isReleaseOnALEnd()
Checks if lock is to be released on AL cycle end |
void |
purgeQueue()
Purges the queue. |
void |
putEntry(Entry entry)
Adds the given entry object to the MemQ |
void |
releaseLock()
Release the lock on memq |
void |
selectEntries()
Default implementation |
void |
setMode(int mode)
Sets the mode of the connector. |
void |
setReleaseOnALCycleEnd(boolean isReleaseOnALCycleEnd)
Sets the isReleaseOnALCycleEnd variable |
void |
setTimeout(int timeout)
Sets the time out parameter |
void |
terminate()
Method is called when the Connector terminates |
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, terminateServer |
Constructor Detail |
---|
public MemQConnector()
Method Detail |
---|
public void initialize(Object o) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- The connector mode of the Connector. The object should be of
type ConnectorMode.
Exception
public void selectEntries() throws Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
- neverpublic Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- if an error occursConnectorInterface.selectEntries()
public void putEntry(Entry entry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- entry to be added
Exception
- if an error occurspublic void setTimeout(int timeout)
timeout
- value to be setpublic boolean hasMore()
public String getVersion()
getVersion
in interface VersionInfoInterface
public void purgeQueue() throws Exception
Exception
public void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
- neverpublic void acquireLock() throws InterruptedException
InterruptedException
public void releaseLock()
public boolean isReleaseOnALEnd()
public void setReleaseOnALCycleEnd(boolean isReleaseOnALCycleEnd)
isReleaseOnALCycleEnd
- public int getMode()
public void setMode(int mode)
mode
- value to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |