jhomenet.server.console
Class LocalConsoleService

java.lang.Object
  extended by AbstractExecutableThreadService
      extended by jhomenet.server.console.ConsoleService
          extended by jhomenet.server.console.LocalConsoleService

public class LocalConsoleService
extends ConsoleService

The local jHomenet console service.

Id: $Id: $

Author:
Dave Irwin (jhomenet at gmail dot com)

Field Summary
 
Fields inherited from class jhomenet.server.console.ConsoleService
authManager, ENV_HARDWAREMANAGER, ENV_WORKQUEUE, sessions
 
Constructor Summary
LocalConsoleService(java.lang.Boolean displayConsole, AuthManager authManager, PluginContext pluginContext, ServerContext serverContext)
          Default constructor.
 
Method Summary
protected  Session acceptNewSession(IWorkQueue workQueue)
          Waits for a connection request.
protected  void sessionEndedInternal(Session session)
          Notify the implementing service class that a session has ended.
 
Methods inherited from class jhomenet.server.console.ConsoleService
checkForNewSessions, executeImpl, getServiceName, serviceIsInitializing, serviceIsStopping, sessionEnded, setDisplayConsole, shouldStartOnStartup, shutDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalConsoleService

public LocalConsoleService(java.lang.Boolean displayConsole,
                           AuthManager authManager,
                           PluginContext pluginContext,
                           ServerContext serverContext)
Default constructor.

Parameters:
loginService -
pluginContext -
serverContext -
Method Detail

acceptNewSession

protected Session acceptNewSession(IWorkQueue workQueue)
                            throws java.lang.InterruptedException
Description copied from class: ConsoleService
Waits for a connection request. This method should block until a request is received. When a request is made, it should create, initialize, and return a new Session to handle that connection.

Specified by:
acceptNewSession in class ConsoleService
Returns:
a new Session
Throws:
java.lang.InterruptedException
See Also:
jhomenet.server.console.ConsoleService#acceptNewSession()

sessionEndedInternal

protected void sessionEndedInternal(Session session)
Description copied from class: ConsoleService
Notify the implementing service class that a session has ended.

Specified by:
sessionEndedInternal in class ConsoleService
Parameters:
session - The session that has ended
See Also:
ConsoleService.sessionEndedInternal(jhomenet.server.console.Session)


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