001: /*
002: * MCS Media Computer Software Copyright (c) 2007 by MCS
003: * -------------------------------------- Created on 09.01.2007 by W.Klaas
004: *
005: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
006: * use this file except in compliance with the License. You may obtain a copy of
007: * the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
013: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
014: * License for the specific language governing permissions and limitations under
015: * the License.
016: */
017: package de.mcs.jmeasurement.jmx;
018:
019: import java.io.IOException;
020:
021: import org.xml.sax.SAXException;
022:
023: /**
024: * MBean interface for the configuration.
025: *
026: * @author W.Klaas
027: */
028: public interface JmxConfigMBean {
029: /**
030: * @return the configured background time.
031: */
032: int getBackgroundTime();
033:
034: /**
035: * @param backgroundTime
036: * setting the background time.
037: */
038: void setBackgroundTime(int backgroundTime);
039:
040: /**
041: * @return will the config file automatically rereaded.
042: */
043: boolean isConfigAutofile();
044:
045: /**
046: * @param configAutofile
047: * setting, if the configuration file will be automatically
048: * rereaded.
049: */
050: void setConfigAutofile(boolean configAutofile);
051:
052: /**
053: * @return is the deviation support disabled.
054: */
055: boolean isDisableDeviation();
056:
057: /**
058: * @param disableDeviation
059: * disable the deviation support.
060: */
061: void setDisableDeviation(boolean disableDeviation);
062:
063: /**
064: * @return is the auto snapshot feature enabled.
065: */
066: boolean isEnableAutosnapshot();
067:
068: /**
069: * @param enableAutosnapshot
070: * enable the auto snapshot feature.
071: */
072: void setEnableAutosnapshot(boolean enableAutosnapshot);
073:
074: /**
075: * @return is the Measurement system enabled.
076: */
077: boolean isEnableMeasurement();
078:
079: /**
080: * @param enableMeasurement
081: * enable the JMeasurement system.
082: */
083: void setEnableMeasurement(boolean enableMeasurement);
084:
085: /**
086: * @return is the memory saving feature enabled.
087: */
088: boolean isEnableMemorySavings();
089:
090: /**
091: * @param enableMemorySavings
092: * enable the memory saving feature.
093: */
094: void setEnableMemorySavings(boolean enableMemorySavings);
095:
096: /**
097: * @return the type of exception handling.
098: */
099: int getExceptionHandling();
100:
101: /**
102: * @param exceptionHandling
103: * setting the exception handling
104: */
105: void setExceptionHandling(int exceptionHandling);
106:
107: /**
108: * @return getting the point idle time for memory saving feature.
109: */
110: int getPointIdletime();
111:
112: /**
113: * @param pointIdletime
114: * setting the idle time when the measure point will saved.
115: * (memory saving feature)
116: */
117: void setPointIdletime(int pointIdletime);
118:
119: /**
120: * @return the working path.
121: */
122: String getWorkingpath();
123:
124: /**
125: * @param workingpath
126: * setting the path, where some files will stored automatically.
127: */
128: void setWorkingpath(String workingpath);
129:
130: /**
131: * taking a new shapshot with the given name.
132: *
133: * @param name
134: * name of the snapshot.
135: */
136: void takeSnapShot(final String name);
137:
138: /**
139: * @return String array with all snapshotnames.
140: */
141: String[] getSnapShotNames();
142:
143: /**
144: * @param name
145: * name of the snapshot
146: * @param filename
147: * save the snapshot to the desired filename.
148: * @throws IOException
149: * if someting goes wrong.
150: * @throws SAXException
151: * if someting goes wrong.
152: */
153: void saveSnapShot(final String name, final String filename)
154: throws SAXException, IOException;
155:
156: /**
157: * @param filename
158: * save the html report to the desired filename.
159: * @throws IOException
160: * if someting goes wrong.
161: */
162: void saveHTMLReport(final String filename) throws IOException;
163:
164: String getApplicationName();
165: }
|