Search in sources :

Example 1 with SubScriber

use of org.apache.felix.upnp.basedriver.importer.core.event.thread.SubScriber in project felix by apache.

the class Activator method doInitImporter.

/**
 * Method used for initilizing the Import component of the UPnP Base Driver
 *
 * @since 0.3
 */
private void doInitImporter() {
    boolean useImporter = Boolean.valueOf(configuration.getProperty(Constants.IMPORTER_ENABLED_PROP, "true")).booleanValue();
    if (!useImporter)
        return;
    // Setting up Base Driver Importer
    this.notifierQueue = new NotifierQueue();
    this.subQueue = new SubscriptionQueue();
    ctrl = new MyCtrlPoint(Activator.bc, subQueue, notifierQueue);
    // Enable CyberLink re-new for Event
    ctrl.setNMPRMode(true);
    this.monitor = new Monitor();
    this.notifier = new Notifier(notifierQueue, monitor);
    this.subScriber = new SubScriber(ctrl, subQueue, monitor);
    ctrl.start();
    subScriber.start();
    notifier.start();
}
Also used : SubscriptionQueue(org.apache.felix.upnp.basedriver.importer.core.event.structs.SubscriptionQueue) Monitor(org.apache.felix.upnp.basedriver.importer.core.event.structs.Monitor) NotifierQueue(org.apache.felix.upnp.basedriver.importer.core.event.structs.NotifierQueue) MyCtrlPoint(org.apache.felix.upnp.basedriver.importer.core.MyCtrlPoint) SubScriber(org.apache.felix.upnp.basedriver.importer.core.event.thread.SubScriber) Notifier(org.apache.felix.upnp.basedriver.importer.core.event.thread.Notifier)

Aggregations

MyCtrlPoint (org.apache.felix.upnp.basedriver.importer.core.MyCtrlPoint)1 Monitor (org.apache.felix.upnp.basedriver.importer.core.event.structs.Monitor)1 NotifierQueue (org.apache.felix.upnp.basedriver.importer.core.event.structs.NotifierQueue)1 SubscriptionQueue (org.apache.felix.upnp.basedriver.importer.core.event.structs.SubscriptionQueue)1 Notifier (org.apache.felix.upnp.basedriver.importer.core.event.thread.Notifier)1 SubScriber (org.apache.felix.upnp.basedriver.importer.core.event.thread.SubScriber)1