1 22 package org.jboss.varia.scheduler; 23 24 import java.util.Date ; 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 ScheduleManagerMBean extends ServiceMBean 39 { 40 41 ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss:service=ScheduleMBean"); 42 43 45 46 void setStartAtStartup(boolean startAtStartup); 47 boolean isStartAtStartup(); 48 49 50 void setTimerName(String timerObjectName); 51 String getTimerName(); 52 53 54 void setFixedRate(boolean fixedRate); 55 boolean getFixedRate(); 56 57 59 62 void startSchedules(); 63 64 69 void stopSchedules(boolean doItNow); 70 71 74 void restartSchedule(); 75 76 83 void registerProvider(String providerObjectName); 84 85 91 void unregisterProvider(String providerObjectName); 92 93 102 int addSchedule(ObjectName provider, ObjectName target, String methodName, String [] methodSignature, 103 Date startDate, long period, int repetitions); 104 105 109 void removeSchedule(int identification); 110 111 } 112 | Popular Tags |