com.tivoli.twg.engine
Interface TWGJobListener


public interface TWGJobListener

This interface must be implemented by the class that handles dynamic updates based on TWGJobs. It provides the entry point for asynchronous update notifications received from the server. To register for updates, call TWGJob.addJobListener(TWGJobListener). Deregister using TWGJob.removeJobListener(TWGJobListener).


Method Summary
 void jobActivationClientUpdate(TWGJobActivation act, long moid, int status)
          Notification that client was updated in a job activation.
 void jobActivationCreate(TWGJobActivation act)
          Notification that a job activation was created.
 void jobActivationDelete(long joid, int jactoid)
          Notification that a job activation was deleted.
 void jobActivationUpdate(TWGJobActivation act, int status)
          Notification that a job activation was updated.
 void jobCreate(com.tivoli.twg.engine.TWGJob job)
          Notification that a job was created.
 void jobDelete(long joid)
          Notification that a job was deleted.
 void jobEnable(com.tivoli.twg.engine.TWGJob job, boolean flag)
          Notification that a job's enabled state was changed.
 void jobRename(com.tivoli.twg.engine.TWGJob job, java.lang.String label)
          Notification that a job was renamed.
 

Method Detail

jobCreate

public void jobCreate(com.tivoli.twg.engine.TWGJob job)
Notification that a job was created.

Parameters:
job - a new TWGJob

jobDelete

public void jobDelete(long joid)
Notification that a job was deleted.

Parameters:
joid - the id of the job that was deleted.

jobRename

public void jobRename(com.tivoli.twg.engine.TWGJob job,
                      java.lang.String label)
Notification that a job was renamed.

Parameters:
job - the job that was renamed
label - new label for the job

jobEnable

public void jobEnable(com.tivoli.twg.engine.TWGJob job,
                      boolean flag)
Notification that a job's enabled state was changed.

Parameters:
job - the job that was enabled or disabled
flag - true for enabled, false for disabled

jobActivationCreate

public void jobActivationCreate(TWGJobActivation act)
Notification that a job activation was created.

Parameters:
act - the job activation that was created

jobActivationUpdate

public void jobActivationUpdate(TWGJobActivation act,
                                int status)
Notification that a job activation was updated.

Parameters:
act - the activation that was updated

jobActivationClientUpdate

public void jobActivationClientUpdate(TWGJobActivation act,
                                      long moid,
                                      int status)
Notification that client was updated in a job activation.

Parameters:
act - the activation with the client that was updated
moid - the managed object ID of the updated client
status - the new status of the client

jobActivationDelete

public void jobActivationDelete(long joid,
                                int jactoid)
Notification that a job activation was deleted.

Parameters:
joid - the identifier of the job
jactoid - the identifier of the activation being deleted