Examples of invalidate()


Examples of net.minecraft.tileentity.TileEntity.invalidate()

              }
              //If AE is installed, use its handler
            } else if (api != null) {
              if (api.registries().moveable().askToMove(passenger)) {
                worldObj.setBlock(targetX, yCoord + 1, targetZ, worldObj.getBlock(xCoord, yCoord + 1, zCoord), worldObj.getBlockMetadata(xCoord, yCoord + 1, zCoord), 3);
                passenger.invalidate();
                worldObj.setBlockToAir(xCoord, yCoord + 1, zCoord);
                api.registries().moveable().getHandler(passenger).moveTile(passenger, worldObj, targetX, yCoord + 1, targetZ);
                api.registries().moveable().doneMoving(passenger);
                passenger.validate();
              }
View Full Code Here

Examples of net.zschech.gwt.comet.server.CometSession.invalidate()

          catch (InterruptedException e) {
            throw new InterruptedIOException();
          }
         
          if (cometSession != null) {
            cometSession.invalidate();
          }
          else {
            if (!cometResponse.isTerminated()) {
              log("Sending terminate");
              cometResponse.terminate();
View Full Code Here

Examples of org.apache.accumulo.core.iterators.ScanCache.invalidate()

        Text row = new Text(String.format("row_%06d", startRow + 1));
        Key k = new Key(row, columnf, columnq, security, System.currentTimeMillis());
        final byte[] valBytes = ("added value " + k.toString()).getBytes();
        final Value dibw = new Value(valBytes);
        m.put(k, dibw);
        sc.invalidate(k);
        System.out.println("Added row " + k + ", " + dibw);
      }
      if (skipStartRow) {
        System.out.println("Scanning after " + startRow);
      } else {
View Full Code Here

Examples of org.apache.cayenne.ValueHolder.invalidate()

    }

    public void invalidate() {
        ValueHolder h = getWrappedValueHolder();
        if (h != null) {
            h.invalidate();
        }
    }

    /**
     * Changes list state to "dirty" forcing reordering on next access.
View Full Code Here

Examples of org.apache.cayenne.modeler.util.EntityTreeModel.invalidate()

            /**
             * Update the view
             */
            EntityTreeModel treeModel = (EntityTreeModel) pathBrowser.getModel();
            treeModel.invalidate();

            pathBrowser.setSelectionPath(new TreePath(new Object[] {
                getStartEntity()
            }));
            pathBrowser.repaint();
View Full Code Here

Examples of org.apache.cocoon.environment.Session.invalidate()

        Session session = request.getSession(false);
        if (session != null) {
            if (force == true
                || this.hasSessionContext() == false) {
                synchronized(session) {
                    session.invalidate();
                }
            }
        }
        if (this.getLogger().isDebugEnabled() == true) {
            this.getLogger().debug("END terminateSession");
View Full Code Here

Examples of org.apache.commons.httpclient.auth.AuthState.invalidate()

    private boolean processWWWAuthChallenge(final HttpMethod method)
        throws MalformedChallengeException, AuthenticationException 
    {
        AuthState authstate = method.getHostAuthState();
        if (authstate.isPreemptive()) {
            authstate.invalidate();
            authstate.setAuthRequested(true);
        }
        Map challenges = AuthChallengeParser.parseChallenges(
            method.getResponseHeaders(WWW_AUTH_CHALLENGE));
        if (challenges.isEmpty()) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.invalidate()

    FSDatasetInterface fsdataset = new SimulatedFSDataset(conf);
    int bytesAdded = addSomeBlocks(fsdataset);
    Block[] deleteBlocks = new Block[2];
    deleteBlocks[0] = new Block(1, 0, 0);
    deleteBlocks[1] = new Block(2, 0, 0);
    fsdataset.invalidate(deleteBlocks);
    checkInvalidBlock(deleteBlocks[0]);
    checkInvalidBlock(deleteBlocks[1]);
    long sizeDeleted = blockIdToLen(1) + blockIdToLen(2);
    assertEquals(bytesAdded-sizeDeleted, fsdataset.getDfsUsed());
    assertEquals(fsdataset.getCapacity()-bytesAdded+sizeDeleted,  fsdataset.getRemaining());
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.SimulatedFSDataset.invalidate()

    FSDatasetInterface fsdataset = new SimulatedFSDataset(conf);
    int bytesAdded = addSomeBlocks(fsdataset);
    Block[] deleteBlocks = new Block[2];
    deleteBlocks[0] = new Block(1, 0, 0);
    deleteBlocks[1] = new Block(2, 0, 0);
    fsdataset.invalidate(deleteBlocks);
    checkInvalidBlock(deleteBlocks[0]);
    checkInvalidBlock(deleteBlocks[1]);
    long sizeDeleted = blockIdToLen(1) + blockIdToLen(2);
    assertEquals(bytesAdded-sizeDeleted, fsdataset.getDfsUsed());
    assertEquals(fsdataset.getCapacity()-bytesAdded+sizeDeleted,  fsdataset.getRemaining());
View Full Code Here

Examples of org.apache.http.nio.protocol.HttpAsyncClientProtocolHandler.HttpExchange.invalidate()

        HttpExchange httpExchange = this.protocolHandler.new HttpExchange();
        HttpRequest request = new BasicHttpRequest("GET", "/");
        httpExchange.setRequest(request);
        BasicHttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200, "OK");
        httpExchange.setResponse(response);
        httpExchange.invalidate();
        httpExchange.setHandler(this.exchangeHandler);
        this.connContext.setAttribute(HttpAsyncClientProtocolHandler.HTTP_EXCHANGE, httpExchange);
        Mockito.when(this.decoder.isCompleted()).thenReturn(true);

        this.protocolHandler.inputReady(this.conn, this.decoder);
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.