KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > phoenix > interfaces > KernelMBean


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE file.
7  */

8 package org.apache.avalon.phoenix.interfaces;
9
10 /**
11  * This is the interface via which you can manager
12  * the root container of Applications.
13  *
14  * @phoenix:mx-topic name="Kernel"
15  *
16  * @author <a HREF="mailto:peter at apache.org">Peter Donald</a>
17  */

18 public interface KernelMBean
19 {
20     String JavaDoc ROLE = KernelMBean.class.getName();
21
22     /**
23      * Gets the list of applications running in the container
24      *
25      * @phoenix:mx-attribute
26      *
27      * @return applicationNames The array of application names
28      */

29     String JavaDoc[] getApplicationNames();
30
31     /**
32      * Removes the application from the container
33      *
34      * @phoenix:mx-operation
35      *
36      * @param name the name of application to remove
37      */

38     void removeApplication( String JavaDoc name )
39         throws Exception JavaDoc;
40 }
41
Popular Tags