org.simoes.lpd
Class LPD

java.lang.Object
  extended byorg.simoes.lpd.LPD
All Implemented Interfaces:
java.lang.Runnable

public class LPD
extends java.lang.Object
implements java.lang.Runnable

The Line Printer Daemon (LPD). Sets up all of the network communication to run our LPD. All commands are handled by LPDCommands.

Author:
Chris_Simoes

Method Summary
static LPD getInstance()
          This class is a singleton.
static void main(java.lang.String[] args)
           
 void run()
          The run method is implemented so this can be run in its own Thread if desired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LPD getInstance()
This class is a singleton.

Returns:
the only instance of LPD.

run

public void run()
The run method is implemented so this can be run in its own Thread if desired.

Specified by:
run in interface java.lang.Runnable

main

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