|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the behavior of an RMI eServer Job Service.
The AbleEServerJobService interface defines the operations that can be requested of Job service objects.
A Job Service is used to register and deregister platform jobs.
The iSeries startup code uses it to keep track of the jobs so the platform can easily be brought back down.
Method Summary | |
void |
deregisterJob(AbleEServerJobIfc job,
AbleSecureKey key)
This is the method that is used to deregister a job from the Job Service. |
AbleEServerJobIfc |
getJobInfo(java.lang.String theJobKey)
Returns the AbleEServerJobIfc that is registered to job key theJobKey . |
void |
registerJob(AbleEServerJobIfc job,
AbleSecureKey key)
This is the method that is used to register a job to the Job Service. |
Methods inherited from interface com.ibm.able.platform.RmiAblePlatformService |
getState, terminateService |
Methods inherited from interface com.ibm.able.platform.RmiAblePlatformServiceEventGenerator |
addAblePlatformServiceEventListener, getAblePlatformServiceEventListeners, removeAblePlatformServiceEventListener |
Method Detail |
public void registerJob(AbleEServerJobIfc job, AbleSecureKey key) throws java.rmi.RemoteException, AbleEServerJobException
job
- The AbleEServerJobIfc job that is to be registered.
key
- AbleSecureKey to secure communication
java.rmi.RemoteException
- On all remote errors.
AbleEServerJobException
- If the caller is not authenticated.
If attempting to register an invalid AbleEServerJobIfc Object.
If there is an existing job registered to the job key of job
.
public void deregisterJob(AbleEServerJobIfc job, AbleSecureKey key) throws java.rmi.RemoteException, AbleEServerJobException
If the platform is running secure, the caller must have an authority level equal to or greater than the one who originally registered the job that is to be removed.
Calls to this method may be delegated, but the VerifiableAgentName at every hop along the way must be authenticated and authorized.
job
- The AbleEServerJobIfc job that is to be deregistered.
key
- AbleSecureKey to secure communication
java.rmi.RemoteException
- On all remote errors.
AbleEServerJobException
- If the caller is not authenticated.
If attempting to deregister an invalid AbleEServerJobIfc Object.
If there is not an existing job registered to the job key of job
.
If the caller is not authorized.
public AbleEServerJobIfc getJobInfo(java.lang.String theJobKey) throws java.rmi.RemoteException, AbleEServerJobException
theJobKey
.
theJobKey
- The job key of the AbleEServerJobIfc that is to be returned.
theJobKey
.
java.rmi.RemoteException
- On all remote errors.
AbleEServerJobException
- If theJobKey
is null.
If no Job is registered to key theJobKey
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |