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();
}
Aggregations