001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *
022: * $Id $
023: */
024: package com.bostechcorp.cbesb.console.rpc;
025:
026: import com.bostechcorp.cbesb.console.client.ConsoleVersion;
027: import com.bostechcorp.cbesb.console.common.BaseRPCResultInfo;
028: import com.bostechcorp.cbesb.console.common.JmxAssemblyInfo;
029: import com.bostechcorp.cbesb.console.common.JmxComponentInfo;
030: import com.bostechcorp.cbesb.console.common.JmxEndpointInfo;
031: import com.bostechcorp.cbesb.console.common.ServerSideException;
032: import com.bostechcorp.cbesb.console.pub.JmxAssemblyExtObj;
033: import com.bostechcorp.cbesb.console.pub.JmxAssemblyObj;
034: import com.bostechcorp.cbesb.console.pub.JmxComponentObj;
035: import com.google.gwt.user.client.rpc.RemoteService;
036:
037: public interface JmxOperation extends RemoteService {
038:
039: /**
040: * It is very import for RPC method, if you want to throw an Exception,
041: * you must throw a ServerSideException, otherwise you need to return a object extends BaseRpcResultInfo
042: *
043: */
044: //--------components---------------------------------------------
045: public JmxComponentInfo getCurrentComponentList();
046:
047: public JmxComponentInfo pollingCurrentComponentList();
048:
049: public JmxComponentInfo getInstallComponentList();//installed uninstall
050:
051: public JmxComponentInfo pollingInstallComponentList();
052:
053: // public JmxComponentInfo getRemoveComponentList();
054:
055: public JmxComponentInfo startComponent(String componentName);
056:
057: // public JmxComponentInfo stopComponent(String componentName);
058: public JmxComponentInfo shutdownComponent(String componentName);
059:
060: public JmxComponentInfo startAllComponent();
061:
062: // public JmxComponentInfo stopAllComponent();
063: public JmxComponentInfo shutdownAllComponent();
064:
065: public JmxComponentInfo installComponent(String componentName,
066: String jarName);
067:
068: public JmxComponentInfo installSharedLibrary(String libName,
069: String jarName);
070:
071: public JmxComponentInfo getDependences(String componentName);
072:
073: public JmxComponentInfo uninstallComponent(String componentName);
074:
075: public JmxComponentInfo uninstallSharedLibrary(String libName);
076:
077: public JmxComponentInfo installAllComponents();
078:
079: public JmxComponentInfo uninstallAllComponents();
080:
081: // public JmxComponentInfo removeComponent(String componentJarName);
082: // public JmxComponentInfo removeSharedLibrary(String libName);
083:
084: //----------------service assemblies--------------------------------
085: public JmxAssemblyInfo getCurrentServiceAssemblyList();
086:
087: public JmxAssemblyInfo getDeployServiceAssemblyList();
088:
089: public JmxAssemblyInfo pollingCurrentServiceAssemblyList();
090:
091: public JmxAssemblyInfo pollingDeployServiceAssemblyList();
092:
093: // public JmxAssemblyInfo getRemoveServiceAssemblyList();
094:
095: public JmxAssemblyInfo startServiceAssembly(String assemblyName);
096:
097: public JmxAssemblyInfo stopServiceAssembly(String assemblyName);
098:
099: public JmxAssemblyInfo shutdownServiceAssembly(String assemblyName);
100:
101: public JmxAssemblyInfo startAllServiceAssembly();
102:
103: public JmxAssemblyInfo shutdownAllServiceAssembly();
104:
105: public JmxAssemblyInfo deployServiceAssembly(String assemblyZipUrl);
106:
107: public JmxAssemblyInfo undeployServiceAssembly(String assemblyName);
108:
109: // public JmxAssemblyInfo removeServiceAssembly(String assemblyJarName);
110:
111: //-----------------endpoints-------------------------------------------
112: public JmxEndpointInfo getSaList();
113:
114: /**
115: * get the endpoint statistics info for all SAs.
116: */
117: public JmxEndpointInfo getSaStatList();
118:
119: public JmxAssemblyObj getSaStatObj(String saName);
120:
121: public JmxComponentObj getComponentObj(String saName,
122: String componentName);
123:
124: public JmxEndpointInfo getPropertyObjects(String saName,
125: String componentName, String endpointName, String suName,
126: String role);
127:
128: public JmxEndpointInfo setPropertyObjects(String saName,
129: String suName, String componentName, String endpointName,
130: String type, String[][] propertyObjects);
131:
132: public BaseRPCResultInfo deletePropertyObjects(String saName,
133: String suName, String endpointName, String type);
134:
135: public JmxComponentObj startEndpoint(String saName,
136: String componentName, String endpointName);
137:
138: public JmxComponentObj stopEndpoint(String saName,
139: String componentName, String endpointName);
140:
141: public JmxComponentObj cycleEndpoint(String saName,
142: String componentName, String endpointName);
143:
144: public String[] getEndpointNameArray() throws ServerSideException;
145:
146: /**
147: * Get current Service Assembly object.
148: *
149: * @param saName
150: * @return JmxAssemblyObj
151: * @throws Exception
152: */
153: public JmxAssemblyObj getAssemblyObjAndValues(String saName);
154:
155: /**
156: * get AssemblyList and AssemblyObj for endpoint view
157: * @param saName
158: * @return
159: */
160: public JmxAssemblyExtObj getSAListForEndpointStatus(String saName);
161:
162: /**
163: * get AssemblyList and AssemblyObj for endpoint statistic view
164: * @param saName
165: * @return
166: */
167: public JmxAssemblyExtObj getSAListForEndpointStat(String saName);
168:
169: public ConsoleVersion getVersionInfo(String name);
170:
171: public ConsoleVersion getCCSLVersionInfo(String name);
172:
173: public BaseRPCResultInfo deleteEndpointStatistics(String saName);
174:
175: public BaseRPCResultInfo deleteAllEndpointStatistics();
176:
177: public void stopPollingNotification() throws ServerSideException;
178: }
|