Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // This software is released into the Public Domain.  See copying.txt for details.
 package org.openstreetmap.osmosis.replicationhttp.v0_6;
 
 import java.io.File;
 
The task manager factory for a replication sequence server.

Author(s):
Brett Henderson
	private static final String ARG_NOTIFICATION_PORT = "notificationPort";
	private static final String ARG_DATA_DIRECTORY = "dataDirectory";
	private static final String ARG_PORT = "port";
	private static final int DEFAULT_NOTIFICATION_PORT = 0;
	private static final String DEFAULT_DATA_DIRECTORY = "./";
	private static final int DEFAULT_PORT = 0;


		int port;
		String dataDirectoryString;
		File dataDirectory;
		int notificationPort;
		// Get the task arguments.
		port = getIntegerArgument(taskConfig);
		dataDirectoryString = getStringArgument(taskConfig,
		// Convert argument strings to strongly typed objects.
		dataDirectory = new File(dataDirectoryString);
		return new RunnableTaskManager(
			taskConfig.getId(),
			new ReplicationDataServer(notificationPortdataDirectoryport),
			taskConfig.getPipeArgs()
		);
	}
New to GrepCode? Check out our FAQ X