001: package com.bostechcorp.cbesb.runtime.ccsl.jbi.messaging;
002:
003: import com.bostechcorp.cbesb.common.version.Version;
004:
005: public interface LifeCycleExtensionMBean {
006:
007: /**
008: * get the status of the endpoint
009: * @param key
010: * @return
011: */
012: public String getState(String key);
013:
014: /*
015: * Get the endpoint keys
016: */
017: String[] getEndpoints();
018:
019: /*
020: * Titles for the display parameters. Display parameters are meant to be shown on a console.
021: */
022: String[] getDisplayParameterTitles();
023:
024: /*
025: * Display parameter values for one endpoint
026: */
027: String[] getDisplayParameters(String endpointName);
028:
029: /*
030: * Returns the properties that can be read, things like password will no be included.
031: */
032: String[] getGetableProperties();
033:
034: /*
035: * Get one property for one endpoint
036: */
037: String getProperty(String key, String property);
038:
039: /*
040: * Returns the properties that can be set.
041: */
042: String[] getSetableProperties();
043:
044: /**
045: *
046: * @param endpointName
047: * @return
048: */
049: String[][] getGetablePropertyObject(String endpointName);
050:
051: void setGetablePropertyObject(String endpointName,
052: String[][] propertyObjects);
053:
054: /*
055: * Set one property for one endpoint.
056: */
057: void setProperty(String key, String property, String value);
058:
059: /*
060: * Stop an endpoint
061: */
062: void stopEndpoint(String key) throws Exception;
063:
064: /*
065: * Start an endpoint
066: */
067: void startEndpoint(String key) throws Exception;
068:
069: /*
070: * Get the endpoint names
071: * @return a array, each element is su name+":"+endpoint Name
072: */
073:
074: String[] getEndpointNames();
075:
076: /**
077: * return a endpoint array for single assembly, each element is su name:endpoint Name:state:role name
078: */
079: String[] getEndpointNamesBySA(String saName);
080:
081: void setAllEndpoints(String[] allEndpoints);
082:
083: Version getVersionInfo();
084:
085: Version getCCSLVersionInfo();
086:
087: String getVMFreePercent();
088:
089: String getVMFree();
090:
091: void setLogConfig(String logConfig);
092:
093: String getLogConfig();
094:
095: /**
096: * if saname=="all",reset all SA's statistics info,
097: * otherwise reset one SA's statistics info which name is saName
098: * @param saName
099: * @throws Exception
100: */
101: void resetEndpointStatistics(String saName) throws Exception;
102: }
|