public abstract class BaseJitterbitConnector extends Object implements JitterbitConnector
A connector should extend this class as it provides the base implementation.
JitterbitConnector.ConnectorContext, JitterbitConnector.Factory, JitterbitConnector.TestQueryContext<T>, JitterbitConnector.TestQueryResult
CONNECTOR_CONTEXT, EXECUTION_CONTEXT
Constructor and Description |
---|
BaseJitterbitConnector() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getCombinedParams(Map<String,String> params)
Convenience method to combine the protected parameters and non-protected parameters / properties.
|
Map<? extends String,? extends String> |
getProtectedParams()
This returns connector parameters that shouldn't be accessible or modifiable by user who is using
the connector.
|
List<ProviderLibrary> |
getProviders()
Returns an empty list of provider library objects.
|
void |
onInit()
Upon successful connector initialization, logs a message announcing the initialization with
the connector name.
|
void |
setProtectedParams(Map<? extends String,? extends String> params)
Set protected paramaters that shouldn't be modifiable or accessible by user who is using the
connector.
|
void |
testConnection(Map<String,String> props)
Uses the specified properties to test a connection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionFactory, getObjectMetadata, testQuery
public void testConnection(Map<String,String> props) throws Connection.ConnectionException
testConnection
in interface JitterbitConnector
props
- a map with the properties required to test the connectionConnection.ConnectionException
- if an error happens during the testpublic List<ProviderLibrary> getProviders()
getProviders
in interface JitterbitConnector
public void onInit()
onInit
in interface JitterbitConnector
public Map<? extends String,? extends String> getProtectedParams()
JitterbitConnector
getProtectedParams
in interface JitterbitConnector
public void setProtectedParams(Map<? extends String,? extends String> params)
JitterbitConnector
setProtectedParams
in interface JitterbitConnector
public Map<String,String> getCombinedParams(Map<String,String> params)
JitterbitConnector
getCombinedParams
in interface JitterbitConnector
Copyright © Jitterbit, Inc. Licensed under the Jitterbit Master Subscription Agreement.