|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable com.ibm.etools.iseries.remotebuild.JobTicketManager
public class JobTicketManager
A JobTicketManager is responsible for managing the set of JobTickets found in the workbench. It updates them with new status when requested by either a user or a timer. It will cause them to be persisted and deleted when necessary.
There is a single instance of this manager in the workbench which is created during workbench initialization. This instance can be retrieved using JobTicketManager.getDefault().
A JobTicketManager implements the Observable interface and can tell observers when a change in its state occurs. This may be useful in designing a user interface that updates when the JobTickets being managed by this JobTicketManager are updated.
Field Summary | |
---|---|
static String |
Copyright
Deprecated. |
static Integer |
INTERVAL
Deprecated. Argument used when notifying observers of a change in the interval. |
static int |
NEVER
Deprecated. The value used to set the timer to never automatically refresh. |
static String |
PREF_BuildMonitorRefreshInterval
Deprecated. The name of the preference that stores the refresh interval. |
static Integer |
TICKETS
Deprecated. Argument used when notifying observers of a change in the tickets. |
Method Summary | |
---|---|
void |
add(JobTicket ticket)
Deprecated. Adds a new JobTicket to those being managed. |
void |
cancel(JobTicket ticket)
Deprecated. Cancels a job represented by the job ticket. |
void |
commitInterval()
Deprecated. Commits the manager to begin refreshing at the set interval. |
static JobTicketManager |
getDefault()
Deprecated. Returns the singletime JobTicketManager for this workbench. |
int |
getInterval()
Deprecated. Returns the interval value known by this manager. |
JobTicket[] |
getTickets()
Deprecated. Returns all the tickets known by this manager. |
static void |
initializeDefaultPreferences()
Deprecated. Initializes the default preferences for all JobTicketManagers. |
void |
refresh()
Deprecated. Refreshes all the unfinished tickets being managed by this job manager. |
void |
remove(JobTicket ticket)
Deprecated. Removes a JobTicket from those being managed. |
void |
resetTimer()
Deprecated. Schedules the refresh task so that it will be automatically run. |
void |
setInterval(int interval)
Deprecated. Sets the interval value for this manager. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
public static final Integer TICKETS
public static final Integer INTERVAL
public static final String PREF_BuildMonitorRefreshInterval
public static final int NEVER
Method Detail |
---|
public static JobTicketManager getDefault()
public static void initializeDefaultPreferences()
Invoked during plugin initialization. Not meant to be called by clients.
public void resetTimer()
Called by the user interface when a refresh has been performed.
public void add(JobTicket ticket)
JobTicket ticket = new JobTicket(project, timeStamp, jobName, jobUser,
jobNumber, JobTicket.Queued, connectionName, systemName, tag);
JobTicketManager.getDefault().add(ticket);
public void remove(JobTicket ticket)
This is typically invoked by the user interface when a ticket is selected and removed by a user.
public void cancel(JobTicket ticket)
Used to implement a "cancel" or "endjob" function by the user interface.
public void refresh()
Usually run by the user interface as the result of a user requested "refresh" action.
Clients are not expected to invoke this as it is invoked by the user interface or a timer.
public JobTicket[] getTickets()
Used by the user interface to present the remembered jobs to the user.
public int getInterval()
The value is expressed in seconds.
public void setInterval(int interval)
Setting the interval notifies all observers the the interval setting has been changed. However, the interval must be committed to affect the refresh rate of this manager.
The value is expressed in seconds.
public void commitInterval()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |