Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.management.runtime
Interface JobRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface JobRuntimeMBean
extends RuntimeMBean

RuntimeMBean that provides information about a particular job.


Field Summary
static String CANCELLED
          State indicating the Job has been cancelled
static String RUNNING
          State indicating that the job is running.

 

Method Summary
abstract  void cancel()
          Cancel this job and prevent it from executing again in any server, not just this server.
abstract  String getDescription()
          Get the description of the submitted commonj.timers.TimerListener.
abstract  String getID()
          The unique ID corresponding to this job
abstract  long getLastLocalExecutionTime()
          Returns the most recent execution time of this job in the local server.
abstract  long getLocalExecutionCount()
          Returns the number of times this job was executed locally.
abstract  long getPeriod()
          Returns the specified periodicity of this job
abstract  String getState()
          Returns the state of the task.
abstract  long getTimeout()
          Returns when the job will be executed next
abstract  Serializable getTimerListener()
          Get the TimerListener associated with this job.

 

Methods inherited from interface weblogic.management.runtime.RuntimeMBean
addPropertyChangeListener, removePropertyChangeListener

 

Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent

 

Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes

 

Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister

 

Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener

 

Field Detail

RUNNING

static final String RUNNING
State indicating that the job is running.
See Also:
Constant Field Values

CANCELLED

static final String CANCELLED
State indicating the Job has been cancelled
See Also:
Constant Field Values

Method Detail

getTimerListener

Serializable getTimerListener()
Get the TimerListener associated with this job. This call involves a database roundtrip and should be used too frequently.

getDescription

String getDescription()
Get the description of the submitted commonj.timers.TimerListener. Returns commonj.timers.TimerListener#toString.

getID

String getID()
The unique ID corresponding to this job

getPeriod

long getPeriod()
Returns the specified periodicity of this job

getTimeout

long getTimeout()
Returns when the job will be executed next

getLastLocalExecutionTime

long getLastLocalExecutionTime()
Returns the most recent execution time of this job in the local server. Note that multiple executions of the same job are load-balanced across the cluster and this time indicates when the job was last executed locally.

getLocalExecutionCount

long getLocalExecutionCount()
Returns the number of times this job was executed locally. Job executions are load-balanced across the cluster. This count specifies the number of executions of the job in the local server.

cancel

void cancel()
Cancel this job and prevent it from executing again in any server, not just this server.

getState

String getState()
Returns the state of the task. A Job is either in running state or in cancelled state

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09