KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > ServerDescriptor


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.admin;
5
6 public class ServerDescriptor {
7   private String JavaDoc hostname;
8   private int portNumber;
9   
10   public ServerDescriptor(String JavaDoc hostname, int portNumber) {
11     this.hostname = hostname;
12     this.portNumber = portNumber;
13   }
14   
15   public String JavaDoc getHostname() {
16     return this.hostname;
17   }
18   
19   public int getPortNumber() {
20     return this.portNumber;
21   }
22 }
23
Popular Tags