Package ke.go.moh.oec.lib

Examples of ke.go.moh.oec.lib.Mediator


    public NotifyPersonChangedTest() {
    }
   
    @BeforeClass
    public static void setUpClass() throws Exception {
        mediator = new Mediator();
    }
View Full Code Here


            fileHandler.setLevel(Level.INFO); // Only log INFO and higher to disk.
        } catch (Exception ex) {
        }
        LoggingServer ls = new LoggingServer();
        Mediator.registerCallback(ls);
        Mediator m = new Mediator();
        while (true) {
            try {
                Thread.sleep(Long.MAX_VALUE);
            } catch (InterruptedException ex) {
            }
View Full Code Here

public class Main {

    public static void main(String[] args) {
        try {
            //Initialize Mediator so that it sets up logging facilities.
            new Mediator();
            String method = ResourceManager.getSetting("scheduler.method");
            long interval = Integer.parseInt(ResourceManager.getSetting("scheduler.interval"));
            String timeOfDay = ResourceManager.getSetting("scheduler.timeOfDay");
            long lookback = Integer.parseInt(ResourceManager.getSetting("scheduler.lookback"));
            Mediator.getLogger(Main.class.getName()).log(Level.INFO, "Starting service...");
View Full Code Here

    public NotifyPersonChangedTest2() {
    }
   
    public static void main(String[] args){
        NotifyPersonChangedTest2 n = new NotifyPersonChangedTest2();
        mediator = new Mediator();
        n.testNotifyPersonChanged();
    }
View Full Code Here

        String destination = facility + ".cds";
        PersonRequest pr = new PersonRequest();
        pr.setPerson(per);
        pr.setDestinationAddress(destination);
        pr.setDestinationName("Clinical Document Store");
        Mediator mediator = Main.getMediator();
        mediator.getData(RequestTypeId.NOTIFY_PERSON_CHANGED, pr);
    }
View Full Code Here

     * Then sleep "forever" to allow them to do their processing.
     *
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        mediator = new Mediator();

        Thread.currentThread().setName("Mpi"); // For identification while debugging
        Mpi mpi = new Mpi();
        mpi.initialize();
        Mediator.registerCallback(mpi);
View Full Code Here

    public GetWorkTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
        mediator = new Mediator();
    }
View Full Code Here

    }

    public static void main(String[] args) {

        Thread.currentThread().setName("Cds");
        mediator = new Mediator();
        Cds cds = new Cds();
        Mediator.registerCallback(cds);
        while (true) {
            try {
                Thread.sleep(Long.MAX_VALUE);
View Full Code Here

    private static DaemonFrame daemonFrame = new DaemonFrame();
    private static Daemon daemon = null;

    public static void main(String[] args) {
        //Initialize mediator to set up logging and http facilities
        new Mediator();
        DaemonManager daemonManager = new DaemonManager();
        DaemonManager.startDaemon();
        daemonFrame.getOutputTextArea().append("OECSM Daemon started.\n");
        daemonManager.minimizeToTray();
    }
View Full Code Here

     * and then just let the library run and take care of things.
     *
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Mediator mediator = new Mediator();
        while (true) {
            try {
                Thread.sleep(Long.MAX_VALUE);
            } catch (InterruptedException ex) {
            }
View Full Code Here

TOP

Related Classes of ke.go.moh.oec.lib.Mediator

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.