KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > server > appserver > AppServerResult


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.test.server.appserver;
5
6 import com.tc.test.server.Server;
7 import com.tc.test.server.ServerResult;
8
9 /**
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 }
30
Popular Tags