| Modifier and Type | Class and Description |
|---|---|
class |
Driver.EventLoggerWrapper |
class |
Driver.ThreadLocalEventLogger |
| Modifier and Type | Field and Description |
|---|---|
protected DriverId |
driverId
Driver identifier.
|
protected Driver.ThreadLocalEventLogger |
eventLogger
Per thread event logger.
|
protected DriverFactory |
factory
Driver factory that created this driver.
|
protected org.apache.log4j.Logger |
logger
Logger.
|
protected java.util.Hashtable<java.lang.String,java.lang.Integer> |
map
Map of action name to action code.
|
protected ActionOverlapTool |
overlap
Tool for dealing with overlapping actions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cleanup()
Cleanup any relevant state.
|
int |
dispatch(java.lang.String actionName,
java.util.Properties in,
java.util.Properties out)
Main driver dispatch routine.
|
int |
dispatch2(java.lang.String objectId,
java.lang.String actionId,
java.util.Properties in,
java.util.Properties out)
Main driver dispatch routine for objects.
|
protected abstract int |
doDispatch(java.lang.String actionName,
java.lang.Integer actionID,
java.util.Properties in,
java.util.Properties out)
Performs the action dispatch operation.
|
protected void |
finishDispatch(java.lang.String actionName,
java.lang.Integer actionID,
java.util.Properties in,
java.util.Properties out,
int code)
Performs bookkeeping operations to complete a dispatch call.
|
protected abstract java.lang.String |
getActionKey(java.lang.Integer action,
java.util.Properties in)
Returns the action key for the given operation.
|
java.lang.String |
getDriverRoot() |
EventLogger |
getEventLogger() |
DriverId |
getId()
Returns the unique driver identifier.
|
int |
initialize()
Initialize the driver
|
boolean |
isStateful()
If the driver maintains state between calls, this method should return true.
|
protected int |
prepareDispatch(java.lang.Integer actionID,
java.lang.String actionName,
java.util.Properties in,
java.util.Properties out)
Performs validation and bookkeeping actions before dispatching a call.
|
protected abstract int |
prepareEventLogger(java.lang.String actionName,
java.lang.Integer actionID,
java.util.Properties in)
Prepares an event logger for the current operation.
|
protected void |
setEventLogger(EventLogger el) |
void |
setFactory(DriverFactory factory)
Sets the factory used to create this driver
|
protected java.util.Hashtable<java.lang.String,java.lang.Integer> map
protected Driver.ThreadLocalEventLogger eventLogger
protected DriverId driverId
protected DriverFactory factory
protected org.apache.log4j.Logger logger
protected ActionOverlapTool overlap
public Driver(DriverId driverId)
public int initialize()
throws java.lang.Exception
IDriverinitialize in interface IDriverjava.lang.Exception - in case of errorpublic int dispatch(java.lang.String actionName,
java.util.Properties in,
java.util.Properties out)
throws java.lang.Exception
IDriverpublic int dispatch2(java.lang.String objectId,
java.lang.String actionId,
java.util.Properties in,
java.util.Properties out)
throws java.lang.Exception
IDriverprotected abstract int doDispatch(java.lang.String actionName,
java.lang.Integer actionID,
java.util.Properties in,
java.util.Properties out)
actionName - action nameactionID - action identifierin - incoming properties listout - outgoing properties listprotected abstract int prepareEventLogger(java.lang.String actionName,
java.lang.Integer actionID,
java.util.Properties in)
actionName - action nameactionID - action identifierin - incoming properties listprotected abstract java.lang.String getActionKey(java.lang.Integer action,
java.util.Properties in)
action - actionin - inprotected int prepareDispatch(java.lang.Integer actionID,
java.lang.String actionName,
java.util.Properties in,
java.util.Properties out)
actionID - action identifieractionName - action namein - incoming properties listout - outgoing properties listprotected void finishDispatch(java.lang.String actionName,
java.lang.Integer actionID,
java.util.Properties in,
java.util.Properties out,
int code)
actionName - action nameactionID - action identifierin - incoming properties listout - outgoing properties listcode - result of the dispatch call.protected void setEventLogger(EventLogger el)
public EventLogger getEventLogger()
public int cleanup()
throws java.lang.Exception
IDriverpublic boolean isStateful()
IDriverisStateful in interface IDriverpublic void setFactory(DriverFactory factory)
IDriversetFactory in interface IDriverfactory - factorypublic java.lang.String getDriverRoot()
Copyright © 2018 RENCI. All Rights Reserved.