Examples of Chunk


Examples of org.bukkit.Chunk

          TrainProperties.remove(wg.name);
          for (OfflineMember wm : wg.members) {
            containedMinecarts.remove(wm.entityUID);
            // Load the chunk this minecart is in and remove it
            // We already de-linked the group map, so no worry for replacements
            Chunk chunk = world.getChunkAt(wm.cx, wm.cz);
            Iterator<Entity> iter = WorldUtil.getEntities(chunk).iterator();
            while (iter.hasNext()) {
              Entity next = iter.next();
              if (next.getUniqueId().equals(wm.entityUID)) {
                next.remove();
View Full Code Here

Examples of org.bukkit.Chunk

  }

  public MinecartMember<?> create(World world) {
    MinecartMember<?> mm = null;
    // first try to find it in the chunk
    Chunk c = world.getChunkAt(cx, cz);
    for (Entity e : WorldUtil.getEntities(c)) {
      if (e instanceof Minecart && e.getUniqueId().equals(this.entityUID)) {
        mm = MinecartMemberStore.convert((Minecart) e);
        break;
      }
View Full Code Here

Examples of org.hive2hive.core.model.Chunk

    KeyPair encryptionKeys = EncryptionUtil.generateRSAKeyPair(H2HConstants.KEYLENGTH_CHUNK);
    KeyPair protectionKeysOld = EncryptionUtil.generateRSAKeyPair();
    KeyPair protectionKeysNew = EncryptionUtil.generateRSAKeyPair();

    // generate a fake chunk
    Chunk chunk = new Chunk(proxy.getNodeId(), NetworkTestUtil.randomString().getBytes(), 0);
    // encrypt the chunk
    HybridEncryptedContent encryptedChunk = H2HEncryptionUtil.encryptHybrid(chunk,
        encryptionKeys.getPublic());

    // initialize put
    Parameters parameters = new Parameters().setLocationKey(chunk.getId())
        .setContentKey(H2HConstants.FILE_CHUNK).setProtectionKeys(protectionKeysOld)
        .setData(encryptedChunk);
    // indicate to generate hash
    parameters.setHashFlag(true);
    // put encrypted chunk into network
View Full Code Here

Examples of org.jberet.job.Chunk

                stepExecution.incrementStartCount();
                batchContext.setBatchStatus(BatchStatus.STARTED);
                jobContext.getJobRepository().addStepExecution(jobContext.getJobExecution(), stepExecution);

                Chunk chunk = step.getChunk();
                Batchlet batchlet = step.getBatchlet();
                if (chunk == null && batchlet == null) {
                    batchContext.setBatchStatus(BatchStatus.ABANDONED);
                    LOGGER.stepContainsNoChunkOrBatchlet(id);
                    return;
View Full Code Here

Examples of org.jberet.job.model.Chunk

                }

                batchContext.setBatchStatus(BatchStatus.STARTED);
                jobContext.getJobRepository().addStepExecution(jobContext.getJobExecution(), stepExecution);

                final Chunk chunk = step.getChunk();
                final RefArtifact batchlet = step.getBatchlet();
                if (chunk == null && batchlet == null) {
                    batchContext.setBatchStatus(BatchStatus.ABANDONED);
                    LOGGER.stepContainsNoChunkOrBatchlet(id);
                    return;
View Full Code Here

Examples of org.luaj.vm2.ast.Chunk

          "pkg="+inf.javapackage+" file="+inf.javaclassname+".java dest="+inf.outfile+" src="+inf.infile);
      FileInputStream in = new FileInputStream(inf.infile);
      FileOutputStream out = new FileOutputStream(inf.outfile);
      PrintWriter pw = new PrintWriter(out);
        LuaParser parser = new LuaParser(in,encoding);
        Chunk chunk = parser.Chunk();
      new JavaCodeGen(chunk,pw,inf.javapackage,inf.javaclassname);
      pw.close();
      out.close();
      in.close();
    } catch ( Throwable t ) {
View Full Code Here

Examples of org.prevayler.foundation.Chunk

  public TransactionTimestamp cleanCopy() {
    return new TransactionTimestamp(_capsule.cleanCopy(), _systemVersion, _executionTime);
  }

  public Chunk toChunk() {
    Chunk chunk = _capsule.toChunk();
    chunk.setParameter("systemVersion", String.valueOf(_systemVersion));
    chunk.setParameter("executionTime", String.valueOf(_executionTime));
    return chunk;
  }
View Full Code Here

Examples of org.spout.api.geo.cuboid.Chunk

  @Permissible ("vanilla.command.debug")
  @Filter (PlayerFilter.class)
  public void chunkLight(Player player, CommandArguments args) throws CommandException {
    args.assertCompletelyParsed();

    Chunk c = player.getChunk();
    if (c == null) {
      throw new CommandException("You are somenow in a null chunk. This is probably bad.");
    }
    LightingVerification.checkChunk(c, false);
  }
View Full Code Here

Examples of org.suigeneris.jrcs.diff.delta.Chunk

        private void updateState( Delta delta )
        {
            m_index++;

            Chunk orig = delta.getOriginal();

            if (orig.first() > m_firstElem)
            {
                // We "skip" some lines in the output.
                // So flush out the last Change, if one exists.
                flushChanges();

                // Allow us to "skip" large swaths of unchanged text, show a "limited" amound of
                // unchanged context so the changes are shown in
                if ((orig.first() - m_firstElem) > 2 * m_unchangedContextLimit)
                {
                    if (m_firstElem > 0)
                    {
                        int endIndex = Math.min( m_firstElem + m_unchangedContextLimit, m_origStrings.length -1 );

                        for (int j = m_firstElem; j < endIndex; j++)
                            m_sb.append(m_origStrings[j]);

                        m_sb.append(m_elidedTailIndicatorHtml);
                    }

                    m_sb.append(m_elidedHeadIndicatorHtml);

                    int startIndex = Math.max(orig.first() - m_unchangedContextLimit, 0);
                    for (int j = startIndex; j < orig.first(); j++)
                        m_sb.append(m_origStrings[j]);

                }
                else
                {
                    // No need to skip anything, just output the whole range...
                    for (int j = m_firstElem; j < orig.first(); j++)
                    m_sb.append( m_origStrings[j] );
                }
            }
            m_firstElem = orig.last() + 1;
        }
View Full Code Here

Examples of org.syncany.chunk.Chunk

    MultiChunk customMultiChunk = createNewMultiChunk(tempDir, customMultiChunker, transformer);

    for (File file : files) {
      Enumeration<Chunk> chunks = foc.createChunks(file);
      while (chunks.hasMoreElements()) {
        Chunk chunk = chunks.nextElement();
        customMultiChunk.write(chunk);

        if (customMultiChunk.isFull()) {
          customMultiChunk.close();
          resultMultiChunks.add(customMultiChunk);
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.