Commit 5557988b authored by Pedro Oliveira's avatar Pedro Oliveira

remove unused classes

parent c5efb3cd
from threading import Timer
class AssertWinnerState(object):
def GraftPruneState(self):
self._assert_state = AssertState.Winner
self._assert_timer = None
self._assert_winner_ip = None
self._assert_winner_metric = None
def set_assert_timer(self):
self.clear_assert_timer()
self._assert_timer= Timer()
def clear_assert_timer(self):
if self._assert_timer is not None:
self._assert_timer.cancel()
from threading import Timer
class GraftPruneState(object):
def GraftPruneState(self):
self._prune_state = SFMRPruneState.DIP
self._prune_pending_timer = None # type: Timer
self._prune_timer = None # type: Timer
def set_prune_pending_timer(self):
self.clear_prune_pending_timer()
self._prune_pending_time = Timer()
def clear_prune_pending_timer(self):
if self._prune_pending_time is not None:
self._prune_pending_time.cancel()
def set_prune_timer(self):
self.clear_prune_timer()
self._prune_timer = Timer()
def clear_prune_timer(self):
if self._prune_timer is not None:
self._prune_timer.cancel()
from threading import Timer
class OriginatorState(object):
def OriginatorState(self):
self._source_active_timer = None # type: Timer
self._state_refresh_timer = None # type: Timer
def set_source_active_timer(self):
self.clear_source_active_timer()
self._source_active_timer = Timer()
def clear_source_active_timer(self):
if self._source_active_timer is not None:
self._source_active_timer.cancel()
def set_state_refresh_timer(self):
self.clear_state_refresh_timer()
self._state_refresh_timer = Timer()
def clear_state_refresh_timer(self):
if self._state_refresh_timer is not None:
self._state_refresh_timer.cancel()
from threading import Timer
class PruneState(object):
def PruneState(self):
self._prune_state = SFMRPruneState.DIP
self._prune_pending_timer = None
self._prune_timer = None
def set_prune_pending_timer(self):
self.clear_prune_pending_timer()
self._prune_pending_timer= Timer()
def clear_prune_pending_timer(self):
if self._prune_pending_timer is not None:
self._prune_pending_timer.cancel()
def set_prune_timer(self):
self.clear_prune_timer()
self._prune_timer= Timer()
def clear_prune_timer(self):
if self._prune_timer is not None:
self._prune_timer.cancel()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment