dea.hc.jds
Class QueueProcessor

java.lang.Object
  extended bydea.hc.jds.QueueProcessor
All Implemented Interfaces:
IDebugLevels, java.lang.Runnable

public class QueueProcessor
extends java.lang.Object
implements java.lang.Runnable, IDebugLevels

Title: Queue Processor
Description: Class Take records from the Hc_echo table, act on them, log what we did and then mark the record from the Hc_echo table
Copyright: Copyright (c) 2005
Company: RMRR

@author David Abigt
@version 1.0


Field Summary
static java.lang.Integer[] UNITS_MAP
           
static java.lang.String XCODES_MAP
          map house code int to char
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Method Summary
 java.util.HashMap getDevs()
           
static QueueProcessor getInstance()
          get singleton
 boolean isRunning()
           
static void main(java.lang.String[] args)
          Can be used to log echos from a Time Commander but mainly for testing
 void run()
          Thread entry point.
 void setRunning(boolean running)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XCODES_MAP

public static final java.lang.String XCODES_MAP
map house code int to char

See Also:
Constant Field Values

UNITS_MAP

public static final java.lang.Integer[] UNITS_MAP
Method Detail

getInstance

public static QueueProcessor getInstance()
                                  throws java.sql.SQLException
get singleton

Throws:
java.sql.SQLException

isRunning

public boolean isRunning()

setRunning

public void setRunning(boolean running)

getDevs

public java.util.HashMap getDevs()

run

public void run()
Thread entry point.
Reads data from port interface thread (TCPRead), logs echos to DB and stores other messages to local queue for other classes to pull from.
queue addes synchronized on lock

Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)
Can be used to log echos from a Time Commander but mainly for testing

Parameters:
args -


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.