List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:November 19 2007 9:39am
Subject:Rev 264: Changed example program to show both ways of setting event filters. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel

------------------------------------------------------------
revno: 264
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Mon 2007-11-19 01:39:22 -0800
message:
  Changed example program to show both ways of setting event filters. 
modified:
  java/com/mysql/cluster/mgmj/examples/SampleMGMJ.java
samplemgmj.java-20071119093428-2f2zw02dpk5jlq9f-2
=== modified file 'java/com/mysql/cluster/mgmj/examples/SampleMGMJ.java'
--- a/java/com/mysql/cluster/mgmj/examples/SampleMGMJ.java	2007-11-19 09:34:49 +0000
+++ b/java/com/mysql/cluster/mgmj/examples/SampleMGMJ.java	2007-11-19 09:39:22 +0000
@@ -14,12 +14,13 @@
 		mgm.setConnectTimeout(4000);
 		mgm.connect(5, 3, true);
 		int[] filter = { 15, NdbMgmEventCategory.NDB_MGM_EVENT_CATEGORY_STATISTIC.swigValue(),
0 };
-		NdbFilterList theList = new NdbFilterList();
+		/*NdbFilterList theList = new NdbFilterList();
 		NdbFilterItem theItem = new NdbFilterItem();
 		theItem.setLevel(15);
 		theItem.setCategory(NdbMgmEventCategory.NDB_MGM_EVENT_CATEGORY_STATISTIC);
 		theList.add(theItem);
-		NdbLogEventManager manager = mgm.createNdbLogEventManager(theList);
+		NdbLogEventManager manager = mgm.createNdbLogEventManager(theList);*/
+		NdbLogEventManager manager = mgm.createNdbLogEventManager(filter);
 
 		while(true) { 	
 			//mgm.dumpState(1, 1000);

Thread
Rev 264: Changed example program to show both ways of setting event filters. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/develMonty Taylor19 Nov