1 4 package com.tcsimulator; 5 6 import com.tc.objectserver.control.ServerControl; 7 import com.tc.simulator.app.ApplicationConfig; 8 9 import java.util.HashMap ; 10 import java.util.Map ; 11 12 public class SimpleApplicationConfig implements ApplicationConfig { 13 14 private final Map attributes = new HashMap (); 15 16 public SimpleApplicationConfig() { 17 setAttribute("sleepInterval", "0"); 19 setAttribute("throwException", Boolean.FALSE.toString()); 20 } 21 22 public String getApplicationClassname() { 23 return SimpleApplication.class.getName(); 24 } 25 26 public void setAttribute(String key, String value) { 27 attributes.put(key, value); 28 } 29 30 public String getAttribute(String key) { 31 return (String )attributes.get(key); 32 } 33 34 public int getIntensity() { 35 throw new AssertionError (); 36 } 37 38 public int getGlobalParticipantCount() { 39 throw new AssertionError (); 40 } 41 42 public ApplicationConfig copy() { 43 throw new AssertionError (); 44 } 45 46 public ServerControl getServerControl() { 47 throw new AssertionError (); 48 } 49 } 50 | Popular Tags |