1 17 18 21 22 package org.quartz.utils; 23 24 import java.util.Date ; 25 26 33 public class TriggerStatus extends Pair { 34 35 43 44 private Key key; 45 46 private Key jobKey; 47 48 55 56 64 public TriggerStatus(String status, Date nextFireTime) { 65 super(); 66 super.setFirst(status); 67 super.setSecond(nextFireTime); 68 } 69 70 77 78 public Key getJobKey() { 79 return jobKey; 80 } 81 82 public void setJobKey(Key jobKey) { 83 this.jobKey = jobKey; 84 } 85 86 public Key getKey() { 87 return key; 88 } 89 90 public void setKey(Key key) { 91 this.key = key; 92 } 93 94 101 public String getStatus() { 102 return (String ) getFirst(); 103 } 104 105 112 public Date getNextFireTime() { 113 return (Date ) getSecond(); 114 } 115 116 122 public String toString() { 123 return "status: " + getStatus() + ", next Fire = " + getNextFireTime(); 124 } 125 } 126 127 | Popular Tags |