org.ops4j.pax.radman.gateway.tester
Class MyJobService

java.lang.Object
  extended by org.ops4j.pax.radman.gateway.tester.MyJobService
All Implemented Interfaces:
JobService<MyJobParam>

public class MyJobService
extends java.lang.Object
implements JobService<MyJobParam>


Field Summary
static java.lang.String JOB_ID
           
 
Fields inherited from interface org.ops4j.pax.radman.service.job.JobService
JOB_SERVICE_ID
 
Constructor Summary
MyJobService()
           
 
Method Summary
 void execute(MyJobParam aParam)
          Execute this job with specified aParam.
 java.lang.String getJobServiceId()
          Returns the job service id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_ID

public static final java.lang.String JOB_ID
See Also:
Constant Field Values
Constructor Detail

MyJobService

public MyJobService()
Method Detail

getJobServiceId

public java.lang.String getJobServiceId()
Description copied from interface: JobService
Returns the job service id. This method must not return null.

Specified by:
getJobServiceId in interface JobService<MyJobParam>
Returns:
The job id.

execute

public void execute(MyJobParam aParam)
             throws JobException
Description copied from interface: JobService
Execute this job with specified aParam.

Specified by:
execute in interface JobService<MyJobParam>
Parameters:
aParam - The job parameter.
Throws:
JobException - Thrown if there is job execution error.


Copyright © 2008. All Rights Reserved.