org.apache.activemq.broker.scheduler
Class JobImpl
java.lang.Object
org.apache.activemq.broker.scheduler.JobImpl
- All Implemented Interfaces:
- Job
public class JobImpl
- extends java.lang.Object
- implements Job
Constructor Summary |
protected |
JobImpl(org.apache.activemq.broker.scheduler.JobLocation location,
ByteSequence bs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobImpl
protected JobImpl(org.apache.activemq.broker.scheduler.JobLocation location,
ByteSequence bs)
getJobId
public java.lang.String getJobId()
- Specified by:
getJobId
in interface Job
- Returns:
- the jobId
getPayload
public byte[] getPayload()
- Specified by:
getPayload
in interface Job
- Returns:
- the payload
getPeriod
public long getPeriod()
- Specified by:
getPeriod
in interface Job
- Returns:
- the period
getRepeat
public int getRepeat()
- Specified by:
getRepeat
in interface Job
- Returns:
- the repeat
getStart
public long getStart()
- Specified by:
getStart
in interface Job
- Returns:
- the start
getDelay
public long getDelay()
- Specified by:
getDelay
in interface Job
- Returns:
- the Delay
getCronEntry
public java.lang.String getCronEntry()
- Specified by:
getCronEntry
in interface Job
- Returns:
- the cron entry
getNextExecutionTime
public java.lang.String getNextExecutionTime()
- Description copied from interface:
Job
- Get the time the job is next due to execute
- Specified by:
getNextExecutionTime
in interface Job
- Returns:
- the date time
getStartTime
public java.lang.String getStartTime()
- Description copied from interface:
Job
- Get the start time as a Date time string
- Specified by:
getStartTime
in interface Job
- Returns:
- the date time
getDataTime
public static long getDataTime(java.lang.String value)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDateTime
public static java.lang.String getDateTime(long value)
Copyright © 2005-2011. All Rights Reserved.