net.dpml.station.server
Class StationServerPlugin

java.lang.Object
  extended bynet.dpml.station.server.StationServerPlugin
All Implemented Interfaces:
Runnable

public class StationServerPlugin
extends Object
implements Runnable

The RemoteStation is responsible for the establishment of callback monitors to external processes established by the station manager.

Version:
1.0.0
Author:
Digital Product Meta Library

Constructor Summary
StationServerPlugin(Logger logger, TransitModel model, String[] args)
          Creation of a new station server plugin for station commandline handling.
 
Method Summary
 void run()
          Start the thread.
static void setShutdownHook(RemoteStation station)
          Create a shutdown hook that will trigger shutdown of the station.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationServerPlugin

public StationServerPlugin(Logger logger,
                           TransitModel model,
                           String[] args)
                    throws Exception
Creation of a new station server plugin for station commandline handling.

Parameters:
logger - the assigned logging channel
model - the transit model
args - the command line arguments array
Throws:
Exception - if an error occurs
Method Detail

run

public void run()
Start the thread.

Specified by:
run in interface Runnable

setShutdownHook

public static void setShutdownHook(RemoteStation station)
Create a shutdown hook that will trigger shutdown of the station.

Parameters:
station - the station