summaryrefslogtreecommitdiff
path: root/src/YalpClients/ClientConfiguration.java
blob: 7e39e78577a6f60d63bfc54f2a46b2e2d4d53a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * Copyright (c) 2006 Manuel Traut and Volker Dahnke
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 *
 * Contributors: Manuel Traut and Volker Dahnke
 */
package YalpClients;

/*
 * Class ClientSettings
 *
 * <em>handles Settings of the yalpClient</em>
 *
 * @author Manuel Traut, Volker Dahnke
 *
 * @version 0.1 18-03-2006<br>
 *
 * @see client
 */

public class ClientConfiguration{
	static final long serialVersionUID = 0;
	public String serverIP = "localhost";
	public Integer classServerPort = 5002;
	public Integer registryPort = 5001;
	public String vlcCommand = "vlc";

/*
 * sets IP of yalp Server to connect to
 *
 * @param serverIP
 * 		ip of yalpServer
 */
	public void setserverIP(String serverIP){
		this.serverIP = serverIP;
	}

/*
 * sets Port of yalp ClassServer to get Client-classFiles from
 *
 * @param classServerPort
 * 		 port of classServer
 */
	public void setclassServerPort(int classServerPort){
		this.classServerPort = classServerPort;
	}

/*
 * sets Port where RMI Registry can be found
 *
 * @param registryPort
 * 		port of RMI Registry
 */
	public void setregistryPort(int registryPort){
		this.registryPort = registryPort;
	}

/*
 * sets Command how vlcPlayer on Client can be started
 * on some hardware it can be useful, to commit not only:
 * <path to vlc installation>/<name of vlc executable>
 * but also path, executable and <params> like --alsadev hw0,0
 * @param vlcCommand
 * 		 for a perfectly running vlc on the client
 */
	public void setvlcCommand(String vlcCommand){
		this.vlcCommand = vlcCommand;
	}

/*
 * returns the ip of the yalpServer
 *
 * @return String
 * 		ip of yalpServer
 */	
	public String getserverIP(){
		return this.serverIP;
	}

/*
 * returns port of the yalpClassServer
 *
 * @return int
 * 		 port of yalpClassServer
 */
	public int getclassServerPort(){
		return this.classServerPort;
	}

/*
 * returns port of RMI Registry
 *
 * @return int
 * 	 Port of RMI Registry
 */
	public int getregistryPort(){
		return this.registryPort;
	}

/*
 * returns command to start vlc Player on client
 *
 * @return String
 *		Command
 */
	public String getvlcCommand(){
		return this.vlcCommand;
	}

}