|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.pluginManager.remote.Servlet.Tomcat.JeePluginManager
public class JeePluginManager
LocalPluginManager is a particular implementation of PluginManger that runs within a thread on a local machine. A pipeline made using LocalPluginManager's has a number of strongly type queues between each PluginManager that represent the input and output streams to and from the plugin in question.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface eu.larkc.core.pluginManager.PluginManager |
---|
PluginManager.Message |
Constructor Summary | |
---|---|
JeePluginManager(Plugin plugin,
JeeResourceDescription resource)
Constructor that takes only the plugin as input (input and output queues have to be set later). |
|
JeePluginManager(Plugin plugin,
java.util.List<Queue<SetOfStatements>> theInputQueues,
java.util.List<Queue<SetOfStatements>> theOutputQueues,
JeeResourceDescription resource)
Constructor thats takes the input and output queues as input. |
Method Summary | |
---|---|
void |
accept(PluginManager.Message message)
Accept. |
void |
addInputQueue(Queue<SetOfStatements> inputQueue)
This method adds an input queue to the list of input queues. |
void |
addOutputQueue(Queue<SetOfStatements> outputQueue)
This method adds an output queue to the list of output queues. |
void |
addPrevious(PluginManager provider)
Adds the previous plugin manager. |
java.util.List<Queue<SetOfStatements>> |
getInputQueues()
This method returns the input queue of the manager. |
PluginManager.Message |
getNextControlMessage()
This method enables the next control message that was sent to this PluginManager to be retrieved. |
java.util.List<Queue<SetOfStatements>> |
getOutputQueues()
This method returns the output queues of the manager. |
void |
setInputQueues(java.util.List<Queue<SetOfStatements>> theInputQueues)
This method sets the input queue of the manager. |
void |
setOutputQueues(java.util.List<Queue<SetOfStatements>> theOutputQueues)
This method sets the output queues of the manager. |
void |
start()
Start. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JeePluginManager(Plugin plugin, JeeResourceDescription resource)
plugin
- The plugin for which this manager is responsiblepublic JeePluginManager(Plugin plugin, java.util.List<Queue<SetOfStatements>> theInputQueues, java.util.List<Queue<SetOfStatements>> theOutputQueues, JeeResourceDescription resource)
theInputQueues
- The queues from which input messages will come from the
previous plugin in the pipelinetheOutputQueues
- The queues onto which output messages should be put to send
them to the next plugin in the pipelineplugin
- The plugin for which this manager is responsibleMethod Detail |
---|
public java.util.List<Queue<SetOfStatements>> getInputQueues()
getInputQueues
in interface PluginManager
public void setInputQueues(java.util.List<Queue<SetOfStatements>> theInputQueues)
setInputQueues
in interface PluginManager
theInputQueues
- the input queuespublic java.util.List<Queue<SetOfStatements>> getOutputQueues()
getOutputQueues
in interface PluginManager
public void setOutputQueues(java.util.List<Queue<SetOfStatements>> theOutputQueues)
setOutputQueues
in interface PluginManager
theOutputQueues
- the output queuespublic void accept(PluginManager.Message message)
accept
in interface PluginManager
message
- the messagePluginManager.accept(eu.larkc.core.pluginManager.PluginManager.Message)
public PluginManager.Message getNextControlMessage()
public void addPrevious(PluginManager provider)
addPrevious
in interface PluginManager
provider
- the providerPluginManager.addPrevious(eu.larkc.core.pluginManager.PluginManager)
public void start()
start
in interface PluginManager
PluginManager.start()
public void addInputQueue(Queue<SetOfStatements> inputQueue)
PluginManager
addInputQueue
in interface PluginManager
inputQueue
- the new input queuepublic void addOutputQueue(Queue<SetOfStatements> outputQueue)
PluginManager
addOutputQueue
in interface PluginManager
outputQueue
- the new output queuepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |