KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jbi > management > DeploymentServiceMBean


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 javax.jbi.management;
18
19 public interface DeploymentServiceMBean
20 {
21     
22     String JavaDoc deploy (String JavaDoc saZipURL) throws Exception JavaDoc;
23
24     String JavaDoc undeploy (String JavaDoc saName) throws Exception JavaDoc;
25
26     String JavaDoc[] getDeployedServiceUnitList (String JavaDoc componentName) throws Exception JavaDoc;
27
28     String JavaDoc[] getDeployedServiceAssemblies () throws Exception JavaDoc;
29     
30     String JavaDoc getServiceAssemblyDescriptor (String JavaDoc saName) throws Exception JavaDoc;
31    
32     String JavaDoc[] getDeployedServiceAssembliesForComponent (String JavaDoc componentName)
33         throws Exception JavaDoc;
34     
35     String JavaDoc[] getComponentsForDeployedServiceAssembly (String JavaDoc saName) throws Exception JavaDoc;
36     
37     boolean isDeployedServiceUnit (String JavaDoc componentName, String JavaDoc suName) throws Exception JavaDoc;
38     
39     boolean canDeployToComponent (String JavaDoc componentName);
40     
41     String JavaDoc start(String JavaDoc serviceAssemblyName) throws Exception JavaDoc;
42     
43     String JavaDoc stop(String JavaDoc serviceAssemblyName) throws Exception JavaDoc;
44     
45     String JavaDoc shutDown(String JavaDoc serviceAssemblyName) throws Exception JavaDoc;
46     
47     String JavaDoc getState(String JavaDoc serviceAssemblyName) throws Exception JavaDoc;
48
49     static final String JavaDoc STARTED = "Started";
50     
51     static final String JavaDoc SHUTDOWN = "Shutdown";
52
53     static final String JavaDoc STOPPED = "Stopped";
54 }
55
Popular Tags