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.common;
025:
026: import com.google.gwt.user.client.rpc.IsSerializable;
027:
028: public class JmxComponentInfo extends BaseRPCResultInfo implements
029: IsSerializable {
030:
031: public static final int GET_CURRENT_COMPONENT_LIST = 1;
032: public static final int GET_INSTALL_COMPONENT_LIST = 2;
033: public static final int GET_REMOVE_COMPONENT_LIST = 3;
034:
035: public static final int START_COMPONENT = 4;
036: // public static final int STOP_COMPONENT=5;
037: public static final int SHUTDOWN_COMPONENT = 6;
038:
039: public static final int INSTALL_COMPONENT = 7;
040: public static final int INSTALL_SHAREDLIBRARY = 8;
041: public static final int GET_COMPONENT_DEPENDENCE = 9;
042:
043: public static final int UNINSTALL_COMPONENT = 10;
044: public static final int UNINSTALL_SHAREDLIBRARY = 11;
045:
046: public static final int REMOVE_COMPONENT = 12;
047: public static final int REMOVE_SHAREDLIBRARY = 13;
048:
049: public static final String[] LifeCycleState = new String[] {
050: "Shutdown", "Started" };
051: public static final String[] LifeCycleOper = new String[] {
052: "Shutdown", "Start" };
053:
054: public static final String START = "START";
055:
056: // public static final String STOP="STOP";
057: public static final String SHUTDOWN = "SHUTDOWN";
058:
059: public static final String INSTALL = "INSTALL";
060: public static final String UNINSTALL = "UNINSTALL";
061:
062: public static final String DEPLOY = "DEPLOY";
063: public static final String UNDEPLOY = "UNDEPLOY";
064:
065: private String bindingComponents[];
066: private String serviceEngines[];
067: private String sharedLibraries[];
068:
069: private String uninstallBC[];
070: private String uninstallSE[];
071: private String uninstallSL[];
072:
073: private String bcStates[];
074: private String seStates[];
075:
076: private ServiceAssemblyObj componentDependences[];
077:
078: private int refreshRate = 60000;
079:
080: public void setBindingComponents(String[] bcList) {
081: bindingComponents = bcList;
082: }
083:
084: public void setServiceEngines(String[] seList) {
085: serviceEngines = seList;
086: }
087:
088: public void setSharedLibraries(String[] slList) {
089: sharedLibraries = slList;
090: }
091:
092: public String[] getBindingComponents() {
093: return bindingComponents;
094: }
095:
096: public String[] getServiceEngines() {
097: return serviceEngines;
098: }
099:
100: public String[] getSharedLibraries() {
101: return sharedLibraries;
102: }
103:
104: public String[] getBcStates() {
105: return bcStates;
106: }
107:
108: public void setBcStates(String[] bcStates) {
109: this .bcStates = bcStates;
110: }
111:
112: public String[] getSeStates() {
113: return seStates;
114: }
115:
116: public void setSeStates(String[] seStates) {
117: this .seStates = seStates;
118: }
119:
120: public ServiceAssemblyObj[] getComponentDependences() {
121: return componentDependences;
122: }
123:
124: public void setComponentDependences(
125: ServiceAssemblyObj[] componentDependences) {
126: this .componentDependences = componentDependences;
127: }
128:
129: public String[] getUninstallBC() {
130: return uninstallBC;
131: }
132:
133: public void setUninstallBC(String[] uninstallBC) {
134: this .uninstallBC = uninstallBC;
135: }
136:
137: public String[] getUninstallSE() {
138: return uninstallSE;
139: }
140:
141: public void setUninstallSE(String[] uninstallSE) {
142: this .uninstallSE = uninstallSE;
143: }
144:
145: public String[] getUninstallSL() {
146: return uninstallSL;
147: }
148:
149: public void setUninstallSL(String[] uninstallSL) {
150: this .uninstallSL = uninstallSL;
151: }
152:
153: public int getRefreshRate() {
154: return refreshRate;
155: }
156:
157: public void setRefreshRate(int refreshRate) {
158: this.refreshRate = refreshRate;
159: }
160:
161: }
|