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.test.server.appserver;
05:
06: import com.tc.test.server.Server;
07: import com.tc.test.server.ServerResult;
08:
09: /**
10: * Data Object returned by {@link AbstractAppServer.start()}.
11: */
12: public final class AppServerResult implements ServerResult {
13:
14: private int serverPort;
15: private Server ref;
16:
17: public AppServerResult(int serverPort, Server ref) {
18: this .serverPort = serverPort;
19: this .ref = ref;
20: }
21:
22: public int serverPort() {
23: return serverPort;
24: }
25:
26: public Server ref() {
27: return ref;
28: }
29: }
|