QJCC homepage

biz.chitec.quarterback.gjsa.server
Class ServerStackEntry

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.server.ServerStackEntry

public class ServerStackEntry
extends java.lang.Object

Part of the internal state stack of a ServerThreadBase. GJSA servers are normally stack based, e.g. different states can be stacked onto each other. Internally, this stack is built of multiple instances of ServerStackEntry objects. TODO State name passing must be adopted somehow to multisession environment

Version:
$Id: e79526c0ac5084f279180be7f82661a196cd13d5 $
Author:
Dirk Hillbrecht 1997-1999, chitec/Dirk Hillbrecht 2000. Distributed under the terms of the GNU LGPL.

Field Summary
private  java.util.List allcommexecs
           
private  ServerStackEntry ancestor
           
private  java.util.List commexecs
           
private  java.util.Map properties
           
 int state
           
 java.lang.String statename
           
private  ServerThreadSession sts
           
 
Constructor Summary
ServerStackEntry(ServerStackEntry theancestor, int thestate, ServerThreadSession stsx)
           
ServerStackEntry(ServerStackEntry theancestor, int thestate, ServerThreadSession stsx, CommandExecutor commexec)
           
ServerStackEntry(ServerStackEntry theancestor, int thestate, ServerThreadSession stsx, CommandExecutor commexec1, CommandExecutor commexec2)
           
ServerStackEntry(ServerStackEntry theancestor, int thestate, ServerThreadSession stsx, java.util.List thecommexecs)
           
ServerStackEntry(ServerStackEntry theancestor, int thestate, ServerThreadSession stsx, java.util.List thecommexecs, java.util.List thecommexecs2)
           
 
Method Summary
 ServerStackEntry dropMe()
           
 java.lang.Object getProperty(java.lang.Object key)
           
 void leavingActions()
           
 java.lang.Object putProperty(java.lang.Object key, java.lang.Object prop)
           
 ServerReply query(ServerRequest sq)
           
 ServerReply query(ServerRequest sq, boolean allcommexecsonly)
           
protected  ServerReply queryAllCommExecs(ServerRequest sq)
           
 java.lang.Object removeProperty(java.lang.Object key)
           
 void setAllCommandExecutors(java.util.List thecommexecs)
           
 void setCommandExecutors(java.util.List thecommexecs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

state

public int state

statename

public java.lang.String statename

properties

private java.util.Map properties

commexecs

private java.util.List commexecs

allcommexecs

private java.util.List allcommexecs

ancestor

private ServerStackEntry ancestor

sts

private ServerThreadSession sts
Constructor Detail

ServerStackEntry

public ServerStackEntry(ServerStackEntry theancestor,
                        int thestate,
                        ServerThreadSession stsx)

ServerStackEntry

public ServerStackEntry(ServerStackEntry theancestor,
                        int thestate,
                        ServerThreadSession stsx,
                        java.util.List thecommexecs)

ServerStackEntry

public ServerStackEntry(ServerStackEntry theancestor,
                        int thestate,
                        ServerThreadSession stsx,
                        java.util.List thecommexecs,
                        java.util.List thecommexecs2)

ServerStackEntry

public ServerStackEntry(ServerStackEntry theancestor,
                        int thestate,
                        ServerThreadSession stsx,
                        CommandExecutor commexec)

ServerStackEntry

public ServerStackEntry(ServerStackEntry theancestor,
                        int thestate,
                        ServerThreadSession stsx,
                        CommandExecutor commexec1,
                        CommandExecutor commexec2)
Method Detail

setCommandExecutors

public void setCommandExecutors(java.util.List thecommexecs)

setAllCommandExecutors

public void setAllCommandExecutors(java.util.List thecommexecs)

queryAllCommExecs

protected ServerReply queryAllCommExecs(ServerRequest sq)
                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

query

public ServerReply query(ServerRequest sq,
                         boolean allcommexecsonly)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

query

public ServerReply query(ServerRequest sq)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException

leavingActions

public void leavingActions()

putProperty

public java.lang.Object putProperty(java.lang.Object key,
                                    java.lang.Object prop)

getProperty

public java.lang.Object getProperty(java.lang.Object key)

removeProperty

public java.lang.Object removeProperty(java.lang.Object key)

dropMe

public ServerStackEntry dropMe()

toString

public java.lang.String toString()

QJCC homepage