public class TurbineRunDataService extends TurbineBaseService implements RunDataService
configuration, name, serviceBrokerinitableBroker, isInitializedCOOKIE_PARSER_KEY, DEFAULT_CONFIG, PARAMETER_PARSER_KEY, RUN_DATA_KEY, SERVICE_NAME| Constructor and Description |
|---|
TurbineRunDataService()
Constructs a RunData Service.
|
| Modifier and Type | Method and Description |
|---|---|
RunData |
getRunData(HttpServletRequest req,
HttpServletResponse res,
ServletConfig config)
Gets a default RunData object.
|
RunData |
getRunData(String key,
HttpServletRequest req,
HttpServletResponse res,
ServletConfig config)
Gets a RunData instance from a specific configuration.
|
void |
init()
Initializes the service by setting the pool capacity.
|
boolean |
putRunData(RunData data)
Puts the used RunData object back to the factory for recycling.
|
void |
shutdown()
Shutdown the service
|
init, initgetConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBrokergetInit, getInitableBroker, setInit, setInitableBrokerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getName, getProperties, setName, setServiceBrokergetInit, init, setInitableBrokerpublic TurbineRunDataService()
public void init()
throws InitializationException
init in interface Initableinit in class TurbineBaseServiceInitializationException - if initialization fails.public void shutdown()
shutdown in interface Initableshutdown in class TurbineBaseServiceTurbineBaseService.shutdown()public RunData getRunData(HttpServletRequest req, HttpServletResponse res, ServletConfig config) throws TurbineException
getRunData in interface RunDataServicereq - a servlet request.res - a servlet response.config - a servlet config.TurbineException - if the operation fails.public RunData getRunData(String key, HttpServletRequest req, HttpServletResponse res, ServletConfig config) throws TurbineException, IllegalArgumentException
getRunData in interface RunDataServicekey - a configuration key.req - a servlet request.res - a servlet response.config - a servlet config.TurbineException - if the operation fails.IllegalArgumentException - if any of the parameters are null.
TODO The "key" parameter should be removed in favor of just looking up what class via the roleConfig avalon file.public boolean putRunData(RunData data)
putRunData in interface RunDataServicedata - the used RunData object.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.