Some fiddling to handle cases where peers become connected after having

been disconnected (in which case there may be conflicts in lock 
ownership) or are connected asymmetrically (A is subscribed to B, B is 
not yet subscribed to A).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4674 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2007-04-24 19:47:12 +00:00
parent f8ef4aeebc
commit d3d841e3e5
3 changed files with 122 additions and 9 deletions
@@ -60,6 +60,12 @@ public class NodeRecord
this.port = port;
}
/** Used for queries. */
public NodeRecord (String nodeName)
{
this.nodeName = nodeName;
}
/**
* Generates a string representation of this instance.
*/
@@ -73,6 +73,15 @@ public class NodeRepository extends JORARepository
store(_ntable, record);
}
/**
* Deletes the identified node record.
*/
public void deleteNode (String nodeName)
throws PersistenceException
{
delete(_ntable, new NodeRecord(nodeName));
}
@Override // documentation inherited
protected void migrateSchema (Connection conn, DatabaseLiaison liaison)
throws SQLException, PersistenceException