Search in sources :

Example 6 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class PgSimplePluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("write-pgsimp", new PostgreSqlWriterFactory());
    factoryMap.put("ws", new PostgreSqlWriterFactory());
    factoryMap.put("fast-write-pgsimp", new PostgreSqlCopyWriterFactory());
    factoryMap.put("fws", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsimp", new PostgreSqlTruncatorFactory());
    factoryMap.put("ts", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsimp-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wsd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsimp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rs", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsimp-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wsc", new PostgreSqlChangeWriterFactory());
    factoryMap.put("write-pgsimp-0.6", new PostgreSqlWriterFactory());
    factoryMap.put("fast-write-pgsimp-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsimp-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsimp-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsimp-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsimp-change-0.6", new PostgreSqlChangeWriterFactory());
    return factoryMap;
}
Also used : PostgreSqlTruncatorFactory(org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlTruncatorFactory) PostgreSqlWriterFactory(org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlWriterFactory) PostgreSqlDumpWriterFactory(org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlDumpWriterFactory) PostgreSqlChangeWriterFactory(org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlChangeWriterFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) PostgreSqlDatasetReaderFactory(org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlDatasetReaderFactory) PostgreSqlCopyWriterFactory(org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlCopyWriterFactory)

Example 7 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class ReplicationPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<>();
    factoryMap.put("read-change-interval", new IntervalDownloaderFactory());
    factoryMap.put("rci", new IntervalDownloaderFactory());
    factoryMap.put("read-change-interval-init", new IntervalDownloaderInitializerFactory());
    factoryMap.put("rcii", new IntervalDownloaderInitializerFactory());
    factoryMap.put("read-replication-interval", new ReplicationDownloaderFactory());
    factoryMap.put("rri", new ReplicationDownloaderFactory());
    factoryMap.put("read-replication-interval-init", new ReplicationDownloaderInitializerFactory());
    factoryMap.put("rrii", new ReplicationDownloaderInitializerFactory());
    factoryMap.put("merge-replication-files", new ReplicationFileMergerFactory());
    factoryMap.put("mrf", new ReplicationFileMergerFactory());
    factoryMap.put("merge-replication-files-init", new ReplicationFileMergerInitializerFactory());
    factoryMap.put("mrfi", new ReplicationFileMergerInitializerFactory());
    factoryMap.put("read-replication-lag", new ReplicationLagReaderFactory());
    factoryMap.put("rrl", new ReplicationLagReaderFactory());
    factoryMap.put("write-replication", new ReplicationWriterFactory());
    factoryMap.put("wr", new ReplicationWriterFactory());
    factoryMap.put("replication-to-change", new ReplicationToChangeWriterFactory());
    factoryMap.put("rtc", new ReplicationToChangeWriterFactory());
    factoryMap.put("read-change-interval-0.6", new IntervalDownloaderFactory());
    factoryMap.put("read-change-interval-init-0.6", new IntervalDownloaderInitializerFactory());
    factoryMap.put("read-replication-interval-0.6", new ReplicationDownloaderFactory());
    factoryMap.put("read-replication-interval-init-0.6", new ReplicationDownloaderInitializerFactory());
    factoryMap.put("merge-replication-files-0.6", new ReplicationFileMergerFactory());
    factoryMap.put("merge-replication-files-init-0.6", new ReplicationFileMergerInitializerFactory());
    factoryMap.put("read-replication-lag-0.6", new ReplicationLagReaderFactory());
    factoryMap.put("write-replication-0.6", new ReplicationWriterFactory());
    factoryMap.put("replication-to-change-0.6", new ReplicationToChangeWriterFactory());
    return factoryMap;
}
Also used : ReplicationToChangeWriterFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationToChangeWriterFactory) IntervalDownloaderFactory(org.openstreetmap.osmosis.replication.v0_6.IntervalDownloaderFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) ReplicationWriterFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationWriterFactory) ReplicationFileMergerFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationFileMergerFactory) IntervalDownloaderInitializerFactory(org.openstreetmap.osmosis.replication.v0_6.IntervalDownloaderInitializerFactory) ReplicationDownloaderFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationDownloaderFactory) ReplicationLagReaderFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationLagReaderFactory) ReplicationFileMergerInitializerFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationFileMergerInitializerFactory) ReplicationDownloaderInitializerFactory(org.openstreetmap.osmosis.replication.v0_6.ReplicationDownloaderInitializerFactory)

Example 8 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class SetPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("apply-change", new ChangeApplierFactory());
    factoryMap.put("ac", new ChangeApplierFactory());
    factoryMap.put("derive-change", new ChangeDeriverFactory());
    factoryMap.put("dc", new ChangeDeriverFactory());
    factoryMap.put("flatten", new FlattenFilterFactory());
    factoryMap.put("f", new FlattenFilterFactory());
    factoryMap.put("merge", new EntityMergerFactory());
    factoryMap.put("m", new EntityMergerFactory());
    factoryMap.put("merge-change", new ChangeMergerFactory());
    factoryMap.put("mc", new ChangeMergerFactory());
    factoryMap.put("append-change", new ChangeAppenderFactory());
    factoryMap.put("apc", new ChangeAppenderFactory());
    factoryMap.put("simplify-change", new ChangeSimplifierFactory());
    factoryMap.put("simc", new ChangeSimplifierFactory());
    factoryMap.put("convert-change-to-full-history", new ChangeToFullHistoryConvertorFactory());
    factoryMap.put("cctfh", new ChangeToFullHistoryConvertorFactory());
    factoryMap.put("apply-change-0.6", new ChangeApplierFactory());
    factoryMap.put("derive-change-0.6", new ChangeDeriverFactory());
    factoryMap.put("flatten-0.6", new FlattenFilterFactory());
    factoryMap.put("merge-0.6", new EntityMergerFactory());
    factoryMap.put("merge-change-0.6", new ChangeMergerFactory());
    factoryMap.put("append-change-0.6", new ChangeAppenderFactory());
    factoryMap.put("simplify-change-0.6", new ChangeSimplifierFactory());
    factoryMap.put("convert-change-to-full-history-0.6", new ChangeToFullHistoryConvertorFactory());
    return factoryMap;
}
Also used : ChangeDeriverFactory(org.openstreetmap.osmosis.set.v0_6.ChangeDeriverFactory) ChangeAppenderFactory(org.openstreetmap.osmosis.set.v0_6.ChangeAppenderFactory) ChangeSimplifierFactory(org.openstreetmap.osmosis.set.v0_6.ChangeSimplifierFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) ChangeToFullHistoryConvertorFactory(org.openstreetmap.osmosis.set.v0_6.ChangeToFullHistoryConvertorFactory) ChangeApplierFactory(org.openstreetmap.osmosis.set.v0_6.ChangeApplierFactory) EntityMergerFactory(org.openstreetmap.osmosis.set.v0_6.EntityMergerFactory) FlattenFilterFactory(org.openstreetmap.osmosis.set.v0_6.FlattenFilterFactory) ChangeMergerFactory(org.openstreetmap.osmosis.set.v0_6.ChangeMergerFactory)

Example 9 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class ApidbPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("read-apidb", new ApidbReaderFactory());
    factoryMap.put("rd", new ApidbReaderFactory());
    factoryMap.put("read-apidb-change", new ApidbChangeReaderFactory());
    factoryMap.put("rdc", new ApidbChangeReaderFactory());
    factoryMap.put("read-apidb-current", new ApidbCurrentReaderFactory());
    factoryMap.put("rdcur", new ApidbCurrentReaderFactory());
    factoryMap.put("write-apidb", new ApidbWriterFactory());
    factoryMap.put("wd", new ApidbWriterFactory());
    factoryMap.put("write-apidb-change", new ApidbChangeWriterFactory());
    factoryMap.put("wdc", new ApidbChangeWriterFactory());
    factoryMap.put("truncate-apidb", new ApidbTruncatorFactory());
    factoryMap.put("td", new ApidbTruncatorFactory());
    factoryMap.put("replicate-apidb", new ApidbFileReplicatorFactory());
    factoryMap.put("repa", new ApidbFileReplicatorFactory());
    factoryMap.put("read-apidb-0.6", new ApidbReaderFactory());
    factoryMap.put("read-apidb-change-0.6", new ApidbChangeReaderFactory());
    factoryMap.put("read-apidb-current-0.6", new ApidbCurrentReaderFactory());
    factoryMap.put("write-apidb-0.6", new ApidbWriterFactory());
    factoryMap.put("write-apidb-change-0.6", new ApidbChangeWriterFactory());
    factoryMap.put("truncate-apidb-0.6", new ApidbTruncatorFactory());
    factoryMap.put("replicate-apidb-0.6", new ApidbFileReplicatorFactory());
    return factoryMap;
}
Also used : ApidbWriterFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbWriterFactory) ApidbReaderFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbReaderFactory) ApidbFileReplicatorFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicatorFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) ApidbChangeWriterFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbChangeWriterFactory) ApidbCurrentReaderFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbCurrentReaderFactory) ApidbChangeReaderFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbChangeReaderFactory) ApidbTruncatorFactory(org.openstreetmap.osmosis.apidb.v0_6.ApidbTruncatorFactory)

Example 10 with TaskManagerFactory

use of org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory in project osmosis by openstreetmap.

the class PgSnapshotPluginLoader method loadTaskFactories.

/**
 * {@inheritDoc}
 */
@Override
public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
    factoryMap = new HashMap<String, TaskManagerFactory>();
    factoryMap.put("write-pgsql", new PostgreSqlCopyWriterFactory());
    factoryMap.put("wp", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql", new PostgreSqlTruncatorFactory());
    factoryMap.put("tp", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
    factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
    return factoryMap;
}
Also used : PostgreSqlTruncatorFactory(org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlTruncatorFactory) PostgreSqlDumpWriterFactory(org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlDumpWriterFactory) PostgreSqlChangeWriterFactory(org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlChangeWriterFactory) TaskManagerFactory(org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory) PostgreSqlDatasetReaderFactory(org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlDatasetReaderFactory) PostgreSqlCopyWriterFactory(org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlCopyWriterFactory)

Aggregations

TaskManagerFactory (org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory)15 NullChangeWriterFactory (org.openstreetmap.osmosis.core.misc.v0_6.NullChangeWriterFactory)2 HashMap (java.util.HashMap)1 ApidbChangeReaderFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbChangeReaderFactory)1 ApidbChangeWriterFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbChangeWriterFactory)1 ApidbCurrentReaderFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbCurrentReaderFactory)1 ApidbFileReplicatorFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicatorFactory)1 ApidbReaderFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbReaderFactory)1 ApidbTruncatorFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbTruncatorFactory)1 ApidbWriterFactory (org.openstreetmap.osmosis.apidb.v0_6.ApidbWriterFactory)1 BoundingBoxFilterFactory (org.openstreetmap.osmosis.areafilter.v0_6.BoundingBoxFilterFactory)1 PolygonFilterFactory (org.openstreetmap.osmosis.areafilter.v0_6.PolygonFilterFactory)1 BoundComputerFactory (org.openstreetmap.osmosis.core.bound.v0_6.BoundComputerFactory)1 BoundSetterFactory (org.openstreetmap.osmosis.core.bound.v0_6.BoundSetterFactory)1 ChangeBufferFactory (org.openstreetmap.osmosis.core.buffer.v0_6.ChangeBufferFactory)1 EntityBufferFactory (org.openstreetmap.osmosis.core.buffer.v0_6.EntityBufferFactory)1 EmptyChangeReaderFactory (org.openstreetmap.osmosis.core.misc.v0_6.EmptyChangeReaderFactory)1 EmptyReaderFactory (org.openstreetmap.osmosis.core.misc.v0_6.EmptyReaderFactory)1 NullWriterFactory (org.openstreetmap.osmosis.core.misc.v0_6.NullWriterFactory)1 PluginLoader (org.openstreetmap.osmosis.core.plugin.PluginLoader)1