001: package com.bostechcorp.cbesb.console.jmxclient;
002:
003: import java.util.concurrent.ConcurrentHashMap;
004:
005: import com.bostechcorp.cbesb.common.util.runtimedb.vo.EndpointStatVO;
006: import com.bostechcorp.cbesb.console.client.ConsoleVersion;
007: import com.bostechcorp.cbesb.console.common.JmxAssemblyInfo;
008: import com.bostechcorp.cbesb.console.common.JmxComponentInfo;
009: import com.bostechcorp.cbesb.console.common.JmxEndpointInfo;
010: import com.bostechcorp.cbesb.console.common.ServerSideException;
011: import com.bostechcorp.cbesb.console.pub.JmxAssemblyObj;
012: import com.bostechcorp.cbesb.console.pub.JmxComponentObj;
013: import com.bostechcorp.cbesb.console.pub.JmxEndpointObj;
014:
015: public interface JmxClient {
016: //----------Connect info------------------------------------------
017: public void getConnectInfo() throws ServerSideException;
018:
019: public void closeJmxConnection();
020:
021: //------------components--------------------------------------------
022: public void getCurrentComponentList(JmxComponentInfo result)
023: throws Exception;
024:
025: public void getInstallCompontentList(JmxComponentInfo info)
026: throws Exception;
027:
028: public void getRemoveComponentList(JmxComponentInfo info)
029: throws Exception;
030:
031: public void startComponent(String componentName) throws Exception;
032:
033: public void stopComponent(String componentName) throws Exception;
034:
035: public void shutdownComponent(String componentName)
036: throws Exception;
037:
038: public void installUserComponent(String fileName) throws Exception;
039:
040: public void installComponent(String componentName, String jarName)
041: throws Exception;
042:
043: public void installSharedLibrary(String componentName,
044: String jarName) throws Exception;
045:
046: public void getDependences(String componentName,
047: JmxComponentInfo info) throws Exception;
048:
049: public void uninstallComponent(String componentName)
050: throws Exception;
051:
052: public void uninstallSharedLibrary(String libName) throws Exception;
053:
054: public void removeSharedLibrary(String libName) throws Exception;
055:
056: public void removeComponent(String componentJarName)
057: throws Exception;
058:
059: public String[] getSANames() throws Exception;
060:
061: //--------service assemblies-------------------------------------------
062: public void getCurrentServiceAssemblyList(JmxAssemblyInfo info)
063: throws Exception;
064:
065: public void getDeployServiceAssemblyList(JmxAssemblyInfo info)
066: throws Exception;
067:
068: public void getRemoveServiceAssemblyList(JmxAssemblyInfo info)
069: throws Exception;
070:
071: public void startServiceAssembly(String assemblyName)
072: throws Exception;
073:
074: public void stopServiceAssembly(String assemblyName)
075: throws Exception;
076:
077: public void shutdownServiceAssembly(String assemblyName)
078: throws Exception;
079:
080: public void deployServiceAssembly(String assemblyZipUrl)
081: throws Exception;
082:
083: public void undeployServiceAssembly(String assemblyName)
084: throws Exception;
085:
086: public void removeServiceAssembly(String assemblyJarName)
087: throws Exception;
088:
089: //----------endpoints--------------------------------------------------
090: public void getSaList(JmxEndpointInfo info) throws Exception;
091:
092: public void getStatusChange(long timeout, JmxEndpointInfo info)
093: throws Exception;
094:
095: public void getStatusChangeBySA(long timeout, JmxAssemblyObj info)
096: throws Exception;
097:
098: public JmxEndpointInfo getStatusChangeBySA(long timeout,
099: String saName) throws Exception;
100:
101: public void getStatisticsChange(long timeout, JmxEndpointInfo info)
102: throws Exception;
103:
104: public void getStatisticsChangeBySA(long timeout, JmxAssemblyObj sa)
105: throws Exception;
106:
107: public JmxComponentObj getComponentObj(String saName,
108: String componentName) throws Exception;
109:
110: public JmxComponentObj getComponentObjAndValues(String saName,
111: String componentName) throws Exception;
112:
113: public void getPropertyObjects(String componentName,
114: String endpointName, JmxEndpointObj obj) throws Exception;
115:
116: public void startEndpoint(String componentName, String endpointName)
117: throws Exception;
118:
119: public void stopEndpoint(String componentName, String endpointName)
120: throws Exception;
121:
122: public void setPropertyObjects(String componentName,
123: String endpointName, String[][] propertyObjects,
124: JmxEndpointInfo info) throws Exception;
125:
126: public String[] getEndpointNameArray() throws Exception;
127:
128: public JmxEndpointObj getEndpointObj(String saName,
129: String componentName, String endpointName) throws Exception;
130:
131: public void getAssemblyObj(JmxAssemblyObj sa) throws Exception;
132:
133: public void getAssemblyObjAndValues(JmxAssemblyObj sa)
134: throws Exception;
135:
136: //-----------statistics---------------------------------------------------
137: public ConcurrentHashMap<String, EndpointStatVO> getStatisticInfo(
138: long timeout) throws Exception;
139:
140: /**
141: * if saname=="all",reset all SA's statistics info,
142: * otherwise reset one SA's statistics info which name is saName
143: * @param saName
144: * @throws Exception
145: */
146: public void resetEndpointStatistics(String saName) throws Exception;
147:
148: public void getVersionInfo(String name,
149: ConsoleVersion consoleVersion) throws Exception;
150:
151: public void getCCSLVersionInfo(String name,
152: ConsoleVersion consoleVersion) throws Exception;
153:
154: public String getSessionId();
155:
156: public void setSessionId(String sessionId);
157:
158: public void stopPollingNotification();
159:
160: public void setLogConfig(String logConfig)
161: throws ServerSideException;
162:
163: public String getLogConfig() throws ServerSideException;
164: }
|