Examples of fail()


Examples of org.apache.geronimo.deployment.plugin.remote.FileUploadProgress.fail()

            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                FileUploadProgress progress = (FileUploadProgress) arg;
                progress.fail(new Exception());
                return true;
            }
        });
       
        startVerification();
View Full Code Here

Examples of org.apache.geronimo.deployment.plugin.remote.FileUploadProgress.fail()

            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                FileUploadProgress progress = (FileUploadProgress) arg;
                progress.fail("message");
                return true;
            }
        });
       
        startVerification();
View Full Code Here

Examples of org.apache.geronimo.deployment.plugin.remote.FileUploadProgress.fail()

            public void describeWith(ExpressionDescriber arg) throws IOException {
            }

            public boolean passes(Object arg) {
                FileUploadProgress progress = (FileUploadProgress) arg;
                progress.fail(new Exception());
                return true;
            }
        });
       
        startVerification();
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.rulers.ExtensionPointHelper.fail()

    IConfigurationElement[] targetEditors= element.getChildren(TARGET_EDITOR);
    IConfigurationElement[] targetContentTypes= element.getChildren(TARGET_CONTENT_TYPE);
    IConfigurationElement[] targetClasses= element.getChildren(TARGET_CLASS);

    if (targetContentTypes.length + targetEditors.length + targetClasses.length == 0) {
      helper.fail(RulerColumnMessages.RulerColumnDescriptor_missing_target_msg);
      fTarget= null; // dummy
    } else {
      RulerColumnTarget combined= null;
      for (int i= 0; i < targetEditors.length; i++) {
        IConfigurationElement targetEditor= targetEditors[i];
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.fail()

                  final RemotingConnectionImpl conn = (RemotingConnectionImpl)((ClientSessionInternal)session).getConnection();

                  // True means... fail session
                  if (poll)
                  {
                     conn.fail(new HornetQException(HornetQException.NOT_CONNECTED, "poop"));
                  }
                  else
                  {
                     // false means... finish thread
                     break;
View Full Code Here

Examples of org.hornetq.spi.core.protocol.RemotingConnection.fail()

               for (Object id : idsToRemove)
               {
                  RemotingConnection conn = removeConnection(id);
                  if (conn != null)
                  {
                     conn.fail(HornetQMessageBundle.BUNDLE.clientExited(conn.getRemoteAddress()));
                  }
               }

               if (latch.await(pauseInterval, TimeUnit.MILLISECONDS))
                  return;
View Full Code Here

Examples of org.hornetq.spi.core.protocol.RemotingConnection.fail()

         // Now we will simulate a failure of the bridge connection between server0 and server1
         Bridge bridge = server0.getClusterManager().getBridges().get(bridgeName);
         RemotingConnection forwardingConnection = getForwardingConnection(bridge);
         InVMConnector.failOnCreateConnection = true;
         InVMConnector.numberOfFailures = reconnectAttempts - 1;
         forwardingConnection.fail(new HornetQException(HornetQException.NOT_CONNECTED));

         forwardingConnection = getForwardingConnection(bridge);
         forwardingConnection.fail(new HornetQException(HornetQException.NOT_CONNECTED));

         final int numMessages = 10;
View Full Code Here

Examples of org.hornetq.spi.core.protocol.RemotingConnection.fail()

         InVMConnector.failOnCreateConnection = true;
         InVMConnector.numberOfFailures = reconnectAttempts - 1;
         forwardingConnection.fail(new HornetQException(HornetQException.NOT_CONNECTED));

         forwardingConnection = getForwardingConnection(bridge);
         forwardingConnection.fail(new HornetQException(HornetQException.NOT_CONNECTED));

         final int numMessages = 10;

         SimpleString propKey = new SimpleString("propkey");
View Full Code Here

Examples of org.hornetq.spi.core.protocol.RemotingConnection.fail()

         Bridge bridge = server0.getClusterManager().getBridges().get(bridgeName);
         RemotingConnection forwardingConnection = getForwardingConnection(bridge);
         InVMConnector.failOnCreateConnection = true;
         InVMConnector.numberOfFailures = reconnectAttempts - 1;
         forwardingConnection.fail(new HornetQException(HornetQException.NOT_CONNECTED));

         final int numMessages = 10;

         SimpleString propKey = new SimpleString("propkey");
View Full Code Here

Examples of org.hornetq.spi.core.protocol.RemotingConnection.fail()

         // Fail again - should reconnect
         forwardingConnection = ((BridgeImpl)bridge).getForwardingConnection();
         InVMConnector.failOnCreateConnection = true;
         InVMConnector.numberOfFailures = reconnectAttempts - 1;
         forwardingConnection.fail(new HornetQException(HornetQException.NOT_CONNECTED));

         for (int i = 0; i < numMessages; i++)
         {
            ClientMessage message = session0.createMessage(false);
            message.putIntProperty(propKey, i);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.