diff options
Diffstat (limited to 'src/YalpClients/ClientConfiguration.java')
| -rwxr-xr-x | src/YalpClients/ClientConfiguration.java | 113 |
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; + } + +} |
