SVN: ZODB/trunk/src/ZEO/StorageServer.py Deprecated the monitor server.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100504152434.46E267083BC__43234.994254499$1272986679$gmane$org@cvs.zope.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.