|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.gigaspaces.test.GSClient
public class GSClient
Client class used to invoke a JPPF job submission service deployed as a processing unit.
| Constructor Summary | |
|---|---|
GSClient()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Called after the Spring bean initialization. |
static JPPFJob |
execute(String jobName,
int nbTasks,
long taskDuration)
Initialize the Spring context, invoke the appropriate bean method, and return the results of the JPPF execution. |
JPPFService |
getJppfService()
Get a proxy to the service deployed in a GS space. |
JPPFJob |
runJob(String jobName,
int nbTasks,
long taskDuration)
Execute a job with the specified parameters, submitting it to the JPPF space. |
void |
setJppfService(JPPFService service)
Set a proxy to the service deployed in a GS space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GSClient()
| Method Detail |
|---|
public static JPPFJob execute(String jobName,
int nbTasks,
long taskDuration)
throws Exception
jobName - the name given to the JPPF job.nbTasks - the number of tasks in the job.taskDuration - the duration in milliseconds of each task in the job.
JPPFJob instance.
Exception - if any error occurs.
public void afterPropertiesSet()
throws Exception
Exception - if any error occurs.org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
public JPPFJob runJob(String jobName,
int nbTasks,
long taskDuration)
throws Exception
jobName - the name given to the JPPF job.nbTasks - the number of tasks in the job.taskDuration - the duration in milliseconds of each task in the job.
JPPFJob instance.
Exception - if any error occurs.public JPPFService getJppfService()
JPPFService instance.public void setJppfService(JPPFService service)
service - a JPPFService instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||