Loading kinetic/__init__.py +11 −5 Original line number Diff line number Diff line Loading @@ -16,6 +16,10 @@ #@author: Ignacio Corderi # Logging import logging logging.basicConfig() # Protocol version from common import local Loading @@ -37,9 +41,9 @@ else: #utils from utils import buildRange # client from client import Client from asyncclient import AsyncClient # clients from greenclient import Client from secureclient import SecureClient from threadedclient import ThreadedClient # common Loading @@ -49,5 +53,7 @@ from common import Entry # exceptions from common import KineticMessageException # Admin from admin import AdminClient # backward compatibility alliases AsyncClient = Client from kinetic.deprecated.adminclient import AdminClient from kinetic import greenclient as client No newline at end of file kinetic/admin/__init__.pydeleted 100644 → 0 +0 −19 Original line number Diff line number Diff line # Copyright (C) 2014 Seagate Technology. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #@author: Ignacio Corderi from adminclient import AdminClient kinetic/baseasync.py +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ #@author: Ignacio Corderi from client import Client import deprecated from common import Entry import common Loading @@ -27,7 +27,7 @@ import threading LOG = logging.getLogger(__name__) class BaseAsync(Client): class BaseAsync(deprecated.BlockingClient): def __init__(self, *args, **kwargs): super(BaseAsync, self).__init__(*args, socket_timeout=None, **kwargs) Loading kinetic/baseclient.py +5 −2 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ class BaseClient(object): def build_socket(self, family=ss.AF_INET): return socket.socket(family) def wrap_secure_socket(self, s, ssl_version): return ssl.wrap_socket(s) #, ssl_version=ssl_version) def connect(self): if self._socket: raise common.AlreadyConnected("Client is already connected.") Loading @@ -110,7 +113,7 @@ class BaseClient(object): # Stage socket on a local variable first s = self.build_socket(family) if self.use_ssl: s = ssl.wrap_socket(s) s = self.wrap_secure_socket(s, ssl.PROTOCOL_TLSv1_2) s.settimeout(self.connect_timeout) if self.socket_address: Loading kinetic/deprecated/__init__.py 0 → 100644 +2 −0 Original line number Diff line number Diff line from adminclient import AdminClient from blockingclient import BlockingClient No newline at end of file Loading
kinetic/__init__.py +11 −5 Original line number Diff line number Diff line Loading @@ -16,6 +16,10 @@ #@author: Ignacio Corderi # Logging import logging logging.basicConfig() # Protocol version from common import local Loading @@ -37,9 +41,9 @@ else: #utils from utils import buildRange # client from client import Client from asyncclient import AsyncClient # clients from greenclient import Client from secureclient import SecureClient from threadedclient import ThreadedClient # common Loading @@ -49,5 +53,7 @@ from common import Entry # exceptions from common import KineticMessageException # Admin from admin import AdminClient # backward compatibility alliases AsyncClient = Client from kinetic.deprecated.adminclient import AdminClient from kinetic import greenclient as client No newline at end of file
kinetic/admin/__init__.pydeleted 100644 → 0 +0 −19 Original line number Diff line number Diff line # Copyright (C) 2014 Seagate Technology. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #@author: Ignacio Corderi from adminclient import AdminClient
kinetic/baseasync.py +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ #@author: Ignacio Corderi from client import Client import deprecated from common import Entry import common Loading @@ -27,7 +27,7 @@ import threading LOG = logging.getLogger(__name__) class BaseAsync(Client): class BaseAsync(deprecated.BlockingClient): def __init__(self, *args, **kwargs): super(BaseAsync, self).__init__(*args, socket_timeout=None, **kwargs) Loading
kinetic/baseclient.py +5 −2 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ class BaseClient(object): def build_socket(self, family=ss.AF_INET): return socket.socket(family) def wrap_secure_socket(self, s, ssl_version): return ssl.wrap_socket(s) #, ssl_version=ssl_version) def connect(self): if self._socket: raise common.AlreadyConnected("Client is already connected.") Loading @@ -110,7 +113,7 @@ class BaseClient(object): # Stage socket on a local variable first s = self.build_socket(family) if self.use_ssl: s = ssl.wrap_socket(s) s = self.wrap_secure_socket(s, ssl.PROTOCOL_TLSv1_2) s.settimeout(self.connect_timeout) if self.socket_address: Loading
kinetic/deprecated/__init__.py 0 → 100644 +2 −0 Original line number Diff line number Diff line from adminclient import AdminClient from blockingclient import BlockingClient No newline at end of file