At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3
------------------------------------------------------------
revno: 232
revision-id: mtaylor@stripped
parent: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: telco-6.3
timestamp: Mon 2007-11-19 18:03:19 -0800
message:
Merged in final python changes.
modified:
Makefile.am makefile.am-20070228020914-u2pk759xg7thauwf-4
configure.in configure.in-20070228020914-u2pk759xg7thauwf-13
interface/mgmapi/NdbLogEventManager.i
ndbmgmlogeventhandle-20070906065939-pj4qrhof8kkzg3d1-1
python/Makefile.am makefile.am-20070925115907-x2wrdte5kicyfrrw-1
python/testmgm.py testmgm.py-20071120010244-xrr0eny7i350ornu-1
------------------------------------------------------------
revno: 192.1.25.1.52
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Mon 2007-11-19 17:45:07 -0800
message:
Added extra files for dist.
Removed debug print stmt.
modified:
Makefile.am makefile.am-20070228020914-u2pk759xg7thauwf-4
interface/mgmapi/NdbLogEventManager.i
ndbmgmlogeventhandle-20070906065939-pj4qrhof8kkzg3d1-1
python/Makefile.am makefile.am-20070925115907-x2wrdte5kicyfrrw-1
------------------------------------------------------------
revno: 192.1.25.1.51
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Mon 2007-11-19 17:25:38 -0800
message:
Changed version number.
modified:
configure.in configure.in-20070228020914-u2pk759xg7thauwf-13
------------------------------------------------------------
revno: 192.1.25.1.50
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Mon 2007-11-19 17:25:10 -0800
message:
Added callback based handler test to python code.
modified:
python/testmgm.py testmgm.py-20071120010244-xrr0eny7i350ornu-1
=== modified file 'Makefile.am'
--- a/Makefile.am 2007-11-15 23:22:16 +0000
+++ b/Makefile.am 2007-11-20 01:45:07 +0000
@@ -22,7 +22,7 @@
d_php = php
endif
SUBDIRS = swig $(d_java) $(d_python) $(d_perl) $(d_csharp) $(d_ruby) $(d_php) $(d_lua)
-EXTRA_DIST = testndbapi interface
+EXTRA_DIST = testndbapi interface autogen.sh
distclean-local:
rm -fr autom4te.cache
=== modified file 'configure.in'
--- a/configure.in 2007-11-16 05:46:57 +0000
+++ b/configure.in 2007-11-20 02:03:19 +0000
@@ -1,4 +1,4 @@
-AC_INIT([ndb-connectors], [5.6.3.5])
+AC_INIT([ndb-connectors], [0.5.6.3.5])
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
=== modified file 'interface/mgmapi/NdbLogEventManager.i'
--- a/interface/mgmapi/NdbLogEventManager.i 2007-11-20 01:08:15 +0000
+++ b/interface/mgmapi/NdbLogEventManager.i 2007-11-20 01:45:07 +0000
@@ -68,7 +68,6 @@
Ndb_logevent_type theType = listener->getEventType();
- printf("Inserting %p, %d\n",listener, theType);
evtListeners.insert(std::make_pair<Ndb_logevent_type,NdbLogEventTypeListener
*>(theType,listener));
=== modified file 'python/Makefile.am'
--- a/python/Makefile.am 2007-11-06 22:59:00 +0000
+++ b/python/Makefile.am 2007-11-20 01:45:07 +0000
@@ -2,7 +2,8 @@
pythonarchdir=$(PYTHON_DIR)
pythonarch_DATA=mysql/cluster/_ndbapi.so mysql/cluster/_mgmapi.so
-CLEANFILES=ndbapi.cpp ndbapi.h mgmapi.cpp mysql/cluster/ndbapi.py mysql/cluster/mgmapi.py
*.so mysql/cluster/*pyc *pyc
+CLEANFILES=ndbapi.cpp ndbapi.h mgmapi.cpp mysql/cluster/ndbapi.py mysql/cluster/mgmapi.py
*.so mysql/cluster/*pyc *pyc mgmapi.h
+EXTRA_DIST = *py mgmapi.i ndbapi.i PKG-INFO README MANIFEST.in mysql/cluster/alchemy.py
mysql/__init__.py mysql/cluster/__init__.py mysql/cluster/NdbObject mysql/cluster/tests
SWIG_OPTS=-O -I$(srcdir) -I$(top_srcdir) -I$(SWIG_DIR) @MYSQL_INCLUDES@ -outdir
mysql/cluster
=== modified file 'python/testmgm.py'
--- a/python/testmgm.py 2007-11-20 01:08:15 +0000
+++ b/python/testmgm.py 2007-11-20 01:25:10 +0000
@@ -9,6 +9,20 @@
theList.push_back(theItem)
manager=mgm.createNdbLogEventManager(theList)
+class TransReportListener(mgmapi.NdbLogEventTypeListener):
+
+ def getEventType(self):
+ return mgmapi.NDB_LE_TransReportCounters
+ def handleEvent(self, event):
+ theEvent = mgmapi.TransReportCountersEvent(event)
+ print "Handler Trans count: ",theEvent.transCount
+ print "Handler Read count: ", theEvent.readCount
+ print "Handler Scan count: ", theEvent.scanCount
+ print "Handler Range count: ", theEvent.rangeScanCount
+
+theListener=TransReportListener()
+manager.registerListener(theListener)
+
while(True):
event = manager.getLogEvent(5000)
if event is not None:
| Thread |
|---|
| • Rev 232: Merged in final python changes. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/telco-6.3 | Monty Taylor | 20 Nov |