|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.org.ogsadai.activity.io.SimplePipeManager
public class SimplePipeManager
A simple pipe manager.
| Constructor Summary | |
|---|---|
SimplePipeManager(ResourceID requestID)
Constructs the pipe manager. |
|
| Method Summary | |
|---|---|
void |
addPipeListener(PipeListener listener)
Registers a pipe listener to receive any pipe events that are generated. |
void |
addPipeWaitListener(PipeWaitListener listener)
Registers a pipe wait listener to receive any pipe events that are generated. |
BlockReader |
createBlockReader(Literal literal,
KeyValueProperties attributes)
Creates a new literal block reader with properties specified by the given attribute values. |
Pipe |
createPipe(java.lang.String pipeName,
KeyValueProperties attributes)
Creates a pipe with the specified name and attributes. |
Pipe |
getPipe(java.lang.String pipeName)
Gets a pipe with the specified name. |
java.util.Collection |
getPipeListeners()
Gets an immutable collection of registered pipe listeners. |
java.util.Collection<PipeWaitListener> |
getPipeWaitListeners()
Gets collection of listeners. |
void |
removePipeListener(PipeListener listener)
De-registers a child pipe listener. |
void |
removePipeWaitListener(PipeWaitListener listener)
De-registers a child pipe wait listener. |
void |
waitForPipe(java.lang.String pipeName)
Waits (blocks) until the specified pipe has been created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePipeManager(ResourceID requestID)
requestID - ID of the request for which pipes will be created| Method Detail |
|---|
public Pipe createPipe(java.lang.String pipeName,
KeyValueProperties attributes)
createPipe in interface PipeManagerpipeName - name of pipe.attributes - attributes associated with the pipe.
public BlockReader createBlockReader(Literal literal,
KeyValueProperties attributes)
createBlockReader in interface PipeManagerliteral - literal values the block reader must output.attributes - attributes containing information about the type of pipe to
create.
public void waitForPipe(java.lang.String pipeName)
throws java.lang.InterruptedException
waitForPipe in interface PipeManagerpipeName - name of pipe to wait for.
java.lang.InterruptedException - if the thread is interrupted.public Pipe getPipe(java.lang.String pipeName)
getPipe in interface PipeManagerpipeName - name of pipe
public void addPipeListener(PipeListener listener)
addPipeListener in interface PipeManagerlistener - pipe listener to registerpublic void removePipeListener(PipeListener listener)
removePipeListener in interface PipeManagerlistener - pipe listener to de-registerpublic java.util.Collection getPipeListeners()
getPipeListeners in interface PipeManagerPipeListener
objectspublic java.util.Collection<PipeWaitListener> getPipeWaitListeners()
public void addPipeWaitListener(PipeWaitListener listener)
addPipeWaitListener in interface PipeManagerlistener - pipe wait listener to registerpublic void removePipeWaitListener(PipeWaitListener listener)
removePipeWaitListener in interface PipeManagerlistener - pipe listener to de-register
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||