jhomenet
Class JHomeNetServer

java.lang.Object
  extended by jhomenet.JHomeNetServer
All Implemented Interfaces:
SystemInterface

public class JHomeNetServer
extends java.lang.Object
implements SystemInterface

Id: $Id: JHomeNetServer.java,v 1.20 2005/10/29 04:35:45 dhirwinjr Exp $ Description:


Field Summary
static java.lang.String buildId
          The release build ID.
 
Method Summary
 void execute(java.lang.Object[] commandLine, SystemInputStream in, SystemPrintStream out, SystemPrintStream err, java.util.HashMap environment)
          Used to execute shell commands.
static JHomeNetServer getInstance()
          Get an instance of the jHomenet server.
 Shell getShell()
          Get a reference to the shell.
static java.lang.String getShellName()
           
static java.lang.String getShellVersion()
           
static java.lang.String getStartTime()
          Get the server start time.
 java.lang.String getUptime()
          Get the uptime of the system.
 void loadProperties()
          Load the properties from the properties file.
static void main(java.lang.String[] args)
          The server main starting point.
static void printUsage()
          Print the command line server usage.
 void quit()
          Quit the server application.
static void setShell(JHomenetShell shell)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buildId

public static final java.lang.String buildId
The release build ID.

Method Detail

getInstance

public static JHomeNetServer getInstance()
Get an instance of the jHomenet server.

Returns:
A reference to the server object

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The server main starting point.

Parameters:
args - A list of the command line arguments
Throws:
java.lang.Exception

getStartTime

public static java.lang.String getStartTime()
Get the server start time.

Returns:
The server start time

loadProperties

public void loadProperties()
Load the properties from the properties file.


quit

public void quit()
Quit the server application.


printUsage

public static void printUsage()
Print the command line server usage.


getShellName

public static java.lang.String getShellName()

getShellVersion

public static java.lang.String getShellVersion()

setShell

public static void setShell(JHomenetShell shell)

execute

public void execute(java.lang.Object[] commandLine,
                    SystemInputStream in,
                    SystemPrintStream out,
                    SystemPrintStream err,
                    java.util.HashMap environment)
             throws java.lang.Exception
Used to execute shell commands.

Specified by:
execute in interface SystemInterface
Parameters:
commandLine -
in -
out -
err -
environment -
Throws:
java.lang.Exception

getShell

public Shell getShell()
Description copied from interface: SystemInterface
Get a reference to the shell.

Specified by:
getShell in interface SystemInterface
Returns:
Reference to the current shell
See Also:
SystemInterface.getShell()

getUptime

public java.lang.String getUptime()
Description copied from interface: SystemInterface
Get the uptime of the system.

Specified by:
getUptime in interface SystemInterface
Returns:
The uptime of the system in milliseconds
See Also:
SystemInterface.getUptime()


Copyright © 2004-2005 David Irwin. All Rights Reserved.