[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/StorageServer.py Deprecated the monitor server.

Jim Fulton jim at zope.com
Tue May 4 11:24:34 EDT 2010


Log message for revision 111927:
  Deprecated the monitor server.
  

Changed:
  U   ZODB/trunk/src/ZEO/StorageServer.py

-=-
Modified: ZODB/trunk/src/ZEO/StorageServer.py
===================================================================
--- ZODB/trunk/src/ZEO/StorageServer.py	2010-05-04 15:20:29 UTC (rev 111926)
+++ ZODB/trunk/src/ZEO/StorageServer.py	2010-05-04 15:24:33 UTC (rev 111927)
@@ -22,39 +22,37 @@
 
 from __future__ import with_statement
 
+from ZEO.CommitLog import CommitLog
+from ZEO.Exceptions import AuthError
+from ZEO.monitor import StorageStats, StatsServer
+from ZEO.zrpc.connection import ManagedServerConnection, Delay, MTDelay, Result
+from ZEO.zrpc.server import Dispatcher
+from ZEO.zrpc.trigger import trigger
+from ZODB.ConflictResolution import ResolvedSerial
+from ZODB.loglevels import BLATHER
+from ZODB.POSException import StorageError, StorageTransactionError
+from ZODB.POSException import TransactionError, ReadOnlyError, ConflictError
+from ZODB.serialize import referencesf
+from ZODB.utils import oid_repr, p64, u64, z64
+
 import asyncore
 import cPickle
+import itertools
 import logging
 import os
 import sys
 import tempfile
 import threading
 import time
-import itertools
-
 import transaction
-
+import warnings
+import ZEO.zrpc.error
 import ZODB.blob
 import ZODB.serialize
 import ZODB.TimeStamp
-import ZEO.zrpc.error
-
 import zope.interface
-from ZEO.CommitLog import CommitLog
-from ZEO.monitor import StorageStats, StatsServer
-from ZEO.zrpc.server import Dispatcher
-from ZEO.zrpc.connection import ManagedServerConnection, Delay, MTDelay, Result
-from ZEO.zrpc.trigger import trigger
-from ZEO.Exceptions import AuthError
 
-from ZODB.ConflictResolution import ResolvedSerial
-from ZODB.POSException import StorageError, StorageTransactionError
-from ZODB.POSException import TransactionError, ReadOnlyError, ConflictError
-from ZODB.serialize import referencesf
-from ZODB.utils import oid_repr, p64, u64, z64
-from ZODB.loglevels import BLATHER
 
-
 logger = logging.getLogger('ZEO.StorageServer')
 
 def log(message, level=logging.INFO, label='', exc_info=False):
@@ -914,6 +912,10 @@
                 timeout.start()
             self.timeouts[name] = timeout
         if monitor_address:
+            warnings.warn(
+                "The monitor server is deprecated. Use the server_status\n"
+                "ZEO method instead.",
+                DeprecationWarning)
             self.monitor = StatsServer(monitor_address, self.stats)
         else:
             self.monitor = None



More information about the Zodb-checkins mailing list