1 14 package org.compiere.server; 15 16 import javax.management.*; 17 import org.jboss.system.*; 18 19 import org.compiere.*; 20 import org.compiere.db.*; 21 import org.compiere.util.*; 22 23 29 public class AppsService extends ServiceMBeanSupport 30 implements AppsServiceMBean, Runnable 31 { 32 35 public AppsService() 36 { 37 } 39 43 protected void createService() throws Exception 44 { 45 } 49 53 protected void startService() throws Exception 54 { 55 } 58 62 protected void stopService() throws Exception 63 { 64 } 66 67 71 protected void destroyService() throws Exception 72 { 73 81 } 83 84 87 public void run() 88 { 89 boolean running = true; 90 while (running) 91 { 92 try 93 { 94 95 96 Thread.sleep(1000); 99 } 100 catch (InterruptedException e) 101 { 102 running = false; 103 } 104 } } 107 108 109 110 114 public String getStatistics() 115 { 116 return "Count"; } 119 120 121 } | Popular Tags |