java.lang.Object
jreceiver.server.bus.BaseBus
jreceiver.server.bus.KeyBus
jreceiver.server.bus.RootBus
- public class RootBus
- extends KeyBus
business logic layer code related to infrared (and other) Roots.
- Version:
- $Revision: 1.4 $ $Date: 2003/05/12 06:16:30 $
| Fields inherited from class jreceiver.server.bus.KeyBus |
|
| Fields inherited from class jreceiver.server.bus.BaseBus |
|
| Methods inherited from class jreceiver.server.bus.KeyBus |
deleteRec, deleteRec, deleteRecs, getKey, getKeyCount, getKeyDB, getKeys, getRec, getRec, getRec, getRecs, getRecs, storeRec, storeRecs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
singleton
private static RootBus singleton
- this class is implemented as a singleton
log
protected static org.apache.commons.logging.Log log
- logging sink
RootBus
protected RootBus(jreceiver.server.db.KeyDB db)
- ctor
getInstance
public static RootBus getInstance()
- obtain an instance of this singleton
Note that this uses the questionable DCL pattern (search on
DoubleCheckedLockingIsBroken for more info)
getDB
protected jreceiver.server.db.RootDB getDB()
validate
public java.lang.String validate(java.io.File root_file)
- Test to see that the target exists and that it is not a child
of any of the existing roots, or (visa-versa) if any of the
roots is a child of target.