com.pentec.aserver.nvlensd.radiometers
Class NVRadiometersModed

java.lang.Object
  extended by java.lang.Thread
      extended by com.pentec.aserver.AServerPlugin
          extended by com.pentec.aserver.NetworkPlugin
              extended by com.pentec.aserver.MultiUserNetworkPlugin
                  extended by com.pentec.aserver.nvlensd.radiometers.NVRadiometersModed
All Implemented Interfaces:
java.lang.Runnable

public class NVRadiometersModed
extends MultiUserNetworkPlugin

Author:
Pender Technology

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private static int DN300_NARROW_FOCUS
           
private static int DN300_NARROW_IRIS
           
private static int DN300_WIDE_FOCUS
           
private  boolean isDN300Narrow
           
private  boolean isDN300Wide
           
private  boolean isIttNarrow
           
private  boolean isIttWide
           
private static int ITT_NARROW_FOCUS
           
private static int ITT_NARROW_IRIS
           
private static int ITT_WIDE_FOCUS
           
static int TCP_PORT
           
 
Fields inherited from class com.pentec.aserver.NetworkPlugin
iTcpPort, serverSocket
 
Fields inherited from class com.pentec.aserver.AServerPlugin
isOkToRun, SIG_INIT_FAILED, SIG_INITIALIZING, SIG_QUITTING, SIG_RUNNING, STATE_INIT_FAILED, STATE_INITIALIZING, STATE_QUITTING, STATE_RUNNING, STATE_STARTING, STATE_WAITING_TO_START, vPlugins
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NVRadiometersModed()
           
 
Method Summary
protected  MultiUserConnectionHandler getMultiUserConnectionHandler()
          Create and return a fresh connection handler appropriate for the server.
protected  boolean initialize()
          Initialize whatever dependencies the server has before opening and accepting connections.
static void main(java.lang.String[] args)
           
protected  void shutdown()
          Close any dependencies the server has after the primary network connection has been closed.
 
Methods inherited from class com.pentec.aserver.MultiUserNetworkPlugin
getConnectionHandler
 
Methods inherited from class com.pentec.aserver.NetworkPlugin
isOkToRun, run
 
Methods inherited from class com.pentec.aserver.AServerPlugin
getFullyQualifiedPluginName, getNumPlugins, getPluginInstanceIdentifier, getPluginName, getPluginState, getPluginStateByName, getPluginVersion, setPluginInstanceIdentifier, signalInitFailed, signalInitializing, signalQuitting, signalRunning, startPlugin, stopPlugin, toString, writeLog, writeLog
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DN300_NARROW_FOCUS

private static final int DN300_NARROW_FOCUS
See Also:
Constant Field Values

DN300_NARROW_IRIS

private static final int DN300_NARROW_IRIS
See Also:
Constant Field Values

DN300_WIDE_FOCUS

private static final int DN300_WIDE_FOCUS
See Also:
Constant Field Values

isDN300Narrow

private boolean isDN300Narrow

isDN300Wide

private boolean isDN300Wide

isIttNarrow

private boolean isIttNarrow

isIttWide

private boolean isIttWide

ITT_NARROW_FOCUS

private static final int ITT_NARROW_FOCUS
See Also:
Constant Field Values

ITT_NARROW_IRIS

private static final int ITT_NARROW_IRIS
See Also:
Constant Field Values

ITT_WIDE_FOCUS

private static final int ITT_WIDE_FOCUS
See Also:
Constant Field Values

TCP_PORT

public static final int TCP_PORT
See Also:
Constant Field Values
Constructor Detail

NVRadiometersModed

public NVRadiometersModed()
Method Detail

getMultiUserConnectionHandler

protected MultiUserConnectionHandler getMultiUserConnectionHandler()
Description copied from class: MultiUserNetworkPlugin
Create and return a fresh connection handler appropriate for the server.

Specified by:
getMultiUserConnectionHandler in class MultiUserNetworkPlugin
Returns:
a fresh connection handler

initialize

protected boolean initialize()
Description copied from class: NetworkPlugin
Initialize whatever dependencies the server has before opening and accepting connections. This will be executed before any other methods on startPlugin(). If initialize() fails, the plugin will exit.

Specified by:
initialize in class NetworkPlugin
Returns:
success of initialization

main

public static void main(java.lang.String[] args)

shutdown

protected void shutdown()
Description copied from class: NetworkPlugin
Close any dependencies the server has after the primary network connection has been closed. Connection handlers should be able to detect the effects of this method and exit gracefully.

Specified by:
shutdown in class NetworkPlugin