Commit 87ea655c authored by Vincent Pelletier's avatar Vincent Pelletier

Get rid of empty BaseStorageHandler class.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1606 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3353d4db
...@@ -23,12 +23,7 @@ from neo.util import dump ...@@ -23,12 +23,7 @@ from neo.util import dump
from neo.exception import PrimaryFailure, OperationFailure from neo.exception import PrimaryFailure, OperationFailure
from neo.protocol import NodeStates, Packets from neo.protocol import NodeStates, Packets
class BaseStorageHandler(EventHandler): class BaseMasterHandler(EventHandler):
"""This class implements a generic part of the event handlers."""
pass
class BaseMasterHandler(BaseStorageHandler):
def connectionLost(self, conn, new_state): def connectionLost(self, conn, new_state):
raise PrimaryFailure('connection lost') raise PrimaryFailure('connection lost')
...@@ -61,7 +56,7 @@ class BaseMasterHandler(BaseStorageHandler): ...@@ -61,7 +56,7 @@ class BaseMasterHandler(BaseStorageHandler):
raise OperationFailure raise OperationFailure
class BaseClientAndStorageOperationHandler(BaseStorageHandler): class BaseClientAndStorageOperationHandler(EventHandler):
""" Accept requests common to client and storage nodes """ """ Accept requests common to client and storage nodes """
def askTIDs(self, conn, first, last, partition): def askTIDs(self, conn, first, last, partition):
......
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
from neo import logging from neo import logging
from neo.storage.handlers import BaseStorageHandler from neo.handler import EventHandler
from neo.protocol import NodeTypes, Packets from neo.protocol import NodeTypes, Packets
from neo import protocol from neo import protocol
from neo.util import dump from neo.util import dump
class IdentificationHandler(BaseStorageHandler): class IdentificationHandler(EventHandler):
""" Handler used for incoming connections during operation state """ """ Handler used for incoming connections during operation state """
def connectionLost(self, conn, new_state): def connectionLost(self, conn, new_state):
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
from neo import logging from neo import logging
from neo.storage.handlers import BaseStorageHandler from neo.handler import EventHandler
from neo.protocol import Packets from neo.protocol import Packets
class ReplicationHandler(BaseStorageHandler): class ReplicationHandler(EventHandler):
"""This class handles events for replications.""" """This class handles events for replications."""
def connectionCompleted(self, conn): def connectionCompleted(self, conn):
......
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