|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdt.net.Pool
Constructor Summary | |
Pool(int pool_port)
instantiates a pool with by listening on the specified port for incoming connections. |
|
Pool(int pool_port,
OutputObserver[] obs)
instantiates a pool with by listening on the specified port for incoming connections. |
Method Summary | |
Job |
addJob(Task tobj,
Result result,
java.lang.String task_name,
java.lang.String result_name)
add a job to the pool. |
protected void |
finalize()
For garbage collection |
Job |
getJob()
removes a task from the head of the waiting queue for evaluation. |
int |
getRunningSize()
returns the size of the running queue. |
int |
getWaitingSize()
returns the size of the waiting queue. |
void |
returnToPool(Job job)
returns a job to the pool if a connection fails. |
void |
setGranularity(int no)
?? |
void |
start()
starts the manager thread. |
void |
updateJobStatus(Job job)
Once a job is selected for evaluation, the job is removed from the waiting queue and placed on the running queue. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Pool(int pool_port)
public Pool(int pool_port, OutputObserver[] obs)
Method Detail |
public void start()
public void setGranularity(int no)
public int getWaitingSize()
public int getRunningSize()
public Job addJob(Task tobj, Result result, java.lang.String task_name, java.lang.String result_name)
public void returnToPool(Job job)
public Job getJob()
public void updateJobStatus(Job job)
protected void finalize() throws java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |