KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > appserver > jboss > CRLCreateService


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.appserver.jboss;
15
16 import org.jboss.system.ServiceMBeanSupport;
17
18 /**
19  * An MBean service managing the automatic creation of CRLs.
20 */

21 public class CRLCreateService extends ServiceMBeanSupport implements CRLCreateServiceMBean
22 {
23   public static final String JavaDoc POLLTIME_DAILY = "DAILY";
24   public static final String JavaDoc POLLTIME_HOURLY = "HOURLY";
25   public static final String JavaDoc POLLTIME_30MIN = "30MIN";
26   public static final String JavaDoc POLLTIME_15MIN = "15MIN";
27   public static final String JavaDoc POLLTIME_1MIN = "1MIN";
28
29   private String JavaDoc polltime;
30   private CRLCreateThread crlcreatethread;
31   
32   public String JavaDoc getPolltime()
33   {
34      return polltime;
35   }
36
37   public void setPolltime(String JavaDoc polltime)
38   {
39       this.polltime = polltime;
40   }
41
42   public String JavaDoc getName()
43   {
44     return "CRLCreateService";
45   }
46
47   public void startService() throws Exception JavaDoc
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