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.tcsimulator.container;
05:
06: import EDU.oswego.cs.dl.util.concurrent.LinkedQueue;
07:
08: import com.tc.simulator.container.ContainerState;
09: import com.tc.simulator.container.ContainerStateFactory;
10:
11: public class ContainerStateFactoryObject implements
12: ContainerStateFactory {
13:
14: private final LinkedQueue statsOutputQueue;
15:
16: public ContainerStateFactoryObject(LinkedQueue statsOutputQueue) {
17: this .statsOutputQueue = statsOutputQueue;
18: }
19:
20: public ContainerState newContainerState(String containerId) {
21: return new ContainerStateObject(containerId, statsOutputQueue);
22: }
23: }
|