Examples of abort()


Examples of org.eclipse.jetty.client.api.Response.abort()

        Assert.assertEquals(200, response.getStatus());

        // Wait until we block
        Assert.assertTrue(waitLatch.await(5, TimeUnit.SECONDS));
        // Fail the response
        response.abort(new Exception());
        closeLatch.countDown();

        // Be sure we're not stuck waiting
        Assert.assertTrue(waitedLatch.await(5, TimeUnit.SECONDS));
    }
View Full Code Here

Examples of org.eclipse.osgi.storagemanager.ManagedOutputStream.abort()

        permissionStorage.setDirty(false);
        error = false;
      } finally {
        // if something happens, don't close a corrupt file
        if (error) {
          fmos.abort();
          try {
            out.close();
          } catch (IOException e) {/*ignore*/
          }
        }
 
View Full Code Here

Examples of org.elasticsearch.index.snapshots.IndexShardSnapshotStatus.abort()

                    SnapshotShards snapshotShards = shardSnapshots.get(entry.snapshotId());
                    if (snapshotShards != null) {
                        for (Map.Entry<ShardId, SnapshotMetaData.ShardSnapshotStatus> shard : entry.shards().entrySet()) {
                            IndexShardSnapshotStatus snapshotStatus = snapshotShards.shards.get(shard.getKey());
                            if (snapshotStatus != null) {
                                snapshotStatus.abort();
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.exist.storage.txn.TransactionManager.abort()

            root.addBinaryResource(transaction, broker, XmldbURI.create(name), data.getBytes(), "application/xquery");

            transact.commit(transaction);
        } catch (Exception e) {
            if (transact != null)
                transact.abort(transaction);
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            pool.release(broker);
        }
View Full Code Here

Examples of org.fireflow.engine.IProcessInstance.abort()

  public IProcessInstance abortProcessInstance(String processInstanceId)
      throws EngineException {
    IProcessInstance processInstance = this
        .findProcessInstanceById(processInstanceId);
    processInstance.abort();
    return processInstance;
  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#claimWorkItem(java.lang.String)
View Full Code Here

Examples of org.ggp.base.server.GameServer.abort()

  public synchronized void abortOngoingMatch(String matchID) {
    if (gameServers.containsKey(matchID)) {
      GameServer server = gameServers.get(matchID).get();
      if (server != null) {
        server.abort();
      }
    }
  }

  private synchronized void doSchedule(PendingMatch spec) {
View Full Code Here

Examples of org.jboss.security.authorization.AuthorizationModule.abort()

   {
      int length = modules.size();
      for(int i = 0; i < length; i++)
      {
         AuthorizationModule module = (AuthorizationModule)modules.get(i);
         boolean bool = module.abort();
         if(!bool)
            throw new AuthorizationException("abort on modules failed:"+module.getClass());
      }
      modules.clear();
   }
View Full Code Here

Examples of org.locationtech.geogig.api.GeogigTransaction.abort()

        } catch (Exception e) {
            abort = true;
            throw Throwables.propagate(e);
        } finally {
            if (abort) {
                tx.abort();
            }
        }
    }

    // Deliberately leaving the @Override annotation commented out so that the class builds
View Full Code Here

Examples of org.nasutekds.server.replication.server.DraftCNDB.DraftCNDBCursor.abort()

        cursor.close();
        done = true;
      }
      catch (LockConflictException e)
      {
        cursor.abort();
        if (tries == DEADLOCK_RETRIES)
        {
          // could not handle the Deadlock after DEADLOCK_RETRIES tries.
          // shutdown the ReplicationServer.
          shutdown = true;
View Full Code Here

Examples of org.nasutekds.server.replication.server.ReplicationDB.ReplServerDBCursor.abort()

      }
    }
    finally
    {
      if (cursor != null)
        cursor.abort();
    }
    return count;
  }

  /**
 
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.