|
||||||||||
| 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. |
MemBufferQ |
newPipe(String pipeName,
int watermark)
Returns reference to a memory buffer pipe. |
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. |
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
throws - and exception if either instName or pipeName is null
Exceptionpublic boolean queueExists(String pipeName)
pipeName - The name of the queue.
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.
throws - and exception if either instName or pipeName is null
Exception
public 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
Throws - and exception if either instName or pipeName is null.
Exceptionpublic static Vector getPipesForInstance(String instName)
instName - An instance name.
public static Vector getActiveInstances()
public void deleteQueue(String pipeName)
throws Exception
pipeName -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||