01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: String STARTED = "Started";
22:
23: String SHUTDOWN = "Shutdown";
24:
25: String STOPPED = "Stopped";
26:
27: String deploy(String saZipURL) throws Exception;
28:
29: String undeploy(String saName) throws Exception;
30:
31: String[] getDeployedServiceUnitList(String componentName)
32: throws Exception;
33:
34: String[] getDeployedServiceAssemblies() throws Exception;
35:
36: String getServiceAssemblyDescriptor(String saName) throws Exception;
37:
38: String[] getDeployedServiceAssembliesForComponent(
39: String componentName) throws Exception;
40:
41: String[] getComponentsForDeployedServiceAssembly(String saName)
42: throws Exception;
43:
44: boolean isDeployedServiceUnit(String componentName, String suName)
45: throws Exception;
46:
47: boolean canDeployToComponent(String componentName);
48:
49: String start(String serviceAssemblyName) throws Exception;
50:
51: String stop(String serviceAssemblyName) throws Exception;
52:
53: String shutDown(String serviceAssemblyName) throws Exception;
54:
55: String getState(String serviceAssemblyName) throws Exception;
56: }
|