Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • public long lastActivity;

 

  • public long lastActivity();

Every implementation of SystemThread should update a lastActivity field on each pass through the main loop. For simplification, it might be a time field.
Interfaces GridWorker and IgniteThread are looked as good candidates to extend this interface.

...

This interface should specify: 

  • private static final long systemThreadTimeOut = 5_000;
  • public List<SystemThread> systemThreadsList;
  • public void register (SystemThread t); to add a system process to watchdog monitoring
  • public void unregister (SystemThread t); to remove a system process to watchdog monitoring

...

  • public void checkSystemTread (); to check a state of registered system processes

...