Package io.s4.processor

Examples of io.s4.processor.AbstractPE$OutputInvoker


   @Test
   public void testCloneAndInitialize() {
       MockPE prototype = new MockPE();
       prototype.setInitMethod("testInitialize");
      
       PrototypeWrapper prototypeWrapper = new PrototypeWrapper(prototype, new WallClock());

       assertEquals(0, prototype.getInitializeCount());
       MockPE instance = (MockPE)prototypeWrapper.getPE("asd");
       assertNotNull(instance);
      
View Full Code Here


                                                          context);
            // attach any beans that implement ProcessingElement to the PE
            // Container
            String[] processingElementBeanNames = context.getBeanNamesForType(AbstractPE.class);
            for (String processingElementBeanName : processingElementBeanNames) {
                AbstractPE bean = (AbstractPE) context.getBean(processingElementBeanName);
                bean.setClock(clock);
                try {
                    bean.setSafeKeeper((SafeKeeper) context.getBean("safeKeeper"));
                } catch (NoSuchBeanDefinitionException ignored) {
                    // no safe keeper = no checkpointing / recovery
                }
                // if the application did not specify an id, use the Spring bean name
                if (bean.getId() == null) {
                    bean.setId(processingElementBeanName);
                }
                System.out.println("Adding processing element with bean name "
                        + processingElementBeanName + ", id "
                        + ((AbstractPE) bean).getId());
                peContainer.addProcessor((AbstractPE) bean);
View Full Code Here

TOP

Related Classes of io.s4.processor.AbstractPE$OutputInvoker

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.