Examples of AbstractInvokable


Examples of eu.stratosphere.nephele.template.AbstractInvokable

   * has to be written to disk.
   */
  @Test
  public void testResettableIterator() {
    try {
      final AbstractInvokable memOwner = new DummyInvokable();
 
      // create the resettable Iterator
      SpillingResettableMutableObjectIterator<Record> iterator = new SpillingResettableMutableObjectIterator<Record>(
        this.reader, this.serializer, this.memman, this.ioman, 2, memOwner);
 
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

   * Tests the resettable iterator with enough memory so that all data is kept locally in memory.
   */
  @Test
  public void testResettableIteratorInMemory() {
    try {
      final AbstractInvokable memOwner = new DummyInvokable();
 
      // create the resettable Iterator
      SpillingResettableMutableObjectIterator<Record> iterator = new SpillingResettableMutableObjectIterator<Record>(
        this.reader, this.serializer, this.memman, this.ioman, 20, memOwner);
     
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

  }

  @Test
  public void testSerialBlockResettableIterator() throws Exception
  {
    final AbstractInvokable memOwner = new DummyInvokable();
    // create the resettable Iterator
    final BlockResettableIterator<Record> iterator = new BlockResettableIterator<Record>(
        this.memman, this.reader, this.serializer, 1, memOwner);
    // open the iterator
    iterator.open();
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

  }

  @Test
  public void testDoubleBufferedBlockResettableIterator() throws Exception
  {
    final AbstractInvokable memOwner = new DummyInvokable();
    // create the resettable Iterator
    final BlockResettableIterator<Record> iterator = new BlockResettableIterator<Record>(
        this.memman, this.reader, this.serializer, 2, memOwner);
    // open the iterator
    iterator.open();
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

  }

  @Test
  public void testTwelveFoldBufferedBlockResettableIterator() throws Exception
  {
    final AbstractInvokable memOwner = new DummyInvokable();
    // create the resettable Iterator
    final BlockResettableIterator<Record> iterator = new BlockResettableIterator<Record>(
        this.memman, this.reader, this.serializer, 12, memOwner);
    // open the iterator
    iterator.open();
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

      // Change state
      executionStateChanged(ExecutionState.CANCELING, null);

      // Request user code to shut down
      try {
        final AbstractInvokable invokable = this.environment.getInvokable();
        if (invokable != null) {
          invokable.cancel();
        }
      } catch (Throwable e) {
        LOG.error(StringUtils.stringifyException(e));
      }
    }
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

    if (segment == null || segment.isFreed() || !(segment instanceof DefaultMemorySegment)) {
      return;
    }
   
    final DefaultMemorySegment defSeg = (DefaultMemorySegment) segment;
    final AbstractInvokable owner = defSeg.owner;
   
    // -------------------- BEGIN CRITICAL SECTION -------------------
    synchronized (this.lock)
    {
      if (this.isShutDown) {
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

        throw new IllegalStateException("Memory manager has been shut down.");
      }

      final Iterator<T> segmentsIterator = segments.iterator();
     
      AbstractInvokable lastOwner = null;
      Set<DefaultMemorySegment> segsForOwner = null;

      // go over all segments
      while (segmentsIterator.hasNext()) {
       
        final MemorySegment seg = segmentsIterator.next();
        if (seg.isFreed()) {
          continue;
        }
       
        final DefaultMemorySegment defSeg = (DefaultMemorySegment) seg;
        final AbstractInvokable owner = defSeg.owner;
       
        try {
          // get the list of segments by this owner only if it is a different owner than for
          // the previous one (or it is the first segment)
          if (lastOwner != owner) {
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

      if (inputSplits.length == 0) {
        continue;
      }

      final AbstractInvokable invokable = groupVertex.getEnvironment().getInvokable();
      if (!(invokable instanceof AbstractInputTask)) {
        LOG.error(groupVertex.getName() + " has " + inputSplits.length
          + " input splits, but is not of typt AbstractInputTask, ignoring...");
        continue;
      }
View Full Code Here

Examples of eu.stratosphere.nephele.template.AbstractInvokable

  @Override
  public void registerGroupVertex(final ExecutionGroupVertex groupVertex) {

    // Do some sanity checks first
    final AbstractInvokable invokable = groupVertex.getEnvironment().getInvokable();

    // if (!(invokable instanceof AbstractFileInputTask)) {
    // LOG.error(groupVertex.getName() + " is not an input vertex, ignoring vertex...");
    // return;
    // }
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.