|
||||||||||
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(java.lang.String pipeName)
Deletes queue from memory |
static java.util.Vector |
getActiveInstances()
Gets all currently active instances. |
static MemBufferQFactory |
getInstance()
create a MemBufferQ factory for the current instance. |
static MemBufferQFactory |
getInstance(java.lang.String inst)
Get the MemBufferQ Factory for a particular instance. |
MemBufferQ |
getPipe(java.lang.String pipeName)
Returns a reference to a memory buffer pipe. |
static java.util.Vector |
getPipesForInstance(java.lang.String instName)
Returns all active pipes for the specified instance. |
boolean |
isDoNotInitDB()
|
MemBufferQ |
newPipe(java.lang.String pipeName,
int watermark)
Deprecated. |
MemBufferQ |
newPipe(java.lang.String pipeName,
int watermark,
int pagesize)
Returns reference to a memory buffer pipe. |
boolean |
queueExists(java.lang.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(java.lang.String inst)
inst
- The instance name
public static MemBufferQFactory getInstance()
public MemBufferQ getPipe(java.lang.String pipeName) throws java.lang.Exception
pipeName
- The name of memory buffer pipe of that instance
java.lang.Exception
- if either instName or pipeName is nullpublic boolean queueExists(java.lang.String pipeName)
pipeName
- The name of the queue.
@Deprecated public MemBufferQ newPipe(java.lang.String pipeName, int watermark) throws java.lang.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.
java.lang.Exception
- if either instName or pipeName is nullpublic MemBufferQ newPipe(java.lang.String pipeName, int watermark, int pagesize) throws java.lang.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
java.lang.Exception
- if either instName or pipeName is null.public static java.util.Vector getPipesForInstance(java.lang.String instName)
instName
- An instance name.
public static java.util.Vector getActiveInstances()
public void deleteQueue(java.lang.String pipeName) throws java.lang.Exception
pipeName
-
java.lang.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 |