org.talend.esb.locator
Class LocatorFeature

java.lang.Object
  extended by org.apache.cxf.feature.AbstractFeature
      extended by org.talend.esb.servicelocator.cxf.LocatorFeature
          extended by org.talend.esb.locator.LocatorFeature

Deprecated. use LocatorFeature instead.

@Deprecated
public class LocatorFeature
extends LocatorFeature

CXF feature to enable the locator client with an CXF service.


Constructor Summary
LocatorFeature()
          Deprecated.  
 
Method Summary
protected  ServiceLocatorManager getLocatorManager(org.apache.cxf.Bus bus)
          Deprecated.  
 void setConnectionTimeout(int connectionTimeout)
          Deprecated. Specify the time the service locator client waits for a connection to get established.
 void setEndpointPrefix(String prefix)
          Deprecated.  
 void setLocatorEndpoints(String endpoints)
          Deprecated. Specify the endpoints of all the instances belonging to the service locator ensemble the service locator client might be talking to.
 void setSessionTimeout(int sessionTimeout)
          Deprecated. Specify the time out of the session established at the server.
 
Methods inherited from class org.talend.esb.servicelocator.cxf.LocatorFeature
initialize, initialize, initialize, initialize, initialize, setAvailableEndpointProperties, setRequiredEndpointProperties, setSelectionStrategy
 
Methods inherited from class org.apache.cxf.feature.AbstractFeature
getActive, initializeProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorFeature

public LocatorFeature()
Deprecated. 
Method Detail

setLocatorEndpoints

public void setLocatorEndpoints(String endpoints)
Deprecated. 
Specify the endpoints of all the instances belonging to the service locator ensemble the service locator client might be talking to. The service locator client will one by one pick an endpoint (the order is non-deterministic) to connect to the service locator until a connection is established.

Parameters:
endpoints - comma separated list of endpoints,each corresponding to a servicelocator instance. Each endpoint is specified as a host:port pair. At least one endpoint must be specified. Valid exmaples are: "127.0.0.1:2181" or "sl1.example.com:3210, sl2.example.com:3210, sl3.example.com:3210"

setSessionTimeout

public void setSessionTimeout(int sessionTimeout)
Deprecated. 
Specify the time out of the session established at the server. The session is kept alive by requests sent by the client. If the session is idle for a period of time that would timeout the session, the client will send a PING request to keep the session alive.

Parameters:
sessionTimeout - timeout in milliseconds, must be greater than zero and less than 60000.

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Deprecated. 
Specify the time the service locator client waits for a connection to get established.

Parameters:
connectionTimeout - timeout in milliseconds, must be greater than zero

setEndpointPrefix

public void setEndpointPrefix(String prefix)
Deprecated. 

getLocatorManager

protected ServiceLocatorManager getLocatorManager(org.apache.cxf.Bus bus)
Deprecated. 
Overrides:
getLocatorManager in class LocatorFeature


Copyright © 2011 Talend Inc.. All Rights Reserved.