001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.activemq.broker.scheduler;
018
019
020 public interface Job {
021
022 /**
023 * @return the jobId
024 */
025 public abstract String getJobId();
026
027 /**
028 * @return the repeat
029 */
030 public abstract int getRepeat();
031
032 /**
033 * @return the start
034 */
035 public abstract long getStart();
036
037 /**
038 * @return the Delay
039 */
040 public abstract long getDelay();
041 /**
042 * @return the period
043 */
044 public abstract long getPeriod();
045
046 /**
047 * @return the cron entry
048 */
049 public abstract String getCronEntry();
050
051 /**
052 * @return the payload
053 */
054 public abstract byte[] getPayload();
055
056 /**
057 * Get the start time as a Date time string
058 * @return the date time
059 */
060 public String getStartTime();
061
062 /**
063 * Get the time the job is next due to execute
064 * @return the date time
065 */
066 public String getNextExecutionTime();
067
068 }