Package org.switchyard.component.camel.file.model.v1

Examples of org.switchyard.component.camel.file.model.v1.V1CamelFileBindingModel


        assertEquals(DONE_FILENAME, producer.getDoneFileName());
    }

    @Override
    protected V1CamelFileBindingModel createTestModel() {
        V1CamelFileBindingModel fileModel = (V1CamelFileBindingModel) new V1CamelFileBindingModel(CamelFileNamespace.V_1_0.uri())
            .setDirectory(DIRECTORY)
            .setAutoCreate(AUTO_CREATE);

        GenericFileProducerBindingModel producer = new V1CamelFileProducerBindingModel(CamelFileNamespace.V_1_0.uri())
            .setFileExist(FILE_EXIST)
            .setTempPrefix(TEMP_PREFIX)
            .setKeepLastModified(KEEP_LAST_MODIFIED)
            .setEagerDeleteTargetFile(EAGER_DELETE_TARGET_FLE)
            .setDoneFileName(DONE_FILENAME);
        return fileModel.setProducer(producer);
    }
View Full Code Here


        assertEquals(CHARSET, model.getCharset());
    }

    @Override
    protected V1CamelFileBindingModel createTestModel() {
        return (V1CamelFileBindingModel) new V1CamelFileBindingModel(CamelFileNamespace.V_1_0.uri())
            .setDirectory(DIRECTORY)
            .setAutoCreate(AUTO_CREATE)
            .setBufferSize(BUFFER_SIZE)
            .setFileName(FILE_NAME)
            .setFlatten(FLATTEN)
View Full Code Here

        super(FileEndpoint.class, CAMEL_XML);
    }

    @Override
    protected V1CamelFileBindingModel createTestModel() {
        V1CamelFileBindingModel fileModel = new V1CamelFileBindingModel(CamelFileNamespace.V_1_0.uri());
        fileModel.setDirectory(DIRECTORY);

        V1CamelFileConsumerBindingModel model = (V1CamelFileConsumerBindingModel) new V1CamelFileConsumerBindingModel(CamelFileNamespace.V_1_0.uri())
            .setInitialDelay(INITIAL_DELAY)
            .setDelay(DELAY);
        model.setMaxMessagesPerPoll(MAX_MESSAGES_PER_POLL);
        model.setDelete(DELETE)
            .setRecursive(RECURSIVE)
            .setNoop(NOOP)
            .setPreMove(PRE_MOVE)
            .setMove(MOVE)
            .setMoveFailed(MOVE_FAILED)
            .setInclude(INCLUDE)
            .setExclude(EXCLUDE)
            .setIdempotent(IDEMPOTENT)
            .setSortBy(SORT_BY)
            .setReadLock(READ_LOCK)
            .setReadLockTimeout(READ_LOCK_TIMEOUT)
            .setReadLockCheckInterval(READ_LOCK_CHECK_INTERVAL)
            .setStartingDirectoryMustExist(STARTING_DIRECTORY_MUST_EXIST)
            .setDirectoryMustExist(DIRECTORY_MUST_EXIST)
            .setDoneFileName(DONE_FILE_NAME);
        return fileModel.setConsumer(model);
    }
View Full Code Here

    @Override
    protected V1CamelFileBindingModel createTestModel() {
        V1CamelFileBindingModel fileModel = new V1CamelFileBindingModel(CamelFileNamespace.V_1_0.uri());
        fileModel.setDirectory(DIRECTORY);

        V1CamelFileConsumerBindingModel model = (V1CamelFileConsumerBindingModel) new V1CamelFileConsumerBindingModel(CamelFileNamespace.V_1_0.uri())
            .setInitialDelay(INITIAL_DELAY)
            .setDelay(DELAY);
        model.setMaxMessagesPerPoll(MAX_MESSAGES_PER_POLL);
        model.setDelete(DELETE)
            .setRecursive(RECURSIVE)
            .setNoop(NOOP)
            .setPreMove(PRE_MOVE)
            .setMove(MOVE)
            .setMoveFailed(MOVE_FAILED)
View Full Code Here

    protected V1CamelFileBindingModel createTestModel() {
        V1CamelFileBindingModel fileModel = (V1CamelFileBindingModel) new V1CamelFileBindingModel(CamelFileNamespace.V_1_0.uri())
            .setDirectory(DIRECTORY)
            .setAutoCreate(AUTO_CREATE);

        GenericFileProducerBindingModel producer = new V1CamelFileProducerBindingModel(CamelFileNamespace.V_1_0.uri())
            .setFileExist(FILE_EXIST)
            .setTempPrefix(TEMP_PREFIX)
            .setKeepLastModified(KEEP_LAST_MODIFIED)
            .setEagerDeleteTargetFile(EAGER_DELETE_TARGET_FLE)
            .setDoneFileName(DONE_FILENAME);
View Full Code Here

TOP

Related Classes of org.switchyard.component.camel.file.model.v1.V1CamelFileBindingModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.