Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.server.bus
Class RootBus  view RootBus download RootBus.java

java.lang.Object
  extended byjreceiver.server.bus.BaseBus
      extended byjreceiver.server.bus.KeyBus
          extended byjreceiver.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 $

Field Summary
protected static org.apache.commons.logging.Log log
          logging sink
private static RootBus singleton
          this class is implemented as a singleton
 
Fields inherited from class jreceiver.server.bus.KeyBus
 
Fields inherited from class jreceiver.server.bus.BaseBus
 
Constructor Summary
protected RootBus(jreceiver.server.db.KeyDB db)
          ctor
 
Method Summary
protected  jreceiver.server.db.RootDB getDB()
           
static RootBus getInstance()
          obtain an instance of this singleton
 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.
 
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 jreceiver.server.bus.BaseBus
getBaseDB, getClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

private static RootBus singleton
this class is implemented as a singleton


log

protected static org.apache.commons.logging.Log log
logging sink

Constructor Detail

RootBus

protected RootBus(jreceiver.server.db.KeyDB db)
ctor

Method Detail

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.