org.codehaus.activemq.transport.zeroconf
Class ZeroconfDiscoveryAgent
java.lang.Object
org.codehaus.activemq.transport.DiscoveryAgentSupport
org.codehaus.activemq.transport.zeroconf.ZeroconfDiscoveryAgent
- All Implemented Interfaces:
- org.codehaus.activemq.transport.DiscoveryAgent, EventListener, org.codehaus.activemq.service.Service, javax.jmdns.ServiceListener
- public class ZeroconfDiscoveryAgent
- extends org.codehaus.activemq.transport.DiscoveryAgentSupport
- implements javax.jmdns.ServiceListener
A DiscoveryAgent
using Zeroconf
via the jmDNS library
- Version:
- $Revision: 1.2 $
Fields inherited from class org.codehaus.activemq.transport.DiscoveryAgentSupport |
listeners |
Methods inherited from class org.codehaus.activemq.transport.DiscoveryAgentSupport |
addDiscoveryListener, fireAddService, fireRemoveService, removeDiscoveryListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZeroconfDiscoveryAgent
public ZeroconfDiscoveryAgent()
start
public void start()
throws JMSException
- Specified by:
start
in interface org.codehaus.activemq.service.Service
- Throws:
JMSException
stop
public void stop()
throws JMSException
- Specified by:
stop
in interface org.codehaus.activemq.service.Service
- Throws:
JMSException
registerService
public void registerService(String name,
Map details)
throws JMSException
- Specified by:
registerService
in interface org.codehaus.activemq.transport.DiscoveryAgent
- Throws:
JMSException
addService
public void addService(javax.jmdns.JmDNS jmDNS,
String type,
String name)
removeService
public void removeService(javax.jmdns.JmDNS jmDNS,
String type,
String name)
resolveService
public void resolveService(javax.jmdns.JmDNS jmDNS,
String type,
String name,
javax.jmdns.ServiceInfo serviceInfo)
getType
public String getType()
setType
public void setType(String type)
getPriority
public int getPriority()
setPriority
public void setPriority(int priority)
getWeight
public int getWeight()
setWeight
public void setWeight(int weight)
getJmdns
public javax.jmdns.JmDNS getJmdns()
setJmdns
public void setJmdns(javax.jmdns.JmDNS jmdns)
getLocalAddress
public InetAddress getLocalAddress()
throws UnknownHostException
- Throws:
UnknownHostException
setLocalAddress
public void setLocalAddress(InetAddress localAddress)
getLocalhost
public String getLocalhost()
setLocalhost
public void setLocalhost(String localhost)
createServiceInfo
protected javax.jmdns.ServiceInfo createServiceInfo(String name,
Map map)
createJmDNS
protected javax.jmdns.JmDNS createJmDNS()
throws IOException
- Throws:
IOException
createLocalAddress
protected InetAddress createLocalAddress()
throws UnknownHostException
- Throws:
UnknownHostException
serviceAdded
public void serviceAdded(javax.jmdns.ServiceEvent event)
- Specified by:
serviceAdded
in interface javax.jmdns.ServiceListener
serviceRemoved
public void serviceRemoved(javax.jmdns.ServiceEvent event)
- Specified by:
serviceRemoved
in interface javax.jmdns.ServiceListener
serviceResolved
public void serviceResolved(javax.jmdns.ServiceEvent event)
- Specified by:
serviceResolved
in interface javax.jmdns.ServiceListener
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.