public UniformityArchiveActivator() { add(activatorFor(UniformityArchiveActor.class).withPoolSize(1)); } }
/******************************************************************************************************************* * * * ******************************************************************************************************************/ public static ActorActivator activatorFor (final @Nonnull Class<?> actorClass) { return new ActorActivator(actorClass, 1); }
for (final Class<?> clazz : getClassHierarchy(actorObject.getClass())) if ((parameterAnnotations.length == 1) && containsAnnotation(parameterAnnotations[0], ListensTo.class)) registerMessageListener(method); else if ((parameterAnnotations.length == 2) && containsAnnotation(parameterAnnotations[0], ListensTo.class) && containsAnnotation(parameterAnnotations[1], OriginatedBy.class)) registerCollaborationListener(method); mbeansMapByName.putAll(getMBeans(actorObject, clazz)); registerMBeans();
/******************************************************************************************************************* * * * ******************************************************************************************************************/ private <Topic> void registerMessageListener (final @Nonnull Method method) { log.info("registerMessageListener({})", method); addListener(method, new MessageListenerAdapter<Topic>(method), (Class<Topic>)method.getParameterTypes()[0]); }
/******************************************************************************************************************* * * * ******************************************************************************************************************/ private void registerCollaborationListener (final @Nonnull Method method) { log.info("registerCollaborationListener({})", method); final Class<?> collaborationMessageType = method.getParameterTypes()[0]; final Class<?> messageType = method.getParameterTypes()[1]; final Listener messageListener = collaborationMessageType.equals(CollaborationStartedMessage.class) ? new CollaborationMessageListenerAdapter<CollaborationStartedMessage>(method, messageType) : new CollaborationMessageListenerAdapter<CollaborationCompletedMessage>(method, messageType); addListener(method, messageListener, collaborationMessageType); }
public IntegrityCheckerUIActivator() { add(activatorFor(IntegrityCheckerPresentationControlActor.class).withPoolSize(1)); // add(activatorFor(ScanActionEnablerActor.class).withPoolSize(1)); FIXME } }
/******************************************************************************************************************* * * * ******************************************************************************************************************/ @Nonnull public ActorActivator withPoolSize (@Nonnegative int poolSize) { return new ActorActivator(actorClass, poolSize); }
public UniformityCheckActorActivator() { add(activatorFor(UniformityCheckMainControllerActor.class).withPoolSize(1)); add(activatorFor(UniformityCheckMeasurementControllerActor.class).withPoolSize(1)); } }
@Override protected void registerActors (final @Nonnull ActorGroupActivator a) { a.add(activatorFor(ScanArchiveActor.class).withPoolSize(1)); a.add(activatorFor(LegacyPersistenceManagerActor.class).withPoolSize(1)); } }
public ArgyllActivator() { add(activatorFor(DispwinActor.class).withPoolSize(1)); if (!Boolean.getBoolean("it.tidalwave.blueshades.mockSensor")) { add(activatorFor(SpotReadActor.class).withPoolSize(1)); } } }
public FakeColorimeterAdapterActivator() { if (Boolean.getBoolean("it.tidalwave.blueshades.mockSensor")) { add(activatorFor(FakeMeasurementActor.class).withPoolSize(1)); } } }
public ArgyllActivator() { add(activatorFor(DispwinActor.class).withPoolSize(1)); if (Boolean.getBoolean("it.tidalwave.blueargyle.mockArgyll")) { add(activatorFor(FakeSpotReadActor.class).withPoolSize(1)); } else { add(activatorFor(SpotReadActor.class).withPoolSize(1)); } } }
public TestActivator() { // add(activatorFor(SpotReadActor.class).withPoolSize(1)); // to test the real thing add(activatorFor(FakeMeasurementActor.class).withPoolSize(1)); add(activatorFor(UniformityCheckMeasurementControllerActor.class).withPoolSize(1)); } }
public TestActivator() { // add(activatorFor(SpotReadActor.class).withPoolSize(1)); // to test the real thing add(activatorFor(FakeSpotReadActor.class).withPoolSize(1)); add(activatorFor(UniformityCheckMeasurementControllerActor.class).withPoolSize(1)); } }