Sha256: e36c93d752c7ec8443e777591d1d762a37842c4490c3620c34963a5f4ebef921

Contents?: true

Size: 1.14 KB

Versions: 12

Compression:

Stored size: 1.14 KB

Contents

package org.embulk.input.riak_cs;

import com.amazonaws.ClientConfiguration;
import com.amazonaws.services.s3.AmazonS3Client;
import org.embulk.config.Config;
import org.embulk.config.ConfigInject;
import org.embulk.input.s3.AbstractS3FileInputPlugin;

public class RiakCsFileInputPlugin
        extends AbstractS3FileInputPlugin
{
    public interface RiakCsPluginTask
            extends PluginTask
    {
        @Config("endpoint")
        public String getEndpoint();
    }

    @Override
    protected Class<? extends PluginTask> getTaskClass()
    {
        return RiakCsPluginTask.class;
    }

    @Override
    protected AmazonS3Client newS3Client(PluginTask task)
    {
        RiakCsPluginTask t = (RiakCsPluginTask) task;

        AmazonS3Client client = super.newS3Client(t);

        client.setEndpoint(t.getEndpoint());

        return client;
    }

    @Override
    protected ClientConfiguration getClientConfiguration(PluginTask task)
    {
        RiakCsPluginTask t = (RiakCsPluginTask) task;

        ClientConfiguration config = super.getClientConfiguration(t);
        config.setSignerOverride("S3SignerType");

        return config;
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
embulk-input-riak_cs-0.2.11 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.10 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.9 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.8 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.7 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.6 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.5 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.4 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.3 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.2 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.1 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
embulk-input-riak_cs-0.2.0 src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java