Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.client.rio
Class RioLauncher  view RioLauncher download RioLauncher.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byjreceiver.common.BaseLauncher
              extended byjreceiver.client.common.ClientLauncher
                  extended byjreceiver.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 $

Field Summary
static java.lang.String CALLBACK_URL_PARAM
           
protected static jreceiver.common.rec.driver.Driver driver
           
protected  jreceiver.client.rio.hack.RioHackDaemon hack_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.
protected  jreceiver.client.rio.status.RioStatusDaemon status_daemon
          the RioStatus daemon queries all known Rios for status and produces events for (local) listeners
 
Fields inherited from class jreceiver.client.common.ClientLauncher
log
 
Fields inherited from class jreceiver.common.BaseLauncher
JREC_HOME, JREC_PROPS, SIMPLELOG_CONFIG
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
RioLauncher()
           
 
Method Summary
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          test method
static jreceiver.common.rec.driver.Driver getDriver()
           
static int getDriverId()
           
private  java.lang.String getHostIP()
          support method for serverDetectedInit to obtain a valid host ip address
 void serverDetectedInit()
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
 
Methods inherited from class jreceiver.client.common.ClientLauncher
getClassName, getDefaultUser, initFromBase, isServerDirect, waitForServerTask
 
Methods inherited from class jreceiver.common.BaseLauncher
getHomeDir, getProperty, getPropertyURL, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RioLauncher

public RioLauncher()
Method Detail

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