Package eu.stratosphere.nephele.template

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


  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

  }

  @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

  }
 
  @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

 
  @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

Related Classes of eu.stratosphere.nephele.template.AbstractInvokable

Copyright © 2018 www.massapicom. 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.