|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jhomenet.server.console.Session jhomenet.server.console.LocalSession
public class LocalSession
TODO: Class description.
Id: $Id: $
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jhomenet.server.console.Session |
---|
Session.Login |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected boolean |
pauseSession
Flag used to pause and restart the local session |
Fields inherited from class jhomenet.server.console.Session |
---|
authManager, commandHistory, consoleService, CURRENT_COMMAND, CURRENT_DIRECTORY, currentCommand, environment, err, inCommand, inputStream, lastCommand, loginStack, loginSuccessMessage, myThreadID, outputStream, paramsArray, paramsVector, password, prompt, PROMPT, retArray, shutdown, user, userName, version, welcomeMessage |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
LocalSession(AuthManager authManager,
IWorkQueue workQueue,
SystemInputStream in,
SystemPrintStream out,
SystemPrintStream err,
ConsoleService consoleService)
Default constructor. |
Method Summary | |
---|---|
void |
currentCommandFinished()
Notifies this session that the current command has completed. |
void |
exceptionThrown(java.lang.Exception e)
Notifies this session that exception was thrown when executing a command. |
void |
login()
Logs a user into the system. |
void |
sessionEnding()
Notify session implementations that the session is ending. |
Methods inherited from class jhomenet.server.console.Session |
---|
addToHistory, endSession, execute, forceEndSession, forceEndSession, getEnvironment, getErrStream, getFromEnvironment, getHistoryNumber, getNextCommand, getOutputStream, getParams, getUserName, inCommand, parseLogin, printHistory, run, stepDownHistory, stepUpHistory, su, updatePrompt |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean pauseSession
Constructor Detail |
---|
public LocalSession(AuthManager authManager, IWorkQueue workQueue, SystemInputStream in, SystemPrintStream out, SystemPrintStream err, ConsoleService consoleService)
workQueue
- Reference to the work queueauthManager
- Reference to the authentication managerin
- stream this session should use to get data from userout
- stream this session should use to output to usererr
- stream this session should use to output errors to userconsoleService
- Method Detail |
---|
public void login() throws java.io.IOException
Session
login
in class Session
java.io.IOException
Session.login()
public void currentCommandFinished()
Session
currentCommandFinished
in class Session
Session.currentCommandFinished()
public void sessionEnding()
Session
sessionEnding
in class Session
jhomenet.shell.server.Session#sessionEnding()
public void exceptionThrown(java.lang.Exception e)
Session
exceptionThrown
in class Session
e
- the exception thrownjhomenet.shell.server.Session#exceptionThrown(java.lang.Exception)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |