public class ElsqlComponent extends UriEndpointComponent
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
ElsqlComponent() |
Modifier and Type | Method and Description |
---|---|
protected Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
ElSqlDatabaseVendor |
getDatabaseVendor() |
DataSource |
getDataSource() |
com.opengamma.elsql.ElSqlConfig |
getElSqlConfig()
Sets the DataSource to use to communicate with the database.
|
String |
getResourceUri() |
void |
setDatabaseVendor(ElSqlDatabaseVendor databaseVendor)
To use a vendor specific
ElSqlConfig |
void |
setDataSource(DataSource dataSource)
Sets the DataSource to use to communicate with the database.
|
void |
setElSqlConfig(com.opengamma.elsql.ElSqlConfig elSqlConfig)
To use a specific configured ElSqlConfig.
|
void |
setResourceUri(String resourceUri)
The resource file which contains the elsql SQL statements to use.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponent
createEndpoint
in class DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
- is thrown if error creating the endpointpublic ElSqlDatabaseVendor getDatabaseVendor()
public void setDatabaseVendor(ElSqlDatabaseVendor databaseVendor)
ElSqlConfig
public void setDataSource(DataSource dataSource)
public DataSource getDataSource()
public com.opengamma.elsql.ElSqlConfig getElSqlConfig()
public void setElSqlConfig(com.opengamma.elsql.ElSqlConfig elSqlConfig)
public String getResourceUri()
public void setResourceUri(String resourceUri)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.