summaryrefslogtreecommitdiff
path: root/src/YalpClients/ClientConfiguration.java
diff options
context:
space:
mode:
authorguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-09-23 21:29:27 +0000
committerguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-09-23 21:29:27 +0000
commitd6fa96b4cd67cf4fa18b5b9b6739f9bc2494a9f4 (patch)
tree00aa9a27acb6b4c8d9868795a5295e9231f1eb20 /src/YalpClients/ClientConfiguration.java
initial import
git-svn-id: http://manut.eu/svn/yalp/trunk@1 f059d3a0-6783-47b7-97ff-1fe0bbf25129
Diffstat (limited to 'src/YalpClients/ClientConfiguration.java')
-rwxr-xr-xsrc/YalpClients/ClientConfiguration.java113
1 files changed, 113 insertions, 0 deletions
diff --git a/src/YalpClients/ClientConfiguration.java b/src/YalpClients/ClientConfiguration.java
new file mode 100755
index 0000000..7e39e78
--- /dev/null
+++ b/src/YalpClients/ClientConfiguration.java
@@ -0,0 +1,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;
+ }
+
+}