org.talend.esb.servicelocator.client.internal.zk
Class ServiceNodeImpl

java.lang.Object
  extended by org.talend.esb.servicelocator.client.internal.NodePath
      extended by org.talend.esb.servicelocator.client.internal.zk.ServiceNodeImpl
All Implemented Interfaces:
ServiceNode

public class ServiceNodeImpl
extends NodePath
implements ServiceNode


Field Summary
 
Fields inherited from class org.talend.esb.servicelocator.client.internal.NodePath
SEPARATOR
 
Constructor Summary
ServiceNodeImpl(ZKBackend backend, RootNodeImpl rootNode, QName serviceName)
           
 
Method Summary
 void ensureExists()
           
 void ensureRemoved()
           
 boolean exists()
           
 EndpointNode getEndPoint(String endpoint)
           
 List<String> getEndpointNames()
           
 List<EndpointNode> getEndPoints()
           
 QName getServiceName()
           
 
Methods inherited from class org.talend.esb.servicelocator.client.internal.NodePath
child, child, decode, encode, equals, getNodeName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceNodeImpl

public ServiceNodeImpl(ZKBackend backend,
                       RootNodeImpl rootNode,
                       QName serviceName)
Method Detail

getServiceName

public QName getServiceName()
Specified by:
getServiceName in interface ServiceNode

exists

public boolean exists()
               throws ServiceLocatorException,
                      InterruptedException
Specified by:
exists in interface ServiceNode
Throws:
ServiceLocatorException
InterruptedException

ensureExists

public void ensureExists()
                  throws ServiceLocatorException,
                         InterruptedException
Specified by:
ensureExists in interface ServiceNode
Throws:
ServiceLocatorException
InterruptedException

ensureRemoved

public void ensureRemoved()
                   throws ServiceLocatorException,
                          InterruptedException
Specified by:
ensureRemoved in interface ServiceNode
Throws:
ServiceLocatorException
InterruptedException

getEndpointNames

public List<String> getEndpointNames()
                              throws ServiceLocatorException,
                                     InterruptedException
Specified by:
getEndpointNames in interface ServiceNode
Throws:
ServiceLocatorException
InterruptedException

getEndPoints

public List<EndpointNode> getEndPoints()
                                throws ServiceLocatorException,
                                       InterruptedException
Specified by:
getEndPoints in interface ServiceNode
Throws:
ServiceLocatorException
InterruptedException

getEndPoint

public EndpointNode getEndPoint(String endpoint)
Specified by:
getEndPoint in interface ServiceNode


Copyright © 2011–2015 Talend Inc.. All rights reserved.