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.pub.JmxAssemblyExtObj;
032: import com.bostechcorp.cbesb.console.pub.JmxAssemblyObj;
033: import com.bostechcorp.cbesb.console.pub.JmxComponentObj;
034: import com.google.gwt.user.client.rpc.AsyncCallback;
035:
036: public interface JmxOperationAsync {
037:
038: /**
039: * It is very import for RPC method, if you want to throw an Exception,
040: * you must throw a ServerSideException, otherwise you need to return a object extends BaseRpcResultInfo
041: *
042: */
043: //--------components---------------------------------------------
044: public void getCurrentComponentList(AsyncCallback callback);
045:
046: public void pollingCurrentComponentList(AsyncCallback callback);
047:
048: public void getInstallComponentList(AsyncCallback callback);//installed uninstall
049:
050: public void pollingInstallComponentList(AsyncCallback callback);
051:
052: // public JmxComponentInfo getRemoveComponentList();
053:
054: public void startComponent(String componentName,
055: AsyncCallback callback);
056:
057: // public JmxComponentInfo stopComponent(String componentName);
058: public void shutdownComponent(String componentName,
059: AsyncCallback callback);
060:
061: public void startAllComponent(AsyncCallback callback);
062:
063: // public JmxComponentInfo stopAllComponent();
064: public void shutdownAllComponent(AsyncCallback callback);
065:
066: public void installComponent(String componentName, String jarName,
067: AsyncCallback callback);
068:
069: public void installSharedLibrary(String libName, String jarName,
070: AsyncCallback callback);
071:
072: public void getDependences(String componentName,
073: AsyncCallback callback);
074:
075: public void uninstallComponent(String componentName,
076: AsyncCallback callback);
077:
078: public void uninstallSharedLibrary(String libName,
079: AsyncCallback callback);
080:
081: public void installAllComponents(AsyncCallback callback);
082:
083: public void uninstallAllComponents(AsyncCallback callback);
084:
085: // public JmxComponentInfo removeComponent(String componentJarName);
086: // public JmxComponentInfo removeSharedLibrary(String libName);
087:
088: //----------------service assemblies--------------------------------
089: public void getCurrentServiceAssemblyList(AsyncCallback callback);
090:
091: public void getDeployServiceAssemblyList(AsyncCallback callback);
092:
093: public void pollingCurrentServiceAssemblyList(AsyncCallback callback);
094:
095: public void pollingDeployServiceAssemblyList(AsyncCallback callback);
096:
097: // public JmxAssemblyInfo getRemoveServiceAssemblyList();
098:
099: public void startServiceAssembly(String assemblyName,
100: AsyncCallback callback);
101:
102: public void stopServiceAssembly(String assemblyName,
103: AsyncCallback callback);
104:
105: public void shutdownServiceAssembly(String assemblyName,
106: AsyncCallback callback);
107:
108: public void startAllServiceAssembly(AsyncCallback callback);
109:
110: public void shutdownAllServiceAssembly(AsyncCallback callback);
111:
112: public void deployServiceAssembly(String assemblyZipUrl,
113: AsyncCallback callback);
114:
115: public void undeployServiceAssembly(String assemblyName,
116: AsyncCallback callback);
117:
118: // public JmxAssemblyInfo removeServiceAssembly(String assemblyJarName);
119:
120: //-----------------endpoints-------------------------------------------
121: public void getSaList(AsyncCallback callback);
122:
123: /**
124: * get the endpoint statistics info for all SAs.
125: */
126: public void getSaStatList(AsyncCallback callback);
127:
128: public void getSaStatObj(String saName, AsyncCallback callback);
129:
130: public void getComponentObj(String saName, String componentName,
131: AsyncCallback callback);
132:
133: public void getPropertyObjects(String saName, String componentName,
134: String endpointName, String suName, String role,
135: AsyncCallback callback);
136:
137: public void setPropertyObjects(String saName, String suName,
138: String componentName, String endpointName, String type,
139: String[][] propertyObjects, AsyncCallback callback);
140:
141: public void deletePropertyObjects(String saName, String suName,
142: String endpointName, String type, AsyncCallback callback);
143:
144: public void startEndpoint(String saName, String componentName,
145: String endpointName, AsyncCallback callback);
146:
147: public void stopEndpoint(String saName, String componentName,
148: String endpointName, AsyncCallback callback);
149:
150: public void cycleEndpoint(String saName, String componentName,
151: String endpointName, AsyncCallback callback);
152:
153: public void getEndpointNameArray(AsyncCallback callback);
154:
155: /**
156: * Get current Service Assembly object.
157: *
158: * @param saName
159: * @param callback the callback to return JmxAssemblyObj
160: * @throws Exception
161: */
162: public void getAssemblyObjAndValues(String saName,
163: AsyncCallback callback);
164:
165: /**
166: * get AssemblyList and AssemblyObj for endpoint view
167: * @param saName
168: * @param callback the callback to return */
169: public void getSAListForEndpointStatus(String saName,
170: AsyncCallback callback);
171:
172: /**
173: * get AssemblyList and AssemblyObj for endpoint statistic view
174: * @param saName
175: * @param callback the callback to return */
176: public void getSAListForEndpointStat(String saName,
177: AsyncCallback callback);
178:
179: public void getVersionInfo(String name, AsyncCallback callback);
180:
181: public void getCCSLVersionInfo(String name, AsyncCallback callback);
182:
183: public void deleteEndpointStatistics(String saName,
184: AsyncCallback callback);
185:
186: public void deleteAllEndpointStatistics(AsyncCallback callback);
187:
188: public void stopPollingNotification(AsyncCallback callback);
189: }
|