|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ServerTaskManager
This class is used to implement the Task Manager that manages the query tasks by maintaining a HashMap structure and manipulating it
| Constructor Summary | |
ServerTaskManager(net.jxta.pipe.PipeService pipeService)
Constructor : Constructs the task manager |
|
| Method Summary | |
java.lang.String |
fileToString(java.lang.String fileName)
Converts a file to string. |
void |
getTMKeys()
Reads from file TModelKeys and assigns to inputTModelKey and outputTModelKey |
void |
inputTask(byte[] im,
java.util.HashMap pt)
Synchronously adds task to the HashMap to execute them. |
static void |
main(java.lang.String[] args)
|
void |
outputPipeEvent(net.jxta.pipe.OutputPipeEvent event)
The OutputPipeListener event that is triggered when an OutputPipe is resolved by the call to PipeService.createOutputPipe. |
void |
performTasks()
Synchronously executes the task queries and the response is stored in HashMap. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServerTaskManager(net.jxta.pipe.PipeService pipeService)
pipeService - PipeService created in Server.java| Method Detail |
public void outputPipeEvent(net.jxta.pipe.OutputPipeEvent event)
outputPipeEvent in interface net.jxta.pipe.OutputPipeListenerevent - the event to use to extract the resolved output pipe.
public void inputTask(byte[] im,
java.util.HashMap pt)
public void performTasks()
public java.lang.String fileToString(java.lang.String fileName)
public static void main(java.lang.String[] args)
public void getTMKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||