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

Quick Search    Search Deep

jreceiver.client.rio.status
Class RioStatusRec  view RioStatusRec download RioStatusRec.java

java.lang.Object
  extended byjreceiver.common.rec.BaseRec
      extended byjreceiver.common.rec.driver.DeviceRec
          extended byjreceiver.common.callback.rec.DeviceStatusRec
              extended byjreceiver.client.rio.status.RioStatusRec
All Implemented Interfaces:
jreceiver.common.rec.driver.Device, jreceiver.common.callback.rec.DeviceStatus, jreceiver.common.rec.Hashable, jreceiver.common.rec.Rec

public class RioStatusRec
extends jreceiver.common.callback.rec.DeviceStatusRec

Rio Status events will be produced when the Rio Status daemon hears a message from a Rio on the network.

Listeners will typically include the following devices Servlet - which will display the status of all known Rio Servers on a webpage

The Rio Status Event will include

MAC: 00:90:00:11:3f:ae Playing: 111 (hexadecimal src_id) State: Playing Timecode: 27010 (milliseconds into song)

TODO: include the IP address of the receiver as well.

Version:
$Revision: 1.6 $ $Date: 2002/12/29 00:44:09 $

Field Summary
(package private) static java.lang.String prefix_mac
           
(package private) static java.lang.String prefix_state
           
(package private) static java.lang.String prefix_timecode
           
(package private) static java.lang.String prefix_titlecode
           
 
Fields inherited from class jreceiver.common.callback.rec.DeviceStatusRec
mac_address, play_state, source, timecode
 
Fields inherited from class jreceiver.common.rec.driver.DeviceRec
address, device_id, driver_id, timestamp
 
Fields inherited from interface jreceiver.common.callback.rec.DeviceStatus
HKEY_MAC_ADDRESS, HKEY_PLAY_STATE, HKEY_SOURCE, HKEY_TIMECODE, PLAY_STATE_OFF, PLAY_STATE_PAUSED, PLAY_STATE_PAUSED_OR_STOPPED, PLAY_STATE_PLAYING, PLAY_STATE_STOPPED, PLAY_STATE_UNKNOWN
 
Fields inherited from interface jreceiver.common.rec.driver.Device
HKEY_ADDRESS, HKEY_DEVICE_ID, HKEY_DRIVER_ID, HKEY_TIMESTAMP
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Constructor Summary
RioStatusRec(int device_id, int driver_id, java.lang.String ip_address, long timestamp, java.lang.String mac_address, int play_state, jreceiver.common.rec.source.Source source, long timecode)
          ctor -
 
Method Summary
static RioStatusRec createInstance(int device_id, java.lang.String ip_address, java.lang.String msg)
          factory
 
Methods inherited from class jreceiver.common.callback.rec.DeviceStatusRec
getMacAddress, getPlayState, getPlayStateMessage, getSource, getTimecode, getTimecodeInSeconds, reconstitute, toHash, toString
 
Methods inherited from class jreceiver.common.rec.driver.DeviceRec
getAddress, getDriverId, getId, getKey, getTimestamp, setKey
 
Methods inherited from class jreceiver.common.rec.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jreceiver.common.rec.driver.Device
getAddress, getDriverId, getId, getTimestamp
 
Methods inherited from interface jreceiver.common.rec.Rec
getKey, setKey
 

Field Detail

prefix_mac

static final java.lang.String prefix_mac
See Also:
Constant Field Values

prefix_titlecode

static final java.lang.String prefix_titlecode
See Also:
Constant Field Values

prefix_state

static final java.lang.String prefix_state
See Also:
Constant Field Values

prefix_timecode

static final java.lang.String prefix_timecode
See Also:
Constant Field Values
Constructor Detail

RioStatusRec

public RioStatusRec(int device_id,
                    int driver_id,
                    java.lang.String ip_address,
                    long timestamp,
                    java.lang.String mac_address,
                    int play_state,
                    jreceiver.common.rec.source.Source source,
                    long timecode)
ctor -

Method Detail

createInstance

public static RioStatusRec createInstance(int device_id,
                                          java.lang.String ip_address,
                                          java.lang.String msg)
factory