Examples of CancelRequest


Examples of org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest

    {
        CancelDecoder decoder = new CancelDecoder();

        try
        {
            CancelRequest cancel = decoder.decode( requestValue );

            if ( requestValue != null )
            {
                this.requestValue = new byte[requestValue.length];
                System.arraycopy( requestValue, 0, this.requestValue, 0, requestValue.length );
            }
            else
            {
                this.requestValue = null;
            }

            cancelRequest.setCancelId( cancel.getCancelId() );
        }
        catch ( DecoderException e )
        {
            LOG.error( I18n.err( I18n.ERR_04165 ), e );
            throw new RuntimeException( e );
View Full Code Here

Examples of org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest

    public CancelRequest decode( byte[] stream ) throws DecoderException
    {
        ByteBuffer bb = ByteBuffer.wrap( stream );
        CancelContainer container = new CancelContainer();
        decoder.decode( bb, container );
        CancelRequest cancel = container.getCancel();

        // Clean the container for the next decoding
        container.clean();

        return cancel;
View Full Code Here

Examples of org.jruby.pg.internal.messages.CancelRequest

  public void cancel() throws IOException {
    SocketChannel closeChannel = SocketChannel.open();
    closeChannel.configureBlocking(true);
    closeChannel.connect(new InetSocketAddress(host, port));
    ByteBuffer bytes = new CancelRequest(backendKeyData.getPid(), backendKeyData.getSecret()).toBytes();
    closeChannel.write(bytes);
    closeChannel.close();
  }
View Full Code Here

Examples of org.nasutekds.server.types.CancelRequest

    }
    else
    {
      try
      {
        CancelRequest cancelRequest =
          new CancelRequest(true, INFO_CANCELED_BY_SHUTDOWN.get());
        operation.cancel(cancelRequest);
      }
      catch (Exception e)
      {
        if (debugEnabled())
View Full Code Here

Examples of org.nasutekds.server.types.CancelRequest


    // Create the cancel request for the target operation.
    Message cancelReason =
        INFO_EXTOP_CANCEL_REASON.get(operation.getMessageID());
    CancelRequest cancelRequest = new CancelRequest(true, cancelReason);


    // Get the client connection and attempt the cancel.
    ClientConnection clientConnection = operation.getClientConnection();
    CancelResult cancelResult = clientConnection.cancelOperation(idToCancel,
View Full Code Here

Examples of org.nasutekds.server.types.CancelRequest

    }
    else
    {
      try
      {
        CancelRequest cancelRequest =
          new CancelRequest(true, INFO_CANCELED_BY_SHUTDOWN.get());
        operation.cancel(cancelRequest);
      }
      catch (Exception e)
      {
        if (debugEnabled())
View Full Code Here

Examples of org.nasutekds.server.types.CancelRequest

    shutdownRequested = true;


    // Send responses to any operations in the pending queue to indicate that
    // they won't be processed because the server is shutting down.
    CancelRequest cancelRequest = new CancelRequest(true, reason);
    ArrayList<Operation> pendingOperations = new ArrayList<Operation>();
    opQueue.removeAll(pendingOperations);

    for (Operation o : pendingOperations)
    {
View Full Code Here

Examples of sherpa.protocol.CancelRequest

  public List<String> getVars() {
    return this.vars;
  }

  public void cancel() {
    CancelRequest cancelRequest = new CancelRequest();
    cancelRequest.queryId = queryId;

    try {
      server.cancel(cancelRequest);
    } catch (AvroRemoteException e) {
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.