KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > db4o > f1 > chapter5 > ServerConfiguration


1 package com.db4o.f1.chapter5;
2
3 /**
4  * Configuration used for {@link StartServer} and {@link StopServer}.
5  */

6 public interface ServerConfiguration {
7   
8   /**
9    * the host to be used.
10    * <br>If you want to run the client server examples on two computers,
11    * enter the computer name of the one that you want to use as server.
12    */

13   public String JavaDoc HOST = "localhost";
14    
15   /**
16    * the database file to be used by the server.
17    */

18   public String JavaDoc FILE = "formula1.yap";
19   
20   /**
21    * the port to be used by the server.
22    */

23   public int PORT = 4488;
24   
25   /**
26    * the user name for access control.
27    */

28   public String JavaDoc USER = "db4o";
29   
30   /**
31    * the pasword for access control.
32    */

33   public String JavaDoc PASS = "db4o";
34 }
35
Popular Tags