System.out.println("failed to load properties from [" + props + "]");
}
org.openadaptor.adaptor.ldap.LDAPSource ldaps =
new org.openadaptor.adaptor.ldap.LDAPSource();
PassThroughPipeCount ptp = new PassThroughPipeCount();
org.openadaptor.adaptor.benchmark.NullSink ns =
new org.openadaptor.adaptor.benchmark.NullSink();
STPipelineController pc =
new STPipelineController();
SimpleController sc = new SimpleController();
try {
sc.init("Controller", props, "A", null);
sc.setExitAllowed(false);
ldaps.init("LDAP", props, "A.C1", sc);
ptp.init("PTP", props, "A.C2", sc);
ns.init("NS", props, "A.C3", sc);
sc.setPipelineController(pc);
sc.linkSourceAndSink(ldaps, ptp);
sc.linkSourceAndSink(ptp, ns);
sc.run();