ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/tools/ClusterConnection.java
Links to HEAD: (view) (annotate)
Sticky Revision:
(Current path doesn't exist after revision 950)
Sort logs by:
Revision 92 - (view) (annotate) - [select for diffs]
Modified Fri May 5 14:39:20 2006 UTC (18 years, 4 months ago) by duarte
File length: 14995 byte(s)
Diff to previous 81 , to selected 15
Made KEYMASTERDB in DataDistribution public. Now using in all other classes/programs that need KEYMASTERDB.
Revision 81 - (view) (annotate) - [select for diffs]
Modified Wed Apr 12 15:27:05 2006 UTC (18 years, 5 months ago) by duarte
File length: 14963 byte(s)
Diff to previous 78 , to selected 15
Changed the Connection fields to be MySQLConnection.
Thanks to this, simplify considerably a lot of the methods by using the MySQLConnection methods.
Got rid of method loadSQLDriver and URL final field
Revision 78 - (view) (annotate) - [select for diffs]
Modified Wed Apr 12 08:52:25 2006 UTC (18 years, 5 months ago) by duarte
File length: 19581 byte(s)
Diff to previous 77 , to selected 15
Got rid of method createNewKeyMasterTbl
Didn't belong here but in DataDistribution (at least for now)

Revision 77 - (view) (annotate) - [select for diffs]
Modified Wed Apr 12 08:26:36 2006 UTC (18 years, 5 months ago) by duarte
File length: 20676 byte(s)
Diff to previous 76 , to selected 15
Bug in new method createNewKeyMasterTbl
The query for inserting the new record in dbs_keys was totally wrong
Wrote something more correct and simpler!
Revision 76 - (view) (annotate) - [select for diffs]
Modified Tue Apr 11 16:00:26 2006 UTC (18 years, 5 months ago) by duarte
File length: 20993 byte(s)
Diff to previous 74 , to selected 15
Minor change, in getHostId4Ifx one of the error messages was being written to out, now to err
Revision 74 - (view) (annotate) - [select for diffs]
Modified Tue Apr 11 14:27:17 2006 UTC (18 years, 5 months ago) by duarte
File length: 20993 byte(s)
Diff to previous 72 , to selected 15
New method createNewKeyMasterTbl
To create a new keyMaster table in the key_master database for a certain table
Will also insert a new record in dbs_keys for the new table.
If a record for it already existed it will print an error and continue as the error is harmless.
Revision 72 - (view) (annotate) - [select for diffs]
Modified Tue Apr 11 10:29:39 2006 UTC (18 years, 5 months ago) by duarte
File length: 19580 byte(s)
Diff to previous 67 , to selected 15
2 important changes:
Fixed important bug on the constructor that gets the key passed (the bug was there since a lot of revisions ago and always passed since that constructor was not used in other classes)
Got rid of keyColumn, was useless. Now key is directly the keyColumn name which is more logical and makes everything simpler
- changed all calls to keyColumn to key
- got rid of keyColumn field and setKeyColumn
- changed completely the methods setKeyTable to get the table name from the dbs_keys on key_master db
- introduced new method getTableOnNode. Gets the name of the table where splitted data is stored for this db and key
Revision 67 - (view) (annotate) - [select for diffs]
Modified Fri Apr 7 12:59:18 2006 UTC (18 years, 5 months ago) by duarte
File length: 17390 byte(s)
Diff to previous 53 , to selected 15
Modified methods getAllIdxAndClients and getAllIdxFromMaster.
They return now:
- getAllIdxAndClients: an int[]
- getAllIdxFromMaster: a HashMap<Integer,String>
Got rid of having ResultSets returned which is very messy and dangerous.
Revision 53 - (view) (annotate) - [select for diffs]
Modified Wed Mar 29 13:01:40 2006 UTC (18 years, 6 months ago) by duarte
File length: 17066 byte(s)
Diff to previous 52 , to selected 15
Fixed a bug with setKeyDb method, was not actually working:
 as well as setting the MASTERDB string needed to change connection to master database to point to new db!
From now on take care if setKeyDb is used in another class. It will open another master connection, thus master connection won't be always the same during the run of the program
Revision 52 - (view) (annotate) - [select for diffs]
Modified Wed Mar 29 12:49:13 2006 UTC (18 years, 6 months ago) by duarte
File length: 16560 byte(s)
Diff to previous 51 , to selected 15
Changed error message printed in getHostId4Idx
Revision 51 - (view) (annotate) - [select for diffs]
Modified Wed Mar 29 12:29:56 2006 UTC (18 years, 6 months ago) by duarte
File length: 16555 byte(s)
Diff to previous 43 , to selected 15
Added setKeyDb method, to be used in testing, i.e. with this method we can change from another class the default MASTERDB database.
Revision 43 - (view) (annotate) - [select for diffs]
Modified Wed Mar 22 09:30:40 2006 UTC (18 years, 6 months ago) by duarte
File length: 16274 byte(s)
Diff to previous 38 , to selected 15
Added executeSql method
Revision 38 - (view) (annotate) - [select for diffs]
Modified Mon Mar 20 11:37:12 2006 UTC (18 years, 6 months ago) by duarte
File length: 15569 byte(s)
Diff to previous 37 , to selected 15
Added getAllIdxAndClients method:
gets all ids and client_names for a certain key
Revision 37 - (view) (annotate) - [select for diffs]
Modified Fri Mar 17 11:22:19 2006 UTC (18 years, 6 months ago) by duarte
File length: 14593 byte(s)
Diff to previous 35 , to selected 15
Some changes in error messages to be more clear.
Revision 35 - (view) (annotate) - [select for diffs]
Modified Fri Mar 17 11:00:33 2006 UTC (18 years, 6 months ago) by duarte
File length: 14465 byte(s)
Diff to previous 34 , to selected 15
Clean up a bit and added some more comments
Revision 34 - (view) (annotate) - [select for diffs]
Modified Fri Mar 17 10:48:03 2006 UTC (18 years, 6 months ago) by duarte
File length: 14217 byte(s)
Diff to previous 33 , to selected 15
Refactor some method names to be more consistent.
Changed some fields to be final (and uppercase them)
Added comments for the most importat methods
Made the createStatment(idx) method private, this should only be used internally. Would be dangerous to use it from anothe class.
Revision 33 - (view) (annotate) - [select for diffs]
Modified Wed Mar 15 11:58:24 2006 UTC (18 years, 6 months ago) by duarte
File length: 13600 byte(s)
Diff to previous 23 , to selected 15
Changed all error printing in catches to STDERR instead of STDOUT
Revision 23 - (view) (annotate) - [select for diffs]
Modified Wed Mar 8 15:25:45 2006 UTC (18 years, 6 months ago) by duarte
File length: 13600 byte(s)
Diff to previous 22 , to selected 15
Fixed important bug:
- now closing nCon connection before opening a new one in the setHost method.
- this is important. Before lots of connection were left opened after having used the ClusterConnection object
Revision 22 - (view) (annotate) - [select for diffs]
Modified Tue Mar 7 13:22:37 2006 UTC (18 years, 6 months ago) by duarte
File length: 13423 byte(s)
Diff to previous 21 , to selected 15
Fixed bug in getIdxSet method. Wasn't reading properly the index_matrix table into the array. Was starting from columnn 1 which actually is the serial column. Now starting from column 2.
Revision 21 - (view) (annotate) - [select for diffs]
Modified Tue Mar 7 11:50:37 2006 UTC (18 years, 6 months ago) by duarte
File length: 13423 byte(s)
Diff to previous 17 , to selected 15
New method int[][] getIdxSet. 
- Returns a 2-dimensional array with all indices for a certain key.
- Each column j corresponds to client_id j+1
- Each row i is a set of idx values for each of the client_ids. If there is no idx for a certain client_id then the value is 0.

Revision 17 - (view) (annotate) - [select for diffs]
Modified Mon Mar 6 09:20:16 2006 UTC (18 years, 6 months ago) by duarte
File length: 9453 byte(s)
Diff to previous 16 , to selected 15
Grouped all the setIdxColumn and setMasterTable into setKey.
Also rationalised a bit the constructors by calling one from the other.
Revision 16 - (view) (annotate) - [select for diffs]
Modified Mon Mar 6 08:32:55 2006 UTC (18 years, 6 months ago) by duarte
File length: 10595 byte(s)
Diff to previous 15
Added package tools.
Revision 15 - (view) (annotate) - [selected]
Added Mon Mar 6 08:25:22 2006 UTC (18 years, 6 months ago) by duarte
File length: 10609 byte(s)
Initial commit of the ClusterConnection class + small test class to test it out.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a