Class MetacardS3StorageRoute
java.lang.Object
org.apache.camel.builder.BuilderSupport
org.apache.camel.builder.RouteBuilder
org.codice.ddf.catalog.plugin.metacard.backup.common.MetacardStorageRoute
org.codice.ddf.catalog.plugin.metacard.backup.storage.s3storage.MetacardS3StorageRoute
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.Ordered,org.apache.camel.RoutesBuilder,org.apache.camel.spi.ResourceAware
Creates a camel route for storing metacards from post-ingest in Amazon S3. This route will
transform the metacard using the configured metacard transformer prior to storage.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.codice.ddf.catalog.plugin.metacard.backup.common.MetacardStorageRoute
BACKUP_INVALID_PROPERTY, backupInvalidMetacards, backupMetacardTags, KEEP_DELETED_PROPERTY, keepDeletedMetacards, METACARD_BACKUP_INVALID_RTE_PROP, METACARD_BACKUP_KEEP_DELETED_RTE_PROP, METACARD_BACKUP_TAGS_PROPERTY, METACARD_TRANSFORMER_ID_RTE_PROP, metacardTransformerId, TEMPLATED_STRING_HEADER_RTE_PROP, TRANSFORMER_ID_PROPERTYFields inherited from class org.apache.camel.builder.RouteBuilder
logFields inherited from interface org.apache.camel.Ordered
HIGHEST, LOWEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidsetObjectTemplate(String objectTemplate) voidsetS3AccessKey(String s3AccessKey) voidsetS3Bucket(String s3Bucket) voidsetS3CannedAclName(String s3CannedAclName) voidsetS3Endpoint(String s3Endpoint) voidsetS3Region(String s3Region) voidsetS3SecretKey(String s3SecretKey) Methods inherited from class org.codice.ddf.catalog.plugin.metacard.backup.common.MetacardStorageRoute
getBackupMetacardTags, getCheckDeletePredicate, getMetacardTransformerId, getShouldBackupPredicate, isBackupInvalidMetacards, isKeepDeletedMetacards, setBackupInvalidMetacards, setBackupMetacardTags, setKeepDeletedMetacards, setMetacardTransformerId, shouldBackupMetacard, start, stopMethods inherited from class org.apache.camel.builder.RouteBuilder
addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, addTemplatedRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configuration, configureRest, configureRests, configureRoute, configureRouteConfiguration, configureRoutes, configureRouteTemplate, configureTemplatedRoute, dataFormat, errorHandler, errorHandler, expression, from, from, from, fromF, getOrder, getResource, getRestCollection, getRestConfiguration, getRouteCollection, getRouteTemplateCollection, getTemplatedRouteCollection, initializeCamelContext, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, loadRoutesBuilder, loadRoutesBuilder, onCompletion, onException, onException, populateOrUpdateRoutes, populateRests, populateRoutes, populateRouteTemplates, populateTemplatedRoutes, populateTransformers, populateValidators, property, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, routeTemplate, setErrorHandlerFactory, setResource, setRestCollection, setRouteCollection, setRouteTemplateCollection, setTemplatedRouteCollection, templatedRoute, toString, transformer, updateRoutesToCamelContext, validatorMethods inherited from class org.apache.camel.builder.BuilderSupport
body, bodyAs, constant, constant, constant, createErrorHandlerBuilder, csimple, csimple, datasonnet, datasonnet, datasonnet, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, expression, getCamelContext, getContext, getErrorHandlerFactory, hasErrorHandlerFactory, header, joor, joor, jsonpath, jsonpath, jtaTransactionErrorHandler, jtaTransactionErrorHandler, jtaTransactionErrorHandler, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setCamelContext, simple, simple, simpleF, simpleF, springTransactionErrorHandler, springTransactionErrorHandler, springTransactionErrorHandler, systemProperty, systemProperty, xpath, xpath, xpath, xpath
-
Field Details
-
OBJECT_TEMPLATE
- See Also:
-
S3_ACCESS_KEY_PROP
- See Also:
-
S3_SECRET_KEY_PROP
- See Also:
-
S3_ENDPOINT_PROP
- See Also:
-
S3_REGION_PROP
- See Also:
-
S3_BUCKET_PROP
- See Also:
-
S3_CANNED_ACL_NAME_PROP
- See Also:
-
AWS_S3_CLIENT_PROP
- See Also:
-
AWS_S3_DELETE_AFTER_WRITE_PROP
- See Also:
-
objectTemplate
-
s3Bucket
-
s3AccessKey
-
s3SecretKey
-
s3Endpoint
-
s3Region
-
s3CannedAclName
-
-
Constructor Details
-
MetacardS3StorageRoute
public MetacardS3StorageRoute(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
getObjectTemplate
-
setObjectTemplate
-
getS3Bucket
-
setS3Bucket
-
getS3AccessKey
-
setS3AccessKey
-
getS3SecretKey
-
setS3SecretKey
-
getS3Endpoint
-
setS3Endpoint
-
getS3Region
-
setS3Region
-
getS3CannedAclName
-
setS3CannedAclName
-
configure
- Specified by:
configurein classorg.apache.camel.builder.RouteBuilder- Throws:
Exception
-
refresh
- Overrides:
refreshin classMetacardStorageRoute- Throws:
Exception
-
getRouteIds
- Specified by:
getRouteIdsin classMetacardStorageRoute
-