Class: GameMachine::SystemMonitor

Inherits:
Actor::Base
  • Object
show all
Defined in:
lib/game_machine/system_monitor.rb

Constant Summary

Constants inherited from Actor::Base

Actor::Base::ON_RECEIVE_HOOKS

Instance Method Summary collapse

Methods inherited from Actor::Base

aspect, aspects, find, find_by_address, find_distributed, find_distributed_local, find_remote, hashring, local_path, model_filter, #onReceive, player_controller, #receive_message, #schedule_message, #sender, set_player_controller

Instance Method Details

#on_receive(message) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/game_machine/system_monitor.rb', line 11

def on_receive(message)
  if message.is_a?(JavaLib::DeadLetter)
    #GameMachine.logger.debug("DeadLetter #{message.message}")
  else
    #GameMachine.logger.info("Unrecognized message #{message}")
  end
end

#post_init(*args) ⇒ Object



4
5
# File 'lib/game_machine/system_monitor.rb', line 4

def post_init(*args)
end

#preStartObject



7
8
9
# File 'lib/game_machine/system_monitor.rb', line 7

def preStart
  #getContext.system.eventStream.subscribe(getSelf, JavaLib::DeadLetter.java_class)
end