|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.queue.MemBufferQFactory
public class MemBufferQFactory
This class provides a global lookup table functionality. Every config
instance has a hashtable associated with it where:
key : Thread.currentThread().getThreadGroup().getName()
object : hashtable of memory buffer pipes
Hash table of memory buffer pipes has :
key : any name specified by the user
object : MemBufferQ object.
This enables sharing of memory buffer pipes between two threads based on
names giving it a named pipe like functionality.
Constructor Summary | |
---|---|
MemBufferQFactory()
|
Method Summary | |
---|---|
void |
deleteQueue(String pipeName)
Deletes queue from memory |
static Vector |
getActiveInstances()
Gets all currently active instances. |
static MemBufferQFactory |
getInstance()
create a MemBufferQ factory for the current instance. |
static MemBufferQFactory |
getInstance(String inst)
Get the MemBufferQ Factory for a particular instance. |
MemBufferQ |
getPipe(String pipeName)
Returns a reference to a memory buffer pipe. |
static Vector |
getPipesForInstance(String instName)
Returns all active pipes for the specified instance. |
boolean |
isDoNotInitDB()
|
MemBufferQ |
newPipe(String pipeName,
int watermark)
Deprecated. |
MemBufferQ |
newPipe(String pipeName,
int watermark,
int pagesize)
Returns reference to a memory buffer pipe. |
boolean |
queueExists(String pipeName)
Checks if queue exists in memory. |
void |
setDoNotInitDB(boolean doNotInitDB)
|
static void |
setLog(Log l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemBufferQFactory()
Method Detail |
---|
public static void setLog(Log l)
public static MemBufferQFactory getInstance(String inst)
inst
- The instance name
public static MemBufferQFactory getInstance()
public MemBufferQ getPipe(String pipeName) throws Exception
pipeName
- The name of memory buffer pipe of that instance
Exception
- if either instName or pipeName is nullpublic boolean queueExists(String pipeName)
pipeName
- The name of the queue.
@Deprecated public MemBufferQ newPipe(String pipeName, int watermark) throws Exception
pipeName
- The name of memory buffer pipe of that instance if not found
create a memory buffer pipe with that name with paging
disabled, only watermark specified and return refernce to the
newly created pipe.
Exception
- if either instName or pipeName is nullpublic MemBufferQ newPipe(String pipeName, int watermark, int pagesize) throws Exception
pipeName
- A name of memory buffer pipe of that instance if not found
create a memory buffer pipe with that name with paging enabled
and return refernce to the newly created pipe
Exception
- if either instName or pipeName is null.public static Vector getPipesForInstance(String instName)
instName
- An instance name.
public static Vector getActiveInstances()
public void deleteQueue(String pipeName) throws Exception
pipeName
-
Exception
public boolean isDoNotInitDB()
public void setDoNotInitDB(boolean doNotInitDB)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |