org.ops4j.pax.radman.service.job
Interface JobService<T extends JobParam>

All Known Subinterfaces:
ContainerUpgradeJobService, GatewayScheduleJobService, InstallBundleJobService, StartBundleJobService, StopBundleJobService, UninstallBundleJobService
All Known Implementing Classes:
ContainerUpgradeJobServiceImpl, MyJobService, MyJobService

public interface JobService<T extends JobParam>

JobService represents a job service. TODO documentation

Since:
0.1.0
Author:
Edward Yakop, Gavin Bong

Field Summary
static java.lang.String JOB_SERVICE_ID
          The job service id key of OSGi service properties.
 
Method Summary
 void execute(T aParam)
          Execute this job with specified aParam.
 java.lang.String getJobServiceId()
          Returns the job service id.
 

Field Detail

JOB_SERVICE_ID

static final java.lang.String JOB_SERVICE_ID
The job service id key of OSGi service properties.

Since:
0.1.0
See Also:
Constant Field Values
Method Detail

getJobServiceId

java.lang.String getJobServiceId()
Returns the job service id. This method must not return null.

Returns:
The job id.
Since:
0.1.0

execute

void execute(T aParam)
             throws JobException
Execute this job with specified aParam.

Parameters:
aParam - The job parameter.
Throws:
JobException - Thrown if there is job execution error.
Since:
0.1.0


Copyright © 2008. All Rights Reserved.