KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > test > server > dsoserver > DsoServerResult


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.dsoserver;
5
6 import com.tc.test.server.Server;
7 import com.tc.test.server.ServerResult;
8
9 /**
10  * Values returned by the DSO server startup process.
11  */

12 public final class DsoServerResult implements ServerResult {
13
14   private final int port;
15   private final Server ref;
16
17   public DsoServerResult(int port, Server ref) {
18     this.port = port;
19     this.ref = ref;
20   }
21
22   public int dsoPort() {
23     return port;
24   }
25
26   public int serverPort() {
27     return port;
28   }
29
30   public Server ref() {
31     return ref;
32   }
33 }
34
Popular Tags