advancedrelay.laygo
Class ProtocolStack

java.lang.Object
  |
  +--advancedrelay.laygo.ProtocolStack

public class ProtocolStack
extends java.lang.Object

Encapsulates supervisory access to the LayGO protocol stack.

All methods are declared static since there is only one stack.


Constructor Summary
ProtocolStack()
           
 
Method Summary
static boolean isStarted()
          Returns true if the stack has been started, false otherwise.
static void start(java.lang.String cfgFile)
          Configures, initializes and enables the stack.
static void start(java.lang.String[] cfgFileList)
          Configures, initializes and enables the stack.
static void start(java.lang.String[] cfgFileList, java.lang.String serviceDb)
          Configures, initializes and enables the stack.
static void start(java.lang.String cfgFile, java.lang.String serviceDb)
          Configures, initializes and enables the stack.
static void stop()
          Disables and uninitializes the stack.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolStack

public ProtocolStack()
Method Detail

isStarted

public static boolean isStarted()
Returns true if the stack has been started, false otherwise.


start

public static void start(java.lang.String cfgFile)
                  throws ProtocolStackException
Configures, initializes and enables the stack.

Parameters:
cfgFile - .cfg file name
Throws:
ProtocolStackException - The reason for failure.

start

public static void start(java.lang.String[] cfgFileList)
                  throws ProtocolStackException
Configures, initializes and enables the stack.

Parameters:
cfgFileList - ordered list of .cfg file names
Throws:
ProtocolStackException - The reason for failure.

start

public static void start(java.lang.String[] cfgFileList,
                         java.lang.String serviceDb)
                  throws ProtocolStackException
Configures, initializes and enables the stack.

Parameters:
cfgFileList - ordered list of .cfg file names
serviceDb - full path to service database file
Throws:
ProtocolStackException - The reason for failure.

start

public static void start(java.lang.String cfgFile,
                         java.lang.String serviceDb)
                  throws ProtocolStackException
Configures, initializes and enables the stack.

Parameters:
cfgFile - .cfg file name
serviceDb - full path to service database file
Throws:
ProtocolStackException - The reason for failure.

stop

public static void stop()
Disables and uninitializes the stack.