01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest.longrunning;
06:
07: import com.tc.net.proxy.TCPProxy;
08: import com.tc.objectserver.control.ServerControl;
09: import com.tc.simulator.app.ApplicationConfig;
10:
11: public class LongrunningGCTestAppConfigObject implements
12: LongrunningGCTestAppConfig {
13:
14: private long loopSleepTime = 250;
15: private String[] applicationClasses = new String[0];
16:
17: public void setLoopSleepTime(long time) {
18: this .loopSleepTime = time;
19: }
20:
21: public long getLoopSleepTime() {
22: return loopSleepTime;
23: }
24:
25: public String getApplicationClassname() {
26: return LongrunningGCTestApp.class.getName();
27: }
28:
29: public String[] getApplicationClasses() {
30: return this .applicationClasses;
31: }
32:
33: public void setApplicationClasses(String[] classes) {
34: this .applicationClasses = classes;
35: }
36:
37: public void setAttribute(String key, String value) {
38: //
39: }
40:
41: public String getAttribute(String key) {
42: return null;
43: }
44:
45: public int getIntensity() {
46: throw new AssertionError();
47: }
48:
49: public int getGlobalParticipantCount() {
50: throw new AssertionError();
51: }
52:
53: public ApplicationConfig copy() {
54: throw new AssertionError();
55: }
56:
57: public ServerControl getServerControl() {
58: throw new UnsupportedOperationException(
59: "not implemented, should not be used");
60: }
61:
62: public int getValidatorCount() {
63: throw new AssertionError();
64: }
65:
66: public int getGlobalValidatorCount() {
67: throw new AssertionError();
68: }
69:
70: public TCPProxy[] getProxies() {
71: throw new AssertionError();
72: }
73:
74: public ServerControl[] getServerControls() {
75: throw new AssertionError();
76: }
77:
78: public Object getAttributeObject(String key) {
79: throw new AssertionError();
80: }
81: }
|