KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > deployers > jbas2904 > sar > mbean1 > MBean1


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.deployers.jbas2904.sar.mbean1;
8
9 import org.jboss.system.ServiceMBeanSupport;
10
11 public class MBean1 extends ServiceMBeanSupport implements MBean1MBean
12 {
13     public long lastDeployed;
14     public long getLastDeployed(){
15         return lastDeployed;
16     }
17     public void setLastDeployed(long lastDeployed){
18         this.lastDeployed = lastDeployed;
19     }
20     protected void startService(){
21
22         try{
23             Thread.sleep(15);
24         }
25         catch(InterruptedException JavaDoc e){
26         }
27         this.lastDeployed = System.currentTimeMillis();
28         System.out.println("Atestdeployerorder-jbas2904.sar deployed at :"+lastDeployed);
29     }
30 }
31
Popular Tags