Package eu.mosaic_cloud.components.core

Examples of eu.mosaic_cloud.components.core.ComponentAcquireReply


      Preconditions.checkArgument (correlationValue instanceof String, "invalid correlation attribute `%s`", correlationValue);
      final String correlation = (String) correlationValue;
      final Object okValue = message.metaData.get (Token.Ok.string);
      Preconditions.checkNotNull (okValue, "missing ok attribute");
      Preconditions.checkArgument (okValue instanceof Boolean, "invalid ok attribute `%s`", okValue);
      final ComponentAcquireReply reply;
      if (Boolean.TRUE.equals (okValue)) {
        // FIXME: Someone should refactor this code... (at least...)
        final Object descriptorsValue = message.metaData.get (Token.Descriptors.string);
        Preconditions.checkArgument (message.metaData.containsKey (Token.Descriptors.string), "missing descriptors attribute");
        Preconditions.checkArgument (descriptorsValue instanceof Map, "mismatched descriptors attribute `%s`", descriptorsValue);
View Full Code Here


      CloudletComponent.this.fsm.new FsmFutureCompletionAccess<ComponentAcquireReply> () {
        @Override
        protected final Void execute (final Future<ComponentAcquireReply> future1)
        {
          Preconditions.checkState (future == future1);
          final ComponentAcquireReply reply;
          try {
            reply = future.get ();
          } catch (final Throwable exception) {
            CloudletComponent.this.exceptions.traceDeferredException (exception, "acquiring the resource `%s` failed; deferring!", resource.identifier);
            completionFuture.trigger.triggerFailed (exception);
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.components.core.ComponentAcquireReply

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.