public interface SessionManager
extends java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
void |
changeMaxPoolSize(int newSize)
Change max pool size.
|
void |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
Change password.
|
void |
configure(SessionManagerProperties properties)
This method would configure the SessionManager.
|
void |
execute(Transaction tx)
Execute a single Transaction.
|
int |
execute(Transaction[] txs)
Execute multiple Transactions.
|
Greeting |
getLastGreeting()
Returns the last greeting.
|
SessionManagerProperties |
getProperties()
Returns the properties used during configuration.
|
StatsViewer |
getStatsViewer()
Returns the viewer created to record run statistics of sessions.
|
void |
run() |
void |
shutdown()
Shutdown the SessionManger, making it unavailable for further transaction processing.
|
void |
startup()
Initialise the SessionManager.
|
void configure(SessionManagerProperties properties) throws ConfigurationException
properties
- the properties to be usedConfigurationException
- the configuration exceptionvoid changePassword(java.lang.String oldPassword, java.lang.String newPassword)
oldPassword
- the old passwordnewPassword
- the new passwordvoid changeMaxPoolSize(int newSize)
newSize
- the new size of the session poolSessionManagerProperties getProperties()
void execute(Transaction tx) throws FatalSessionException, java.io.IOException, ParsingException, CommandFailedException, java.lang.IllegalStateException
tx
- the Transaction to be executed.FatalSessionException
- the fatal session exceptionjava.io.IOException
- Signals that an I/O exception has occurred.ParsingException
- the parsing exceptionCommandFailedException
- the command failed exceptionjava.lang.IllegalStateException
- the illegal state exceptionint execute(Transaction[] txs) throws FatalSessionException, java.lang.IllegalStateException, java.io.IOException
txs
- the Transactions to be sent to the EPP server.FatalSessionException
- the fatal session exceptionjava.lang.IllegalStateException
- the illegal state exceptionjava.io.IOException
- Signals that an I/O exception has occurred.void startup() throws SessionConfigurationException, SessionOpenException
SessionConfigurationException
- the session configuration exceptionSessionOpenException
- the session open exceptionvoid shutdown()
Greeting getLastGreeting() throws SessionConfigurationException, SessionOpenException
SessionConfigurationException
- the session configuration exceptionSessionOpenException
- the session open exceptionvoid run()
run
in interface java.lang.Runnable
StatsViewer getStatsViewer()