1 13 14 package org.ejbca.appserver.jboss; 15 16 import org.jboss.system.ServiceMBeanSupport; 17 18 21 public class CRLCreateService extends ServiceMBeanSupport implements CRLCreateServiceMBean 22 { 23 public static final String POLLTIME_DAILY = "DAILY"; 24 public static final String POLLTIME_HOURLY = "HOURLY"; 25 public static final String POLLTIME_30MIN = "30MIN"; 26 public static final String POLLTIME_15MIN = "15MIN"; 27 public static final String POLLTIME_1MIN = "1MIN"; 28 29 private String polltime; 30 private CRLCreateThread crlcreatethread; 31 32 public String getPolltime() 33 { 34 return polltime; 35 } 36 37 public void setPolltime(String polltime) 38 { 39 this.polltime = polltime; 40 } 41 42 public String getName() 43 { 44 return "CRLCreateService"; 45 } 46 47 public void startService() throws Exception 48 { 49 this.crlcreatethread = new CRLCreateThread(getPolltime()); 50 this.crlcreatethread.start(); 51 } 52 public void stopService() 53 { 54 this.crlcreatethread.stopThread(); 55 } 56 57 58 } | Popular Tags |