Examples of AbstractInvokable


Examples of org.apache.flink.runtime.jobgraph.tasks.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 org.apache.flink.runtime.jobgraph.tasks.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 org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable

  public void parallelChannelsTest() throws Exception
  {
    LOG.info("Starting parallel channels test.");
   
    final Random rnd = new Random(SEED);
    final AbstractInvokable memOwner = new DefaultMemoryManagerTest.DummyInvokable();
   
    Channel.ID[] ids = new Channel.ID[NUM_CHANNELS];
    BlockChannelWriter[] writers = new BlockChannelWriter[NUM_CHANNELS];
    BlockChannelReader[] readers = new BlockChannelReader[NUM_CHANNELS];
    ChannelWriterOutputView[] outs = new ChannelWriterOutputView[NUM_CHANNELS];
View Full Code Here

Examples of org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable

  }

  @Test
  public void allocateAllSingle() throws Exception
  {
    final AbstractInvokable mockInvoke = new DummyInvokable();
    List<MemorySegment> segments = new ArrayList<MemorySegment>();
   
    try {
      for (int i = 0; i < NUM_PAGES; i++) {
        segments.add(this.memoryManager.allocatePages(mockInvoke, 1).get(0));
View Full Code Here

Examples of org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable

  }
 
  @Test
  public void allocateAllMulti() throws Exception
  {
    final AbstractInvokable mockInvoke = new DummyInvokable();
    final List<MemorySegment> segments = new ArrayList<MemorySegment>();
   
    try {
      for(int i = 0; i < NUM_PAGES / 2; i++) {
        segments.addAll(this.memoryManager.allocatePages(mockInvoke, 2));
View Full Code Here

Examples of org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable

 
  @Test
  public void allocateTooMuch()
  {
    try {
      final AbstractInvokable mockInvoke = new DummyInvokable();
     
      List<MemorySegment> segs = this.memoryManager.allocatePages(mockInvoke, NUM_PAGES);
     
      try {
        this.memoryManager.allocatePages(mockInvoke, 1);
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.