@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
@Override public JmDNS getDNS() { return (JmDNS) getSource(); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append('[') .append(this.getClass().getSimpleName()).append('@').append(System.identityHashCode(this)) .append("\n\tname: '").append(this.getName()) .append("' type: '").append(this.getType()) .append("' info: '").append(this.getInfo()) .append("']"); // .append("' source: ") // .append("\n\t" + source + "") // .append("\n]"); return sb.toString(); }
/** * {@inheritDoc} */ @Override public void addServiceTypeListener(ServiceTypeListener listener) throws IOException { ServiceTypeListenerStatus status = new ServiceTypeListenerStatus(listener, ListenerStatus.ASYNCHRONOUS); _typeListeners.add(status); // report cached service types for (String type : _serviceTypes.keySet()) { status.serviceTypeAdded(new ServiceEventImpl(this, type, "", null)); } this.startTypeResolver(); }
/** * {@inheritDoc} */ @Override public void addServiceTypeListener(ServiceTypeListener listener) throws IOException { ServiceTypeListenerStatus status = new ServiceTypeListenerStatus(listener, ListenerStatus.ASYNCHONEOUS); _typeListeners.add(status); // report cached service types for (String type : _serviceTypes.keySet()) { status.serviceTypeAdded(new ServiceEventImpl(this, type, "", null)); } this.startTypeResolver(); }
@Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append("[" + this.getClass().getSimpleName() + "@" + System.identityHashCode(this) + " "); buf.append("\n\tname: '"); buf.append(this.getName()); buf.append("' type: '"); buf.append(this.getType()); buf.append("' info: '"); buf.append(this.getInfo()); buf.append("']"); // buf.append("' source: "); // buf.append("\n\t" + source + ""); // buf.append("\n]"); return buf.toString(); }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
/** * {@inheritDoc} */ @Override public void addServiceTypeListener(ServiceTypeListener listener) throws IOException { ServiceTypeListenerStatus status = new ServiceTypeListenerStatus(listener, ListenerStatus.ASYNCHONEOUS); _typeListeners.add(status); // report cached service types for (String type : _serviceTypes.keySet()) { status.serviceTypeAdded(new ServiceEventImpl(this, type, "", null)); } this.startTypeResolver(); }
@Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append("[" + this.getClass().getSimpleName() + "@" + System.identityHashCode(this) + " "); buf.append("\n\tname: '"); buf.append(this.getName()); buf.append("' type: '"); buf.append(this.getType()); buf.append("' info: '"); buf.append(this.getInfo()); buf.append("']"); // buf.append("' source: "); // buf.append("\n\t" + source + ""); // buf.append("\n]"); return buf.toString(); }
@Override public JmDNS getDNS() { return (JmDNS) getSource(); }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
/** * {@inheritDoc} */ @Override public void addServiceTypeListener(ServiceTypeListener listener) throws IOException { ServiceTypeListenerStatus status = new ServiceTypeListenerStatus(listener, ListenerStatus.ASYNCHONEOUS); _typeListeners.add(status); // report cached service types for (String type : _serviceTypes.keySet()) { status.serviceTypeAdded(new ServiceEventImpl(this, type, "", null)); } this.startTypeResolver(); }
@Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append("[" + this.getClass().getSimpleName() + "@" + System.identityHashCode(this) + " "); buf.append("\n\tname: '"); buf.append(this.getName()); buf.append("' type: '"); buf.append(this.getType()); buf.append("' info: '"); buf.append(this.getInfo()); buf.append("']"); // buf.append("' source: "); // buf.append("\n\t" + source + ""); // buf.append("\n]"); return buf.toString(); }
@Override public JmDNS getDNS() { return (JmDNS) getSource(); }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
if (typeAdded) { final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() { subtypes.add(subtype); final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, "_" + subtype + "._sub." + name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() {
@Override public JmDNS getDNS() { return (JmDNS) getSource(); }
if (typeAdded) { final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() { subtypes.add(subtype); final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, "_" + subtype + "._sub." + name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() {
if (typeAdded) { final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() { subtypes.add(subtype); final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, "_" + subtype + "._sub." + name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() {
if (typeAdded) { final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() { subtypes.add(subtype); final ServiceTypeListenerStatus[] list = _typeListeners.toArray(new ServiceTypeListenerStatus[_typeListeners.size()]); final ServiceEvent event = new ServiceEventImpl(this, "_" + subtype + "._sub." + name, "", null); for (final ServiceTypeListenerStatus status : list) { _executor.submit(new Runnable() {