Package org.apache.airavata.gfac.core.notification

Examples of org.apache.airavata.gfac.core.notification.MonitorPublisher


            }
        } catch (ApplicationSettingsException e) {
            e.printStackTrace();
        }
        try {
            publisher = new MonitorPublisher(new EventBus());
            BetterGfacImpl.setMonitorPublisher(publisher);
            registry = RegistryFactory.getDefaultRegistry();
            setGatewayProperties();
            BetterGfacImpl.startDaemonHandlers();
            BetterGfacImpl.startStatusUpdators(registry,zk,publisher);
View Full Code Here


    @Test
    public void testLocalProvider() throws GFacException,GFacProviderException {
        LocalDirectorySetupHandler localDirectorySetupHandler = new LocalDirectorySetupHandler();
        localDirectorySetupHandler.invoke(jobExecutionContext);
        LocalProvider localProvider = new LocalProvider();
        localProvider.setMonitorPublisher(new MonitorPublisher(new EventBus()));
        localProvider.initialize(jobExecutionContext);
        localProvider.execute(jobExecutionContext);
        localProvider.dispose(jobExecutionContext);
    }
View Full Code Here

        this.registry = registry;
        this.airavataAPI = airavataAPI;
        this.airavataRegistry2 = airavataRegistry2;
        daemonHandlers = new ArrayList<ThreadedHandler>();
        activityListeners = new ArrayList<AbstractActivityListener>();
        monitorPublisher = new MonitorPublisher(new EventBus());     // This is a EventBus common for gfac
        startStatusUpdators();
        startDaemonHandlers();
    }
View Full Code Here

    private AuthenticationInfo authenticationInfo;

    public HPCPullMonitor() {
        connections = new HashMap<String, ResourceConnection>();
        this.queue = new LinkedBlockingDeque<UserMonitorData>();
        publisher = new MonitorPublisher(new EventBus());
    }
View Full Code Here

    @Test
    public void testLocalProvider() throws GFacException,GFacProviderException {
        LocalDirectorySetupHandler localDirectorySetupHandler = new LocalDirectorySetupHandler();
        localDirectorySetupHandler.invoke(jobExecutionContext);
        LocalProvider localProvider = new LocalProvider();
        localProvider.setMonitorPublisher(new MonitorPublisher(new EventBus()));
        localProvider.initialize(jobExecutionContext);
        localProvider.execute(jobExecutionContext);
        localProvider.dispose(jobExecutionContext);
    }
View Full Code Here

        this.finishQueue = finishQueue;          // these will be initialized by the MonitorManager
        this.availableChannels = new HashMap<String, Channel>();
        this.connectionName = connectionName;
        this.proxyPath = proxyPath;
        this.amqpHosts = hosts;
        this.localPublisher = new MonitorPublisher(new EventBus());
        this.localPublisher.registerListener(this);
    }
View Full Code Here

    public void initialize(String proxyPath, String connectionName, List<String> hosts) {
        this.availableChannels = new HashMap<String, Channel>();
        this.connectionName = connectionName;
        this.proxyPath = proxyPath;
        this.amqpHosts = hosts;
        this.localPublisher = new MonitorPublisher(new EventBus());
        this.localPublisher.registerListener(this);
    }
View Full Code Here

    private MonitorPublisher publisher;

    public HPCPullMonitor(){
        connections = new HashMap<String, ResourceConnection>();
        this.queue = new LinkedBlockingDeque<UserMonitorData>();
        publisher = new MonitorPublisher(new EventBus());
    }
View Full Code Here

            System.out.println(">>>>>> Please run tests with my proxy user name and password. " +
                    "E.g :- mvn clean install -Dmyproxy.username=xxx -Dmyproxy.password=xxx -Dgsi.working.directory=/path<<<<<<<");
            throw new Exception("Need my proxy user name password to run tests.");
        }

        monitorPublisher =  new MonitorPublisher(new EventBus());
        class InnerClassQstat {

            @Subscribe
            private void getStatus(JobStatusChangeRequest status) {
                Assert.assertNotNull(status);
View Full Code Here

            System.out.println(">>>>>> Please run tests with my proxy user name and password. " +
                    "E.g :- mvn clean install -Dmyproxy.user=xxx -Dmyproxy.password=xxx -Dgsi.working.directory=/path<<<<<<<");
            throw new Exception("Need my proxy user name password to run tests.");
        }

        monitorPublisher =  new MonitorPublisher(new EventBus());
        pushQueue = new LinkedBlockingQueue<MonitorID>();
        finishQueue = new LinkedBlockingQueue<MonitorID>();


        final AMQPMonitor amqpMonitor = new
View Full Code Here

TOP

Related Classes of org.apache.airavata.gfac.core.notification.MonitorPublisher

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.