Package eu.mosaic_cloud.connectors.tools

Examples of eu.mosaic_cloud.connectors.tools.ConnectorEnvironment


    final Class<?> cloudletContextClass = this.resolveCloudletStateClass ();
    final IConfiguration cloudletConfiguration = this.resolveCloudletConfiguration ();
    // FIXME: Currently exceptions from cloudlets are not deferred anywhere.
    //-- Thus any deferred exception should be treated as an ignored one.
    final ExceptionTracer exceptions = new CloudletExceptionTracer ();
    final ConnectorEnvironment connectorEnvironment = ConnectorEnvironment.create (this.reactor, this.threading, exceptions, this.channelFactory, this.channelResolver);
    final IConnectorsFactory connectorFactory = DefaultConnectorsFactory.create (connectorEnvironment, null);
    final CloudletEnvironment environment = CloudletEnvironment.create (cloudletConfiguration, cloudletCallbacksClass, cloudletContextClass, this.classLoader, connectorFactory, connectorEnvironment, this.componentConnector, this.reactor, this.threading, exceptions);
    final Cloudlet<?> cloudlet = Cloudlet.create (environment);
    return (cloudlet);
  }
View Full Code Here


    scenario.threading.initialize ();
    scenario.reactor = BasicCallbackReactor.create (scenario.threading, scenario.exceptions);
    scenario.reactor.initialize ();
    scenario.callbacksClass = callbacksClass;
    scenario.contextClass = contextClass;
    final ConnectorEnvironment connectorEnvironment = ConnectorEnvironment.create (scenario.reactor, scenario.threading, scenario.exceptions, connectorChannelFactory, connectorChannelResolver);
    scenario.connectors = DefaultConnectorsFactory.create (connectorEnvironment, null);
    scenario.environment = CloudletEnvironment.create (scenario.configuration, scenario.callbacksClass, scenario.contextClass, scenario.callbacksClass.getClassLoader (), scenario.connectors, connectorEnvironment, componentConnector, scenario.reactor, scenario.threading, scenario.exceptions);
  }
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.connectors.tools.ConnectorEnvironment

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.