KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > longrunning > LongrunningGCTestAppConfigObject


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.longrunning;
5
6 import com.tc.objectserver.control.ServerControl;
7 import com.tc.simulator.app.ApplicationConfig;
8
9 public class LongrunningGCTestAppConfigObject implements LongrunningGCTestAppConfig {
10
11   private long loopSleepTime = 250;
12   private String JavaDoc[] applicationClasses = new String JavaDoc[0];
13
14   public void setLoopSleepTime(long time) {
15     this.loopSleepTime = time;
16   }
17
18   public long getLoopSleepTime() {
19     return loopSleepTime;
20   }
21
22   public String JavaDoc getApplicationClassname() {
23     return LongrunningGCTestApp.class.getName();
24   }
25
26   public String JavaDoc[] getApplicationClasses() {
27     return this.applicationClasses;
28   }
29
30   public void setApplicationClasses(String JavaDoc[] classes) {
31     this.applicationClasses = classes;
32   }
33
34   public void setAttribute(String JavaDoc key, String JavaDoc value) {
35     //
36
}
37
38   public String JavaDoc getAttribute(String JavaDoc key) {
39     return null;
40   }
41
42
43   public int getIntensity() {
44     throw new AssertionError JavaDoc();
45   }
46
47   public int getGlobalParticipantCount() {
48     throw new AssertionError JavaDoc();
49   }
50
51   public ApplicationConfig copy() {
52     throw new AssertionError JavaDoc();
53   }
54
55   public ServerControl getServerControl() {
56     throw new UnsupportedOperationException JavaDoc("not implemented, should not be used");
57   }
58 }
59
Popular Tags