org.talend.esb.servicelocator.client
Interface SLEndpoint

All Known Implementing Classes:
SLEndpointImpl

public interface SLEndpoint

An SLEndpoint describes a service endpoint stored in the ServiceLocator. In addition the properties and some additional meta data together with the status of the endpoint are provided.


Method Summary
 QName forService()
          Return the name of the service the endpoint belongs to.
 String getAddress()
          Return the address of the endpoint.
 BindingType getBinding()
          Return the binding of the endpoint.
 long getLastTimeStarted()
          Return the time the endpoint started the last time.
 long getLastTimeStopped()
          Return the time the endpoint stopped the last time.
 SLProperties getProperties()
          Return the properties associated to this endpoint.
 TransportType getTransport()
          Return the binding of the endpoint.
 boolean isLive()
          Indicates whether the server is up and running.
 

Method Detail

getAddress

String getAddress()
Return the address of the endpoint.

Returns:
address where to reach the endpoint

getBinding

BindingType getBinding()
Return the binding of the endpoint.

Returns:
the type of binding

getTransport

TransportType getTransport()
Return the binding of the endpoint.

Returns:
the type of binding

isLive

boolean isLive()
Indicates whether the server is up and running.

Returns:
true iff the service locator deems the endpoint running.

getProperties

SLProperties getProperties()
Return the properties associated to this endpoint.

Returns:
the properties, is always not null

getLastTimeStarted

long getLastTimeStarted()
Return the time the endpoint started the last time.

Returns:
the time in number of milliseconds since "the epoch"

getLastTimeStopped

long getLastTimeStopped()
Return the time the endpoint stopped the last time.

Returns:
the time in number of milliseconds since "the epoch"

forService

QName forService()
Return the name of the service the endpoint belongs to.

Returns:
the service name


Copyright © 2011 Talend Inc.. All Rights Reserved.