|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.gov.tas.dpiwe.mr.util.Messenger
au.gov.tas.dpiwe.mr.BeanCache
au.gov.tas.dpiwe.mr.PresentationUtilities
au.gov.tas.dpiwe.mr.BeanBundler
au.gov.tas.dpiwe.mr.server.database.QueryBuilder
au.gov.tas.dpiwe.mr.Container
au.gov.tas.dpiwe.mr.DaemonContainer
au.gov.tas.dpiwe.mr.CommandInterpreter
au.gov.tas.dpiwe.mr.server.DatabaseBackedContainer
au.gov.tas.dpiwe.mr.server.servlet.ServerContainer
au.gov.tas.dpiwe.mr.server.ServerContainer
au.gov.tas.dpiwe.mr.server.LightweightContainer
public class LightweightContainer
This lightweight container a specialization of the ServerContainer class which reuses less of the Container code so that it has no increasing memory demand as transaction size becomes large.
Container,
ServerContainer| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class au.gov.tas.dpiwe.mr.server.ServerContainer |
|---|
ServerContainer.ReferenceReaper |
| Nested classes/interfaces inherited from class au.gov.tas.dpiwe.mr.BeanCache |
|---|
BeanCache.TypeRecord |
| Field Summary |
|---|
| Fields inherited from class au.gov.tas.dpiwe.mr.server.ServerContainer |
|---|
changedClassesSoFar, currentCommandIndex, currentDetail, currentStartTimestamp, daemonLog, databaseConnection, defaultLog, headModifiedSequenceNo, log, logContent, maximumModifiedQueueLength, modifiedQueue, modifiedQueueLength, reaper2, removedResponses, responseCache, responseCacheBeanClassList, responseHistogram, responsesSoFar, sessionLastRequestSerialTable, sessionLastResponseTable, sessionTable, totalResponses |
| Fields inherited from class au.gov.tas.dpiwe.mr.server.servlet.ServerContainer |
|---|
securityLayer |
| Fields inherited from class au.gov.tas.dpiwe.mr.server.DatabaseBackedContainer |
|---|
blobToByteArrayBufferSize, clobToStringBufferSize, deleteQuery, insertQuery, Level_DriverDebug, Level_PopulationDebug, Level_QueryDebug, lockQuery, newTableQuery, selectQuery, sequenceQuery, updateQuery, wipeQuery |
| Fields inherited from class au.gov.tas.dpiwe.mr.DaemonContainer |
|---|
autoStartDaemonList, daemonSupport, daemonTable, killedDaemonList, runningDaemonList |
| Fields inherited from class au.gov.tas.dpiwe.mr.server.database.QueryBuilder |
|---|
database |
| Fields inherited from class au.gov.tas.dpiwe.mr.util.Messenger |
|---|
console, error, exceptionMessageTable, exceptionsToConsole, exceptionsToError, Level_Debug, Level_Exception, Level_None, Level_Normal, messageLevel |
| Constructor Summary | |
|---|---|
LightweightContainer(MrDatabase database)
Instantiates the lightweight container without logging. |
|
LightweightContainer(MrDatabase database,
int beanClassCount,
int initialPerBeanClassCacheSize,
String appName)
Instantiates the lightweight container without logging. |
|
LightweightContainer(MrDatabase database,
String logFileName)
Instantiates the lightweight container with logging. |
|
LightweightContainer(MrDatabase database,
String logFileName,
int beanClassCount,
int initialPerBeanClassCacheSize,
String appName)
Instantiates the lightweight container with logging. |
|
LightweightContainer(MrDatabase database,
String logFileName,
String appName)
Instantiates the lightweight container with logging. |
|
| Method Summary | |
|---|---|
protected Collection |
begin(Object handle,
int size)
Creates a new transaction and associates it with the given object. |
protected void |
commit(Object handle)
Complete the given transaction. |
protected Response |
doCommandInTransactionContext(Command command)
Internal method which executes a command immediately. |
protected void |
rollback(Object handle)
Roll back the given transaction. |
| Methods inherited from class au.gov.tas.dpiwe.mr.server.servlet.ServerContainer |
|---|
activateBeansAuthenticateUserAndRemoveUnauthorizedCommands, getDetail, passivateBeansAndObscureSensitiveInformation |
| Methods inherited from class au.gov.tas.dpiwe.mr.server.DatabaseBackedContainer |
|---|
doCreateCommand, doDateCommand, doFindCommand, doFlushCommand, doInvokeCommand, doJoinCommand, doLoadCommand, doLockCommand, doRemoveCommand, doSelectCommand, doStoreCommand, doWipeCommand, generateJoinedBeansFromCombinedRecords, getLastUpdateDateFromRecord, getLastUpdateUserFromRecord, populateEntityBeanWithRecord, recoverFromDatabaseFailure, recoverFromDatabaseFailure |
| Methods inherited from class au.gov.tas.dpiwe.mr.CommandInterpreter |
|---|
doLogCommand |
| Methods inherited from class au.gov.tas.dpiwe.mr.DaemonContainer |
|---|
addDaemon, addDaemon, autoStartDaemons, doStartCommand, doStopCommand, getKilledDaemonNames, getRunningDaemonNames, killDaemonsImmediate, loadTypes, startDaemon, stopDaemon |
| Methods inherited from class au.gov.tas.dpiwe.mr.util.Messenger |
|---|
debugEmptyMessage, debugEmptyMessage, debugMessage, debugMessage, debugMessage, debugMessageFirstPart, debugMessageFirstPart, debugMessageLastPart, debugMessageLastPart, debugMessagePart, debugMessagePart, emptyMessage, emptyMessage, getMessageLevel, isTweenMessage, message, message, message, messageFirstPart, messageFirstPart, messageLastPart, messageLastPart, messagePart, messagePart, messagePart, messagePart, prettyException, setConsoleOutput, setConsoleOutput, setErrorOutput, setErrorOutput, setMessageLevel, setOutput, success |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LightweightContainer(MrDatabase database)
This constructor chooses default hashtable sizes based on a medium-sized business application with a couple of hundred bean types.
If the lightweight container is one of many which may be running in a single VM, please call LightweightContainer(MrDatabase,String) instead in order to specify an appropriate application name.
database - the database schema to which objects in this container
can be mapped.
public LightweightContainer(MrDatabase database,
int beanClassCount,
int initialPerBeanClassCacheSize,
String appName)
database - the database schema to which objects in this container
can be mapped.beanClassCount - an estimate of the number of bean types this container
will contain.initialPerBeanClassCacheSize - an estimate of the number of beans that
will exist in the cache for a particular bean type.appName - the name of the application which requires this container,
usually the qualified name of the main application package, with an
additional suffix if there are multiple containers per application.
public LightweightContainer(MrDatabase database,
String logFileName)
This constructor chooses default hashtable sizes based on a medium-sized business application with a couple of hundred bean types.
If the lightweight container is one of many which may be running in a single VM, please call LightweightContainer(MrDatabase,String,String) instead in order to specify an appropriate application name.
database - the database schema to which objects in this container
can be mapped.logFileName - the name of the log file to open (must already exist,
as the new log entries are appended to the end of any existing file.)
public LightweightContainer(MrDatabase database,
String logFileName,
String appName)
This constructor chooses default hashtable sizes based on a medium-sized business application with a couple of hundred bean types.
database - the database schema to which objects in this container
can be mapped.logFileName - the name of the log file to open (must already exist,
as the new log entries are appended to the end of any existing file.)appName - the name of the application which requires this container,
usually the qualified name of the main application package, with an
additional suffix if there are multiple containers per application.
public LightweightContainer(MrDatabase database,
String logFileName,
int beanClassCount,
int initialPerBeanClassCacheSize,
String appName)
database - the database schema to which objects in this container
can be mapped.logFileName - the name of the log file to open (must already exist,
as the new log entries are appended to the end of any existing file.)beanClassCount - an estimate of the number of bean types this container
will contain.initialPerBeanClassCacheSize - an estimate of the number of beans that
will exist in the cache for a particular bean type.appName - the name of the application which requires this container,
usually the qualified name of the main application package, with an
additional suffix if there are multiple containers per application.| Method Detail |
|---|
protected Collection begin(Object handle,
int size)
throws NotSupportedException
begin in class Containerhandle - the object to manage a thread on behalf of.size - the expected number of commands in this transaction.
NotSupportedException - if an attempt is made to nest transactions.
protected void commit(Object handle)
throws RollbackException,
HeuristicMixedException
When this method completes, the thread becomes associated with no transaction.
commit in class Containerhandle - the object which owns the transaction.
RollbackException - the transaction has been rolled back rather than
committed, probably because one of the commands in the transaction failed.
HeuristicMixedException - unauthorized commands in the transaction have been
rolled back, but those that were authorized have been committed.
IllegalStateException - if a transaction is not being managed
for the calling thread.protected void rollback(Object handle)
rollback in class Containerhandle - the object which owns the transaction.
IllegalStateException - if a transaction is not being managed
for the calling thread.
protected Response doCommandInTransactionContext(Command command)
throws EJBException
doCommandInTransactionContext in class Containercommand - the command to execute.
EJBException - if the command failed.
RollbackException - if the command failed and the transaction was rolled
back as a result.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||