|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.starhope.appius.net.NetIOThread
org.starhope.appius.net.ServerThread
org.starhope.appius.test.UserLoadTest
public class UserLoadTest
WRITEME: The documentation for this type (UserLoadTest) is incomplete. (brpocock@star-hope.org, Mar 15, 2010)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private int |
serial
WRITEME: document this field (brpocock@star-hope.org, Mar 15, 2010) serial (UserLoadTest) |
| Fields inherited from class org.starhope.appius.net.ServerThread |
|---|
busyState, futureDatagrams, idleWarned, keepRunning, lastInputTime, loggedIn, maxInputSize, myUser, preloginCountdown, randomKey, streamProtocolLanguage, tLastNudge, zone |
| Fields inherited from class org.starhope.appius.net.NetIOThread |
|---|
debug, dialect, in, isDone, language, letsPlayWithFlash, out, socket, state |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
|
UserLoadTest()
WRITEME |
private |
UserLoadTest(int n,
Zone z)
WRITEME |
| Method Summary | |
|---|---|
protected void |
checkInputStream()
This is an overriding method. |
protected void |
dropSocketConnection()
This is an overriding method. |
protected String |
grabInput()
This is an overriding method. |
protected void |
postLogIn(Zone z,
String password,
AbstractUser user)
This is an overriding method. |
void |
run()
This is an overriding method. |
protected void |
sendLoginPacket(String zoneName,
String nick,
String password)
This is an overriding method. |
protected void |
sendRawMessageLater(String reply)
This is an overriding method. |
protected void |
sendRawMessageNow(String reply)
This is an overriding method. |
private void |
spawnChildren()
WRITEME: document this method (brpocock@star-hope.org, Mar 15, 2010) |
| Methods inherited from class org.starhope.appius.net.NetIOThread |
|---|
compareTo, dropSocket_socketCore, equals, getLanguage_dialect, getRemoteAddress, getSocket, getVerboseBugReplies, isDebug, isParallelMode, processInput, sendError_RAW, setDebug, setLanguage, setVerboseBugReplies, superVerbose, tattle, tattle |
| 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, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.starhope.appius.net.ServerProcessor |
|---|
start |
| Methods inherited from interface org.starhope.appius.util.HasName |
|---|
getName |
| Methods inherited from interface org.starhope.util.types.CanProcessCommands |
|---|
getName |
| Field Detail |
|---|
private final int serial
| Constructor Detail |
|---|
public UserLoadTest()
private UserLoadTest(int n,
Zone z)
n - instance numberz - zone| Method Detail |
|---|
protected void checkInputStream()
throws UserDeadException
checkInputStream in class NetIOThreadUserDeadException - if the remote user has disconnectedNetIOThread.checkInputStream()protected void dropSocketConnection()
dropSocketConnection in class NetIOThreadNetIOThread.dropSocketConnection()
protected String grabInput()
throws UserDeadException
grabInput in class ServerThreadUserDeadException - if the user disconnectsServerThread.grabInput()
protected void postLogIn(Zone z,
String password,
AbstractUser user)
postLogIn in class ServerThreadz - zonepassword - user's (encrypted) password sequenceuser - userServerThread.postLogIn(org.starhope.appius.game.Zone,
java.lang.String, org.starhope.appius.user.AbstractUser)public void run()
run in interface Runnablerun in class ServerThreadThread.run()
protected void sendLoginPacket(String zoneName,
String nick,
String password)
sendLoginPacket in class ServerThreadzoneName - The name of the zone into which the user has
logged innick - The user's nicknamepassword - The user's password (SHA1 encoded with the local
random key)ServerThread.sendLoginPacket(java.lang.String, java.lang.String, java.lang.String)
protected void sendRawMessageLater(String reply)
throws UserDeadException
sendRawMessageLater in class ServerThreadreply - The message to be sent in future
UserDeadException - if the user is already goneServerThread.sendRawMessageLater(java.lang.String)
protected void sendRawMessageNow(String reply)
throws UserDeadException
sendRawMessageNow in class NetIOThreadreply - The string to be transmitted to this thread's user
UserDeadException - if the user has been disconnectedNetIOThread.sendRawMessageNow(java.lang.String)private void spawnChildren()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||