org.apache.activemq.broker.scheduler
Class JobImpl

java.lang.Object
  extended by org.apache.activemq.broker.scheduler.JobImpl
All Implemented Interfaces:
Job

public class JobImpl
extends Object
implements Job


Constructor Summary
protected JobImpl(org.apache.activemq.broker.scheduler.JobLocation location, org.apache.kahadb.util.ByteSequence bs)
           
 
Method Summary
 String getCronEntry()
           
static long getDataTime(String value)
           
static String getDateTime(long value)
           
 long getDelay()
           
 String getJobId()
           
 String getNextExecutionTime()
          Get the time the job is next due to execute
 byte[] getPayload()
           
 long getPeriod()
           
 int getRepeat()
           
 long getStart()
           
 String getStartTime()
          Get the start time as a Date time string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobImpl

protected JobImpl(org.apache.activemq.broker.scheduler.JobLocation location,
                  org.apache.kahadb.util.ByteSequence bs)
Method Detail

getJobId

public 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 String getCronEntry()
Specified by:
getCronEntry in interface Job
Returns:
the cron entry

getNextExecutionTime

public 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 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(String value)
                        throws Exception
Throws:
Exception

getDateTime

public static String getDateTime(long value)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.