KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > jbi > framework > AdminCommandsServiceMBean


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.servicemix.jbi.framework;
18
19 import javax.jbi.management.LifeCycleMBean;
20 import java.util.Properties JavaDoc;
21
22 /**
23  * Provides a simple interface to access ServiceMix administration commands.
24  *
25  * @version $Revision: 657 $
26  */

27 public interface AdminCommandsServiceMBean extends LifeCycleMBean {
28     
29     String JavaDoc installComponent(String JavaDoc file) throws Exception JavaDoc;
30
31     String JavaDoc installComponent(String JavaDoc file,Properties JavaDoc properties) throws Exception JavaDoc;
32
33     String JavaDoc uninstallComponent(String JavaDoc name) throws Exception JavaDoc;
34
35     String JavaDoc installSharedLibrary(String JavaDoc file) throws Exception JavaDoc;
36
37     String JavaDoc uninstallSharedLibrary(String JavaDoc name) throws Exception JavaDoc;
38
39     String JavaDoc startComponent(String JavaDoc name) throws Exception JavaDoc;
40
41     String JavaDoc stopComponent(String JavaDoc name) throws Exception JavaDoc;
42
43     String JavaDoc shutdownComponent(String JavaDoc name) throws Exception JavaDoc;
44
45     String JavaDoc deployServiceAssembly(String JavaDoc file) throws Exception JavaDoc;
46
47     String JavaDoc undeployServiceAssembly(String JavaDoc name) throws Exception JavaDoc;
48
49     String JavaDoc startServiceAssembly(String JavaDoc name) throws Exception JavaDoc;
50
51     String JavaDoc stopServiceAssembly(String JavaDoc name) throws Exception JavaDoc;
52
53     String JavaDoc shutdownServiceAssembly(String JavaDoc name) throws Exception JavaDoc;
54
55     String JavaDoc installArchive(String JavaDoc location) throws Exception JavaDoc;
56
57     String JavaDoc listComponents(boolean excludeSEs,
58                           boolean excludeBCs,
59                           boolean excludePojos,
60                           String JavaDoc requiredState,
61                           String JavaDoc sharedLibraryName,
62                           String JavaDoc serviceAssemblyName) throws Exception JavaDoc;
63
64     String JavaDoc listSharedLibraries(String JavaDoc componentName,
65                                String JavaDoc sharedLibraryName) throws Exception JavaDoc;
66
67     String JavaDoc listServiceAssemblies(String JavaDoc state,
68                                  String JavaDoc componentName,
69                                  String JavaDoc serviceAssemblyName) throws Exception JavaDoc;
70 }
71
Popular Tags