|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.vhi.script.api.LifeCycleEventHandler abbreviationdb.LifeCycleHandler
public class LifeCycleHandler
Create and destroy abbreviation database connection.
This event handler uses the model load and model unload events to manage a database connection object which translates abbreviations.
Field Summary | |
---|---|
static int |
authenticateUserTimeout
Timeout in seconds for the authenticateUser() event. |
static int |
clientSessionCreatedTimeout
Timeout in seconds for the clientSessionCreated() event. |
static int |
clientSessionDestroyedTimeout
Timeout in seconds for the clientSessionDestroyed() event. |
static java.lang.String |
description
|
static int |
hostSessionCreatedTimeout
Timeout in seconds for the hostSessionCreated() event. |
static int |
hostSessionDestroyedTimeout
Timeout in seconds for the hostSessionDestroyed() event. |
static int |
modelLoadedTimeout
Timeout in seconds for the modelLoaded() event. |
static int |
modelUnloadedTimeout
Timeout in seconds for the modelUnloaded() event. |
Fields inherited from interface com.wrq.vhi.script.api.EventHandler |
---|
DEFAULT_TIMEOUT |
Constructor Summary | |
---|---|
LifeCycleHandler()
|
Method Summary | |
---|---|
void |
modelLoaded(com.wrq.vhi.script.api.ModelLoadedEvent event)
Create a database connection shared by all model sessions.. |
void |
modelUnloaded(com.wrq.vhi.script.api.ModelUnloadedEvent event)
Close and release the shared database connection. |
Methods inherited from class com.wrq.vhi.script.api.LifeCycleEventHandler |
---|
authenticateUser, clientSessionCreated, clientSessionDestroyed, hostSessionCreated, hostSessionDestroyed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String description
public static final int modelLoadedTimeout
public static final int modelUnloadedTimeout
public static final int hostSessionCreatedTimeout
public static final int hostSessionDestroyedTimeout
public static final int clientSessionCreatedTimeout
public static final int clientSessionDestroyedTimeout
public static final int authenticateUserTimeout
Constructor Detail |
---|
public LifeCycleHandler()
Method Detail |
---|
public void modelLoaded(com.wrq.vhi.script.api.ModelLoadedEvent event)
This event handler cannot throw an exception. If the database connection constructor throws an exception the exception is logged for later diagnosis.
modelLoaded
in class com.wrq.vhi.script.api.LifeCycleEventHandler
event
- the event instancepublic void modelUnloaded(com.wrq.vhi.script.api.ModelUnloadedEvent event)
modelUnloaded
in class com.wrq.vhi.script.api.LifeCycleEventHandler
event
- the event instance
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |