Package software.amazon.neptune.cluster
Class ClusterEndpointsRefreshAgent
- java.lang.Object
-
- software.amazon.neptune.cluster.ClusterEndpointsRefreshAgent
-
- All Implemented Interfaces:
AutoCloseable
public class ClusterEndpointsRefreshAgent extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ClusterEndpointsRefreshAgent(ClusterEndpointsFetchStrategy endpointsFetchStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawake()voidclose()NeptuneClusterMetadatagetClusterMetadata()<T extends EndpointsSelector>
EndpointCollectiongetEndpoints(T selector)static ClusterEndpointsRefreshAgentlambdaProxy(String lambdaName)static ClusterEndpointsRefreshAgentlambdaProxy(String lambdaName, String region)static ClusterEndpointsRefreshAgentlambdaProxy(String lambdaName, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider)static ClusterEndpointsRefreshAgentlambdaProxy(String lambdaName, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.ClientConfiguration clientConfiguration)static ClusterEndpointsRefreshAgentlambdaProxy(String lambdaName, String region, String iamProfile)static ClusterEndpointsRefreshAgentlambdaProxy(String lambdaName, String region, String iamProfile, com.amazonaws.ClientConfiguration clientConfiguration)static ClusterEndpointsRefreshAgentmanagementApi(String clusterId)static ClusterEndpointsRefreshAgentmanagementApi(String clusterId, String region)static ClusterEndpointsRefreshAgentmanagementApi(String clusterId, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider)static ClusterEndpointsRefreshAgentmanagementApi(String clusterId, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.ClientConfiguration clientConfiguration)static ClusterEndpointsRefreshAgentmanagementApi(String clusterId, String region, String iamProfile)static ClusterEndpointsRefreshAgentmanagementApi(String clusterId, String region, String iamProfile, com.amazonaws.ClientConfiguration clientConfiguration)static ClusterEndpointsRefreshAgentmonitor(Collection<GremlinClient> clients, long delay, TimeUnit timeUnit)static ClusterEndpointsRefreshAgentmonitor(GremlinClient client, long delay, TimeUnit timeUnit)<T extends EndpointsSelector>
voidstartPollingNeptuneAPI(Collection<RefreshTask> tasks, long delay, TimeUnit timeUnit)<T extends EndpointsSelector>
voidstartPollingNeptuneAPI(GremlinClient client, T selector, long delay, TimeUnit timeUnit)<T extends EndpointsSelector>
voidstartPollingNeptuneAPI(RefreshTask refreshTask, long delay, TimeUnit timeUnit)voidstartPollingNeptuneAPI(OnNewClusterMetadata onNewClusterMetadata, long delay, TimeUnit timeUnit)voidstop()
-
-
-
Constructor Detail
-
ClusterEndpointsRefreshAgent
public ClusterEndpointsRefreshAgent(ClusterEndpointsFetchStrategy endpointsFetchStrategy)
-
-
Method Detail
-
monitor
public static ClusterEndpointsRefreshAgent monitor(GremlinClient client, long delay, TimeUnit timeUnit)
-
monitor
public static ClusterEndpointsRefreshAgent monitor(Collection<GremlinClient> clients, long delay, TimeUnit timeUnit)
-
lambdaProxy
public static ClusterEndpointsRefreshAgent lambdaProxy(String lambdaName)
-
lambdaProxy
public static ClusterEndpointsRefreshAgent lambdaProxy(String lambdaName, String region)
-
lambdaProxy
public static ClusterEndpointsRefreshAgent lambdaProxy(String lambdaName, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider)
-
lambdaProxy
public static ClusterEndpointsRefreshAgent lambdaProxy(String lambdaName, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.ClientConfiguration clientConfiguration)
-
lambdaProxy
public static ClusterEndpointsRefreshAgent lambdaProxy(String lambdaName, String region, String iamProfile)
-
lambdaProxy
public static ClusterEndpointsRefreshAgent lambdaProxy(String lambdaName, String region, String iamProfile, com.amazonaws.ClientConfiguration clientConfiguration)
-
managementApi
public static ClusterEndpointsRefreshAgent managementApi(String clusterId)
-
managementApi
public static ClusterEndpointsRefreshAgent managementApi(String clusterId, String region)
-
managementApi
public static ClusterEndpointsRefreshAgent managementApi(String clusterId, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider)
-
managementApi
public static ClusterEndpointsRefreshAgent managementApi(String clusterId, String region, com.amazonaws.auth.AWSCredentialsProvider credentialsProvider, com.amazonaws.ClientConfiguration clientConfiguration)
-
managementApi
public static ClusterEndpointsRefreshAgent managementApi(String clusterId, String region, String iamProfile)
-
managementApi
public static ClusterEndpointsRefreshAgent managementApi(String clusterId, String region, String iamProfile, com.amazonaws.ClientConfiguration clientConfiguration)
-
startPollingNeptuneAPI
public <T extends EndpointsSelector> void startPollingNeptuneAPI(GremlinClient client, T selector, long delay, TimeUnit timeUnit)
-
startPollingNeptuneAPI
public <T extends EndpointsSelector> void startPollingNeptuneAPI(RefreshTask refreshTask, long delay, TimeUnit timeUnit)
-
startPollingNeptuneAPI
public <T extends EndpointsSelector> void startPollingNeptuneAPI(Collection<RefreshTask> tasks, long delay, TimeUnit timeUnit)
-
startPollingNeptuneAPI
public void startPollingNeptuneAPI(OnNewClusterMetadata onNewClusterMetadata, long delay, TimeUnit timeUnit)
-
stop
public void stop()
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getEndpoints
public <T extends EndpointsSelector> EndpointCollection getEndpoints(T selector)
-
getClusterMetadata
public NeptuneClusterMetadata getClusterMetadata()
-
awake
public void awake() throws InterruptedException, ExecutionException
-
-