1 4 package com.tc.simulator.container; 5 6 public class ContainerConfigImpl implements ContainerConfig { 7 8 private final int executionCount; 9 private final boolean isMaster; 10 private final int executionTimeout; 11 12 public ContainerConfigImpl(int executionCount, int executionTimeout, boolean isMaster) { 13 this.executionCount = executionCount; 14 this.executionTimeout = executionTimeout; 15 this.isMaster = isMaster; 16 17 } 18 19 public int getApplicationInstanceCount() { 20 return executionCount; 21 } 22 23 public long getContainerStartTimeout() { 24 return 30 * 1000; 25 } 26 27 public long getApplicationStartTimeout() { 28 return 30 * 1000; 29 } 30 31 public long getApplicationExecutionTimeout() { 32 return executionTimeout; 33 } 34 35 public boolean dumpErrors() { 36 return false; 37 } 38 39 public boolean dumpOutput() { 40 return false; 41 } 42 43 public boolean aggregate() { 44 return false; 45 } 46 47 public boolean stream() { 48 return false; 49 } 50 51 public boolean isMaster() { 52 return isMaster; 53 } 54 55 } 56 | Popular Tags |