java.lang.Object
de.grogra.projectmanager.JobManagerImpl
- All Implemented Interfaces:
XAListener
,Context
,JobManager
,Runnable
,Executor
public final class JobManagerImpl
extends Object
implements JobManager, Runnable, XAListener, Executor
almost a direct copy from the IMP jobManager
- Author:
- XXX
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.pf.ui.JobManager
JobManager.ExecutionListener
Nested classes/interfaces inherited from interface de.grogra.persistence.XAListener
XAListener.WeakDelegate
-
Field Summary
Fields inherited from interface de.grogra.pf.ui.JobManager
ACTION_FLAGS, PRIORITY_MASK, QUIET, RENDER_FLAGS, RENDER_PRIORITY, UI_PRIORITY, UPDATE_FLAGS, UPDATE_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cancelQueuedJob
(Command object) void
cancelTimedJob
(Command object) final void
void
Determines the GUI component of this GUI context.long
getPanel()
Determines the panel of this GUI context.Determines the window of this GUI context.Determines the workbench of this GUI context.boolean
hasJobQueued
(int minPriority) boolean
void
initialize
(Workbench workbench) boolean
void
void
run()
void
void
void
void
void
void
transactionApplied
(Transaction.Data xa, boolean rollback)
-
Constructor Details
-
JobManagerImpl
-
-
Method Details
-
getThreadContext
- Specified by:
getThreadContext
in interfaceJobManager
-
getMainThread
- Specified by:
getMainThread
in interfaceJobManager
-
initialize
- Specified by:
initialize
in interfaceJobManager
-
getWorkbench
Description copied from interface:Context
Determines the workbench of this GUI context.- Specified by:
getWorkbench
in interfaceContext
- Returns:
- this context's workbench
-
getWindow
Description copied from interface:Context
Determines the window of this GUI context. -
getPanel
Description copied from interface:Context
Determines the panel of this GUI context. -
getComponent
Description copied from interface:Context
Determines the GUI component of this GUI context.- Specified by:
getComponent
in interfaceContext
- Returns:
- this context's component
-
execute
-
runLater
- Specified by:
runLater
in interfaceJobManager
-
execute
- Specified by:
execute
in interfaceJobManager
-
runLater
- Specified by:
runLater
in interfaceJobManager
-
runAt
- Specified by:
runAt
in interfaceJobManager
-
getNextInvocationTime
public long getNextInvocationTime() -
cancelQueuedJob
- Specified by:
cancelQueuedJob
in interfaceJobManager
-
cancelTimedJob
- Specified by:
cancelTimedJob
in interfaceJobManager
-
hasJobQueued
public boolean hasJobQueued(int minPriority) - Specified by:
hasJobQueued
in interfaceJobManager
-
hasTimedJobQueued
public boolean hasTimedJobQueued()- Specified by:
hasTimedJobQueued
in interfaceJobManager
-
runBlocking
- Specified by:
runBlocking
in interfaceJobManager
-
transactionApplied
- Specified by:
transactionApplied
in interfaceXAListener
-
run
public void run() -
stop
- Specified by:
stop
in interfaceJobManager
-
addExecutionListener
- Specified by:
addExecutionListener
in interfaceJobManager
-
removeExecutionListener
- Specified by:
removeExecutionListener
in interfaceJobManager
-
isExecuting
public boolean isExecuting()- Specified by:
isExecuting
in interfaceJobManager
-