Package edu.indiana.extreme.xbaya.event

Examples of edu.indiana.extreme.xbaya.event.Event


        if (this.gui) {
            this.engine = new XBayaEngine(this.configuration);
            this.graphCanvas = this.engine.getGUI().getGraphCanvas();
            this.graphCanvas.setWorkflow(workflow);
            monitor = this.engine.getMonitor();
            this.engine.getGUI().eventReceived(new Event(Type.MONITOR_STARTED));
            repaintAndWait(2);
        } else {
            MonitorConfiguration monitorConfiguration = new MonitorConfiguration(
                    this.configuration.getBrokerURL(), this.configuration
                            .getTopic(), this.configuration.isPullMode(),
View Full Code Here


    public synchronized void connect() throws WorkflowEngineException {
        if (this.engineURL == null) {
            if (this.client != null) {
                this.client = null;
                sendSafeEvent(new Event(Event.Type.GPEL_ENGINE_DISCONNECTED));
            }
            return;
        }

        logger.finest("Connecting a GPEL Engine at " + this.engineURL);
        try {
            Transport transport;
            if (isSecure()) {
                if (this.gpelUserX509Credential == null) {
                    logger.finest("Using ssl without any credential.");
                    this.gpelUserX509Credential = new GpelUserX509Credential(
                            null, XBayaSecurity.getTrustedCertificates());
                }
                transport = new Transport(this.gpelUserX509Credential);
            } else {
                // This one is phasing out.
                GpelUserCredentials credentials = new GpelUserCredentials(
                        "user", "password");
                transport = new Transport(credentials);
            }
            this.client = new GpelClient(this.engineURL, transport);
            this.client.setFilter(this.linksFilter);
            sendSafeEvent(new Event(Event.Type.GPEL_ENGINE_CONNECTED));
        } catch (RuntimeException e) {
            this.client = null;
            sendSafeEvent(new Event(Event.Type.GPEL_ENGINE_DISCONNECTED));
            throw new WorkflowEngineException(ErrorMessages.GPEL_CONNECTION_ERROR, e);
        }
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.event.Event

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.