01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.simulator.container;
05:
06: public class ContainerConfigImpl implements ContainerConfig {
07:
08: private final int executionCount;
09: private final boolean isMaster;
10: private final int executionTimeout;
11:
12: public ContainerConfigImpl(int executionCount,
13: int executionTimeout, boolean isMaster) {
14: this .executionCount = executionCount;
15: this .executionTimeout = executionTimeout;
16: this .isMaster = isMaster;
17:
18: }
19:
20: public int getApplicationInstanceCount() {
21: return executionCount;
22: }
23:
24: public long getContainerStartTimeout() {
25: return 30 * 1000;
26: }
27:
28: public long getApplicationStartTimeout() {
29: return 30 * 1000;
30: }
31:
32: public long getApplicationExecutionTimeout() {
33: return executionTimeout;
34: }
35:
36: public boolean dumpErrors() {
37: return false;
38: }
39:
40: public boolean dumpOutput() {
41: return false;
42: }
43:
44: public boolean aggregate() {
45: return false;
46: }
47:
48: public boolean stream() {
49: return false;
50: }
51:
52: public boolean isMaster() {
53: return isMaster;
54: }
55:
56: }
|