CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
/** * Check a given database for topic map consistency.. * In particular, checks for referential integrity and uniqueness. */ public static void main(String [] argv) throws Exception { // Initialize logging CmdlineUtils.initializeLogging(); // Initialize command line option parser and listeners CmdlineOptions options = new CmdlineOptions("RDBMSConsistencyChecker", argv); // Register logging options CmdlineUtils.registerLoggingOptions(options); // Parse command line options try { options.parse(); } catch (CmdlineOptions.OptionsException e) { System.err.println("Error: " + e.getMessage()); System.exit(1); } // Get command line arguments String[] args = options.getArguments(); String dbProperties = null; if (args.length != 1) { System.err.println("Error: Illegal number of arguments."); usage(); System.exit(1); } dbProperties = args[0]; checkConsistency(dbProperties, new OutputStreamWriter(System.out)); }
CmdlineUtils.registerLoggingOptions(options);
public static void main(String[] argv) throws Exception { // Initialize logging CmdlineUtils.initializeLogging(); // Register logging options CmdlineOptions options = new CmdlineOptions("TranslateSourceLocators", argv); CmdlineUtils.registerLoggingOptions(options); // Parse command line options try { options.parse(); } catch (CmdlineOptions.OptionsException e) { System.err.println("Error: " + e.getMessage()); System.exit(1); } // Get command line arguments String[] args = options.getArguments(); if (args.length < 3 || args.length > 3) { usage(); System.exit(3); } translate(args[0], args[1], args[2]); }
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
public static void main(String[] argv) throws Exception { // Initialize logging CmdlineUtils.initializeLogging(); // Register logging options CmdlineOptions options = new CmdlineOptions("RDBMSDelete", argv); CmdlineUtils.registerLoggingOptions(options); // Parse command line options try { options.parse(); } catch (CmdlineOptions.OptionsException e) { System.err.println("Error: " + e.getMessage()); System.exit(1); } // Get command line arguments String[] args = options.getArguments(); if (args.length < 2) { usage(); System.exit(3); } String propfile = args[0]; long topicMapId = ImportExportUtils.getTopicMapId(args[1]); RDBMSTopicMapStore store = new RDBMSTopicMapStore(propfile, topicMapId); System.out.println("Deleting topic map with id " + topicMapId); store.delete(true); }
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options);
private void setupRDBMS(String[] argv) throws CmdlineOptions.OptionsException { options = new CmdlineOptions("RDBMSImport", argv); listener = new Listener(); CmdlineUtils.registerLoggingOptions(options); options.addLong(listener, "tmid", 't', true); }
CmdlineUtils.registerLoggingOptions(options); OptionsListener ohandler = new OptionsListener(); options.addLong(ohandler, "terms", 't', true);
CmdlineUtils.registerLoggingOptions(options);
CmdlineUtils.registerLoggingOptions(options); OptionsListener ohandler = new OptionsListener(); options.addLong(ohandler, "terms", 't', true);
public static void main(String[] args) throws Exception { // initialize logging CmdlineUtils.initializeLogging(); // register logging options CmdlineOptions options = new CmdlineOptions("ClusterClientTest", args); CmdlineUtils.registerLoggingOptions(options); String clusterId = "cluster-test"; // args[0]; String clusterProps = null; // (args.length >= 2 ? args[1] : null); ClusterClientTest tester = new ClusterClientTest(clusterId, clusterProps); try { tester.setUp(); tester.run(); } finally { tester.tearDown(); } System.out.println("Tests: " + tester.testsRun + " failed: " + tester.testsFailed); }
public static void main(String[] args) throws Exception { // initialize logging CmdlineUtils.initializeLogging(); // register logging options CmdlineOptions options = new CmdlineOptions("ClusterMasterTest", args); CmdlineUtils.registerLoggingOptions(options); String clusterId = "cluster-test"; // args[0]; String clusterProps = null; // (args.length >= 2 ? args[1] : null); ClusterMasterTest tester = new ClusterMasterTest(clusterId, clusterProps); try { tester.setUp(); tester.run(); } finally { tester.tearDown(); } }