|
|||||||||||
| 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 |
java.lang.String |
getVersion()
Returns version information |
boolean |
hasMore()
Checks if the specified memq has more entries |
void |
initialize(java.lang.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(java.lang.Object o)
throws java.lang.Exception
initialize in interface ConnectorInterfaceinitialize in class Connectoro - The connector mode of the Connector. The object should be of
type ConnectorMode.
java.lang.Exception
public void selectEntries()
throws java.lang.Exception
selectEntries in interface ConnectorInterfaceselectEntries in class Connectorjava.lang.Exception - never
public Entry getNextEntry()
throws java.lang.Exception
getNextEntry in interface ConnectorInterfacegetNextEntry in class Connectorjava.lang.Exception - if an error occursConnectorInterface.selectEntries()
public void putEntry(Entry entry)
throws java.lang.Exception
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - entry to be added
java.lang.Exception - if an error occurspublic void setTimeout(int timeout)
timeout - value to be setpublic boolean hasMore()
public java.lang.String getVersion()
getVersion in interface VersionInfoInterface
public void purgeQueue()
throws java.lang.Exception
java.lang.Exception
public void terminate()
throws java.lang.Exception
terminate in interface ConnectorInterfaceterminate in class Connectorjava.lang.Exception - never
public void acquireLock()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic 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 | ||||||||||