@Override public ServiceInfo getServiceInfo(boolean persistent) { ServiceInfoImpl info = new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); // info.setAddress(_addr); This is done in the sub class so we don't have to test for class type return info; }
@Override public ServiceInfo getServiceInfo(boolean persistent) { ServiceInfoImpl info = new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); // info.setAddress(_addr); This is done in the sub class so we don't have to test for class type return info; }
@Override public ServiceInfo getServiceInfo(boolean persistent) { Map<String, String> hinfo = new HashMap<String, String>(2); hinfo.put("cpu", _cpu); hinfo.put("os", _os); return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, hinfo); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { ServiceInfoImpl info = new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); // info.setAddress(_addr); This is done in the sub class so we don't have to test for class type return info; }
@Override public ServiceInfo getServiceInfo(boolean persistent) { return new ServiceInfoImpl(this.getQualifiedNameMap(), _port, _weight, _priority, persistent, _server); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { Map<String, String> hinfo = new HashMap<String, String>(2); hinfo.put("cpu", _cpu); hinfo.put("os", _os); return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, hinfo); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { ServiceInfoImpl info = new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, (byte[]) null); // info.setAddress(_addr); This is done in the sub class so we don't have to test for class type return info; }
@Override public ServiceInfo getServiceInfo(boolean persistent) { Map<String, String> hinfo = new HashMap<String, String>(2); hinfo.put("cpu", _cpu); hinfo.put("os", _os); return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, hinfo); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { Map<String, String> hinfo = new HashMap<String, String>(2); hinfo.put("cpu", _cpu); hinfo.put("os", _os); return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, hinfo); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, _text); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, _text); }
@Override public ServiceInfo getServiceInfo(boolean persistent) { return new ServiceInfoImpl(this.getQualifiedNameMap(), 0, 0, 0, persistent, _text); }
@Override public ServiceInfoImpl clone() { ServiceInfoImpl serviceInfo = new ServiceInfoImpl(this.getQualifiedNameMap(), _port, _weight, _priority, _persistent, _text); Inet6Address[] ipv6Addresses = this.getInet6Addresses(); for (Inet6Address address : ipv6Addresses) { serviceInfo._ipv6Addresses.add(address); } Inet4Address[] ipv4Addresses = this.getInet4Addresses(); for (Inet4Address address : ipv4Addresses) { serviceInfo._ipv4Addresses.add(address); } return serviceInfo; }
@Override public ServiceInfoImpl clone() { ServiceInfoImpl serviceInfo = new ServiceInfoImpl(this.getQualifiedNameMap(), _port, _weight, _priority, _persistent, _text); Inet6Address[] ipv6Addresses = this.getInet6Addresses(); for (Inet6Address address : ipv6Addresses) { serviceInfo._ipv6Addresses.add(address); } Inet4Address[] ipv4Addresses = this.getInet4Addresses(); for (Inet4Address address : ipv4Addresses) { serviceInfo._ipv4Addresses.add(address); } return serviceInfo; }
private void start(Collection<? extends ServiceInfo> serviceInfos) { if (_incomingListener == null) { _incomingListener = new SocketListener(this); _incomingListener.start(); } this.startProber(); for (ServiceInfo info : serviceInfos) { try { this.registerService(new ServiceInfoImpl(info)); } catch (final Exception exception) { logger.log(Level.WARNING, "start() Registration exception ", exception); } } }
@Override public ServiceInfoImpl clone() { ServiceInfoImpl serviceInfo = new ServiceInfoImpl(this.getQualifiedNameMap(), _port, _weight, _priority, _persistent, _text); Inet6Address[] ipv6Addresses = this.getInet6Addresses(); for (Inet6Address address : ipv6Addresses) { serviceInfo._ipv6Addresses.add(address); } Inet4Address[] ipv4Addresses = this.getInet4Addresses(); for (Inet4Address address : ipv4Addresses) { serviceInfo._ipv4Addresses.add(address); } return serviceInfo; }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }
@Override public ServiceEventImpl clone() { ServiceInfoImpl newInfo = new ServiceInfoImpl(this.getInfo()); return new ServiceEventImpl((JmDNSImpl) this.getDNS(), this.getType(), this.getName(), newInfo); }