@Override public void preStart() throws Exception { super.preStart(); log.info("Pre start on model saver"); }
@Override public void preStart() throws Exception { System.out.println("> preStart" + self()); super.preStart(); }
@Override public void preStart() throws Exception { System.out.println("Starting " + self()); super.preStart(); }
@Override public void preStart() throws Exception { log.debug("PrestartCalled"); super.preStart(); init(); }
@Override public void preStart() throws Exception { System.out.println("Starting " + self()); super.preStart(); }
@Override public void preStart() throws Exception { System.out.println("Starting " + self()); super.preStart(); }
@Override public void preStart() throws Exception { super.preStart(); cluster.subscribe(getSelf(), MemberEvent.class); log.info("Pre start on worker"); }
@Override public void preStart() throws Exception { super.preStart(); loadPersistedState(); init(); }
@Override public void preStart() throws Exception { log.info("Starting up"); List<Routee> routees = new ArrayList<Routee>(); for (int i = 0; i < 100; i++) { ActorRef actor = getContext().actorOf(springExtension.props( "taskActor")); getContext().watch(actor); routees.add(new ActorRefRoutee(actor)); } router = new Router(new SmallestMailboxRoutingLogic(), routees); super.preStart(); }
@Override public void preStart() throws Exception { super.preStart(); mediator.tell(new Put(getSelf()), getSelf()); ActorRef self = self(); log.info("Setup master with path " + self.path()); log.info("Pre start on master " + this.self().path().toString()); }
@Override public void preStart() throws Exception { super.preStart(); try { cluster = Cluster.get(getContext().system()); cluster.subscribe(self(), ClusterEvent.ReachableMember.class); log.info("{} subscribes to cluster events", self()); } catch (ConfigurationException e) { } }
@Override public void preStart() throws Exception { log.debug("EventstoreSingelton started with adress {}", getSelf().path()); try { Cluster cluster = Cluster.get(getContext().system()); cluster.subscribe(self(), ClusterEvent.MemberRemoved.class); cluster.subscribe(self(), ClusterEvent.ReachableMember.class); log.info("{} subscribes to cluster events", self()); } catch (ConfigurationException e) { } storage.open(); try { ActorRef mediator = DistributedPubSub.get(getContext().system()).mediator(); mediator.tell(new DistributedPubSubMediator.Publish(EventStore.EVENTSTOREMESSAGES, new NewEventstoreStarting()), self()); log.info("Sent message new eventstore starting"); } catch(ConfigurationException e){ log.info("No subscribe to eventstore messages in non cluster system"); } super.preStart(); }