388389390391392393394395396
private void fireServiceStarted(ActiveMQObjectMessage message) throws JMSException { if (message != null) { String name = message.getStringProperty(SERVICE_NAME); Map map = (Map) message.getObject(); DiscoveryEvent event = new DiscoveryEvent(this, name, map); fireAddService(event); } }
397398399400401402403404405
private void fireServiceStopped(ActiveMQObjectMessage message) throws JMSException { if (message != null) { String name = message.getStringProperty(SERVICE_NAME); Map map = (Map) message.getObject(); DiscoveryEvent event = new DiscoveryEvent(this, name, map); fireRemoveService(event); } }
108109110111112113114115
public void removeService(JmDNS jmDNS, String type, String name) { if (log.isDebugEnabled()) { log.debug("removeService with type: " + type + " name: " + name); } DiscoveryEvent event = new DiscoveryEvent(this, name); fireRemoveService(event); }
126127128129130131132133
String key = (String) iter.nextElement(); String value = serviceInfo.getPropertyString(key); map.put(key, value); } } DiscoveryEvent event = new DiscoveryEvent(this, name, map); fireAddService(event); }