Examples of timedOut()


Examples of bitronix.tm.BitronixTransaction.timedOut()

        BitronixTransaction currentTransaction = currentTransaction();
        ResourceBean bean = xaResourceHolder.getResourceBean();
        if (log.isDebugEnabled()) log.debug("enlisting " + xaResourceHolder + " into " + currentTransaction);

        if (currentTransaction != null) {
            if (currentTransaction.timedOut())
                throw new BitronixSystemException("transaction timed out");

            // in case multiple unjoined branches of the current transaction have run on the resource,
            // only the last one counts as all the first ones are ended already
            XAResourceHolderState alreadyEnlistedXAResourceHolderState = TransactionContextHelper.getLatestAlreadyEnlistedXAResourceHolderState(xaResourceHolder, currentTransaction);
View Full Code Here

Examples of com.sun.jdi.event.MonitorWaitedEvent.timedout()

                    else if ( event instanceof MonitorWaitedEvent )
                    {
                        MonitorWaitedEvent waitedEvent = (MonitorWaitedEvent) event;
                        handler.onMonitorEndWait( suspension, event.virtualMachine(), waitedEvent.thread(),
                                                  (MonitorWaitedRequest) event.request(), waitedEvent.monitor(),
                                                  waitedEvent.timedout(), waitedEvent.location() );
                    }
                    else if ( event instanceof ExceptionEvent )
                    {
                        ExceptionEvent exceptionEvent = (ExceptionEvent) event;
                        handler.onExceptionThrown( suspension, exceptionEvent.virtualMachine(), exceptionEvent.thread(),
View Full Code Here

Examples of com.volantis.shared.net.impl.TimingOutTask.timedOut()

                connection.open();
            }
            statusCode = method.execute(httpState, connection);
           
        } catch (Exception e) {
            if (task != null && task.timedOut()) {

                // Assume that the exception occurred because of the
                // timeout.
                // todo create a more specific exception that encapsulates the
                // todo URL, the timeout and the actual elapsed time.
View Full Code Here

Examples of hudson.plugins.perforce.utils.TimedStreamCloser.timedOut()

                                if(filter.reject(line)) continue;
                                lines.add(line);
                                totalLength += line.length();
                                count++;
                            }
                            if(timedStreamCloser.timedOut()) {
                                throw new PerforceException("Perforce operation timed out after " + timeout + " seconds.");
                            }
      }
      catch(IOException ioe)
      {
View Full Code Here

Examples of org.apache.hadoop.ipc.Server.Connection.timedOut()

   
    synchronized private void cleanupIdleConnections(String serverName) {
      long currentTime = System.currentTimeMillis();
      for (int i = 0; i < connectionArray.size();) {
        Connection c = connectionArray.get(i);
        if (c.timedOut(currentTime)) {
          if (Server.LOG.isDebugEnabled()) {
            Server.LOG.debug(serverName + ": disconnecting client "
                + c.getHostAddress());
          }
          closeConnectionWithoutException(c);
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse.timedOut()

        for (int i = 0; i < 100; i++) {
            int index = i % nodes.length;
            nodes[index].close();

            ClusterHealthResponse health = client.admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
            if (health.timedOut()) {
                System.err.println("timed out on health");
            }

            nodes[index] = NodeBuilder.nodeBuilder().node();
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse.timedOut()

            }

            nodes[index] = NodeBuilder.nodeBuilder().node();

            health = client.admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
            if (health.timedOut()) {
                System.err.println("timed out on health");
            }
        }

        latch.await();
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse.timedOut()

            }
            System.out.println("--> Indexing took " + stopWatch.totalTime() + ", TPS " + (((double) (COUNT * (1 + CHILD_COUNT))) / stopWatch.totalTime().secondsFrac()));
        } catch (Exception e) {
            System.out.println("--> Index already exists, ignoring indexing phase, waiting for green");
            ClusterHealthResponse clusterHealthResponse = client.admin().cluster().prepareHealth().setWaitForGreenStatus().setTimeout("10m").execute().actionGet();
            if (clusterHealthResponse.timedOut()) {
                System.err.println("--> Timed out waiting for cluster health");
            }
        }
        client.admin().indices().prepareRefresh().execute().actionGet();
        System.out.println("--> Number of docs in index: " + client.prepareCount().setQuery(matchAllQuery()).execute().actionGet().count());
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse.timedOut()

                ClusterHealthResponse clusterHealth = client.client().admin().cluster().prepareHealth()
                        .setWaitForGreenStatus()
                        .setWaitForNodes(Integer.toString(numberOfNodes + 0 /* client node*/))
                        .setWaitForRelocatingShards(0)
                        .setTimeout("10m").execute().actionGet();
                if (clusterHealth.timedOut()) {
                    logger.warn("timed out waiting for green status....");
                }
            } catch (Exception e) {
                logger.warn("failed to execute cluster health....");
            }
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse.timedOut()

                ClusterHealthResponse clusterHealth = client.client().admin().cluster().prepareHealth()
                        .setWaitForGreenStatus()
                        .setWaitForNodes(Integer.toString(numberOfNodes + 1 /* client node*/))
                        .setWaitForRelocatingShards(0)
                        .setTimeout("10m").execute().actionGet();
                if (clusterHealth.timedOut()) {
                    logger.warn("timed out waiting for green status....");
                }
            } catch (Exception e) {
                logger.warn("failed to execute cluster health....");
            }
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.