1 22 package org.jboss.varia.scheduler; 23 24 import java.security.InvalidParameterException ; 25 26 import javax.management.ObjectName ; 27 28 import org.jboss.mx.util.ObjectNameFactory; 29 import org.jboss.system.ServiceMBean; 30 31 38 public interface SchedulerMBean extends ServiceMBean 39 { 40 41 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss:service=Scheduler"); 42 43 45 63 void setInitialStartDate(String startDate); 64 String getInitialStartDate(); 65 66 67 void setDateFormat(String dateFormat); 68 String getDateFormat(); 69 70 71 void setSchedulePeriod(long period); 72 long getSchedulePeriod(); 73 74 75 void setInitialRepetitions(long numberOfCalls); 76 long getInitialRepetitions(); 77 78 79 void setSchedulableClass(String schedulableClass) throws java.security.InvalidParameterException ; 80 String getSchedulableClass(); 81 82 83 void setSchedulableArguments(String argumentList); 84 String getSchedulableArguments(); 85 86 96 void setSchedulableArgumentTypes(String typeList) throws java.security.InvalidParameterException ; 97 String getSchedulableArgumentTypes(); 98 99 108 void setSchedulableMBean(String schedulableMBean) throws java.security.InvalidParameterException ; 109 String getSchedulableMBean(); 110 111 126 void setSchedulableMBeanMethod(String schedulableMBeanMethod) throws java.security.InvalidParameterException ; 127 String getSchedulableMBeanMethod(); 128 129 130 void setFixedRate(boolean fixedRate); 131 boolean getFixedRate(); 132 133 134 void setStartAtStartup(boolean startAtStartup); 135 boolean isStartAtStartup(); 136 137 138 void setTimerName(String timerName); 139 String getTimerName(); 140 141 143 long getRemainingRepetitions(); 144 boolean isActive(); 145 boolean isStarted(); 146 boolean isRestartPending(); 147 boolean isUsingMBean(); 148 149 151 157 void startSchedule(); 158 159 164 void stopSchedule(boolean doItNow); 165 166 169 void stopSchedule(); 170 171 174 void restartSchedule(); 175 } 176 | Popular Tags |