Package com.google.code.or

Examples of com.google.code.or.OpenReplicator


    for (OpenReplicatorAvroEventFactory s : eventFactories)
    {
      _eventFactoryMap.put(Integer.valueOf(s.getSourceId()), s);
    }

    _or = new OpenReplicator();
    _jmxDomain = jmxDomain;
    try
    {
      _binlogFilePrefix =  processUri(new URI(physicalSourceStaticConfig.getUri()), _or);
    } catch (URISyntaxException u)
View Full Code Here


    runUriTest("mysql://user%2Fpassword@localhost:3306/1/mysql-binlog", "user", "password", "localhost", 3306, 1, "mysql-binlog");
    runUriTest("mysql://user%2Fpassword@localhost:3306/1/mysql5-binlog", "user", "password", "localhost", 3306, 1, "mysql5-binlog");
  }

  private void runUriTest(String raw, String user, String password, String host, int port, int serverId, String filename) throws InvalidConfigException, URISyntaxException {
    OpenReplicator or = new OpenReplicator();
    String prefix = OpenReplicatorEventProducer.processUri(new URI(raw), or);
    assertEquals(or.getUser(), user);
    assertEquals(or.getPassword(), password);
    assertEquals(or.getHost(), host);
    assertEquals(or.getPort(), port);
    assertEquals(or.getServerId(), serverId);
    assertEquals(prefix, filename);
  }
View Full Code Here

TOP

Related Classes of com.google.code.or.OpenReplicator

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.