java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
jreceiver.common.BaseLauncher
jreceiver.client.common.ClientLauncher
jreceiver.client.rio.RioLauncher
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class RioLauncher
- extends jreceiver.client.common.ClientLauncher
launches background daemons to interact with the Rio Receiver
RioSSDP - listens for queries from Rio for server address and port
RioStatus - queries all known Rio Receivers for status every couple of
seconds on their 18678 ports
All settings are loaded from database using the following
keys and defaults:
hardware/rio/ssdp_port = 21075
hardware/rio/mserve_port = 8080
hardware/rio/mserve_host = "" blank to get host from Java
hardware/rio/status_port = 18678
- Version:
- $Revision: 1.11 $ $Date: 2002/12/29 00:44:09 $
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALLBACK_URL_PARAM
public static final java.lang.String CALLBACK_URL_PARAM
- See Also:
- Constant Field Values
driver
protected static jreceiver.common.rec.driver.Driver driver
ssdp_daemon
protected jreceiver.client.rio.status.RioSSDP ssdp_daemon
- The RioSSDP daemon listens for Rio Receivers in search
of a server, responds to them offering the services
of the server that typically hosts the daemon.
IMPORTANT: keep this reference to the singleton,
otherwise it might be garbage collected.
status_daemon
protected jreceiver.client.rio.status.RioStatusDaemon status_daemon
- the RioStatus daemon queries all known Rios for status
and produces events for (local) listeners
IMPORTANT: keep this reference to the singleton,
otherwise it might be garbage collected.
hack_daemon
protected jreceiver.client.rio.hack.RioHackDaemon hack_daemon
RioLauncher
public RioLauncher()
getDriverId
public static int getDriverId()
getDriver
public static jreceiver.common.rec.driver.Driver getDriver()
serverDetectedInit
public void serverDetectedInit()
throws jreceiver.common.LauncherException
- Called by the servlet container to indicate to a servlet that the
servlet is being placed into service.
getHostIP
private java.lang.String getHostIP()
throws jreceiver.common.LauncherException
- support method for serverDetectedInit to obtain a valid host ip address
destroy
public void destroy()
- Called by the servlet container to indicate to a servlet that the
servlet is being taken out of service. See Servlet.destroy()>
Servlet.destroy() 55 .
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- test method