org.fusesource.fabric.zeroconf
Class ZeroConfBridge
java.lang.Object
org.fusesource.fabric.zeroconf.ZeroConfBridge
public class ZeroConfBridge
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZeroConfBridge
public ZeroConfBridge()
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
registerService
public void registerService(java.lang.String name,
int port,
java.lang.String type)
throws java.io.IOException
- Throws:
java.io.IOException
registerService
public void registerService(javax.jmdns.ServiceInfo si)
throws java.io.IOException
- Throws:
java.io.IOException
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()
throws java.io.IOException
- Throws:
java.io.IOException
setJmdns
public void setJmdns(javax.jmdns.JmDNS jmdns)
getLocalAddress
public java.net.InetAddress getLocalAddress()
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
setLocalAddress
public void setLocalAddress(java.net.InetAddress localAddress)
getLocalhost
public java.lang.String getLocalhost()
setLocalhost
public void setLocalhost(java.lang.String localhost)
getTypes
public java.lang.String[] getTypes()
setTypes
public void setTypes(java.lang.String[] types)
getFabricService
public FabricService getFabricService()
setFabricService
public void setFabricService(FabricService fabricService)
getZkClient
public IZKClient getZkClient()
setZkClient
public void setZkClient(IZKClient zkClient)
addToZooKeeper
protected void addToZooKeeper(java.lang.String type,
java.lang.String name,
java.lang.String server,
int port)
removeFromZooKeper
protected void removeFromZooKeper(javax.jmdns.ServiceEvent event)
log
protected void log(java.lang.String message,
javax.jmdns.ServiceEvent event)
createServiceInfo
protected javax.jmdns.ServiceInfo createServiceInfo(java.lang.String name,
java.util.Map map,
int port,
java.lang.String type)
createJmDNS
protected javax.jmdns.JmDNS createJmDNS()
throws java.io.IOException
- Throws:
java.io.IOException
createLocalAddress
protected java.net.InetAddress createLocalAddress()
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
Copyright © 2013 Red Hat. All Rights Reserved.