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

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

public class EndpointNodeImpl
extends NodePath
implements EndpointNode


Field Summary
static String LIVE
           
 
Fields inherited from class org.talend.esb.servicelocator.client.internal.NodePath
SEPARATOR
 
Constructor Summary
EndpointNodeImpl(ZKBackend backend, ServiceNodeImpl serviceNode, String endpointName)
           
 
Method Summary
 void ensureExists(byte[] content)
           
 void ensureRemoved()
           
 boolean exists()
           
 byte[] getContent()
           
 String getEndpointName()
           
 boolean isLive()
           
 void setContent(byte[] content)
           
 void setLive(boolean persistent)
           
 void setOffline()
           
 
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
 

Field Detail

LIVE

public static final String LIVE
See Also:
Constant Field Values
Constructor Detail

EndpointNodeImpl

public EndpointNodeImpl(ZKBackend backend,
                        ServiceNodeImpl serviceNode,
                        String endpointName)
Method Detail

getEndpointName

public String getEndpointName()
Specified by:
getEndpointName in interface EndpointNode

exists

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

ensureExists

public void ensureExists(byte[] content)
                  throws ServiceLocatorException,
                         InterruptedException
Specified by:
ensureExists in interface EndpointNode
Throws:
ServiceLocatorException
InterruptedException

ensureRemoved

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

setLive

public void setLive(boolean persistent)
             throws ServiceLocatorException,
                    InterruptedException
Specified by:
setLive in interface EndpointNode
Throws:
ServiceLocatorException
InterruptedException

setOffline

public void setOffline()
                throws ServiceLocatorException,
                       InterruptedException
Specified by:
setOffline in interface EndpointNode
Throws:
ServiceLocatorException
InterruptedException

getContent

public byte[] getContent()
                  throws ServiceLocatorException,
                         InterruptedException
Specified by:
getContent in interface EndpointNode
Throws:
ServiceLocatorException
InterruptedException

setContent

public void setContent(byte[] content)
                throws ServiceLocatorException,
                       InterruptedException
Specified by:
setContent in interface EndpointNode
Throws:
ServiceLocatorException
InterruptedException

isLive

public boolean isLive()
               throws ServiceLocatorException,
                      InterruptedException
Specified by:
isLive in interface EndpointNode
Throws:
ServiceLocatorException
InterruptedException


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