Exemplo n.º 1
0
 @Override
 public void eventReceived(GENASubscription subscription) {
   rendererMap.mark(uuid, ACTIVE, true);
   if (subscription.getCurrentValues().containsKey("LastChange")) {
     xml2d(uuid, subscription.getCurrentValues().get("LastChange").toString(), null);
   }
 }
Exemplo n.º 2
0
 @Override
 public void established(GENASubscription sub) {
   LOGGER.debug(
       "Subscription established: "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid));
 }
Exemplo n.º 3
0
 @Override
 public void eventsMissed(GENASubscription sub, int numberOfMissedEvents) {
   LOGGER.debug(
       "Missed events: "
           + numberOfMissedEvents
           + " for subscription "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid));
 }
Exemplo n.º 4
0
 @Override
 public void failed(GENASubscription sub, UpnpResponse response, Exception ex) {
   LOGGER.debug(
       "Subscription failed: "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid)
           + ": "
           + createDefaultFailureMessage(response, ex).split(": ", 2)[1]);
 }
Exemplo n.º 5
0
 @Override
 public void failed(
     GENASubscription sub, UpnpResponse response, Exception ex, String defaultMsg) {
   LOGGER.debug(
       "Subscription failed: "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid)
           + ": "
           + defaultMsg.split(": ", 2)[1]);
 }
Exemplo n.º 6
0
 @Override
 public void ended(GENASubscription sub, CancelReason reason, UpnpResponse response) {
   // Reason should be null, or it didn't end regularly
   if (reason != null) {
     LOGGER.debug(
         "Subscription cancelled: "
             + sub.getService().getServiceId().getId()
             + " on "
             + uuid
             + ": "
             + reason);
   }
   rendererMap.mark(uuid, RENEW, true);
 }