/* * 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 * * handles Settings of the yalpClient * * @author Manuel Traut, Volker Dahnke * * @version 0.1 18-03-2006
* * @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: * / * but also path, executable and 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; } }