org.talend.esb.servicelocator.client.internal
Class SLEndpointImpl

java.lang.Object
  extended by org.talend.esb.servicelocator.client.internal.ContentHolder
      extended by org.talend.esb.servicelocator.client.internal.SLEndpointImpl
All Implemented Interfaces:
SLEndpoint

public class SLEndpointImpl
extends ContentHolder
implements SLEndpoint


Field Summary
 
Fields inherited from class org.talend.esb.servicelocator.client.internal.ContentHolder
epd, epr
 
Constructor Summary
SLEndpointImpl(QName serviceName, byte[] content, boolean live)
           
 
Method Summary
 QName forService()
          Return the name of the service the endpoint belongs to.
 boolean isLive()
          Indicates whether the server is up and running.
 
Methods inherited from class org.talend.esb.servicelocator.client.internal.ContentHolder
getAddress, getBinding, getContent, getLastTimeStarted, getLastTimeStopped, getProperties, getTransport, setAddress, setLastTimeStarted, setLastTimeStopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.talend.esb.servicelocator.client.SLEndpoint
getAddress, getBinding, getLastTimeStarted, getLastTimeStopped, getProperties, getTransport
 

Constructor Detail

SLEndpointImpl

public SLEndpointImpl(QName serviceName,
                      byte[] content,
                      boolean live)
               throws ServiceLocatorException
Throws:
ServiceLocatorException
Method Detail

forService

public QName forService()
Description copied from interface: SLEndpoint
Return the name of the service the endpoint belongs to.

Specified by:
forService in interface SLEndpoint
Returns:
the service name

isLive

public boolean isLive()
Description copied from interface: SLEndpoint
Indicates whether the server is up and running.

Specified by:
isLive in interface SLEndpoint
Returns:
true iff the service locator deems the endpoint running.


Copyright © 2011 Talend Inc.. All Rights Reserved.