public class TunnelClient extends Object implements TunnelClientInterface
| 构造器和说明 |
|---|
TunnelClient(String endpoint,
CredentialsProvider credsProvider,
String instanceName,
ClientConfiguration config,
ResourceManager resourceManager)
Constructs a new
TunnelClient instance using the specified TableStore Endpoint and default configurations. |
TunnelClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName)
Constructs a new
TunnelClient instance using the specified TableStore Endpoint and default configuration. |
TunnelClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
ClientConfiguration config)
Constructs a new
TunnelClient instance using the specified TableStore Endpoint and configuration. |
TunnelClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
ClientConfiguration config,
String stsToken)
Constructs a new
TunnelClient instance using the specified TableStore Endpoint and default configuration. |
TunnelClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
ClientConfiguration config,
String stsToken,
ExecutorService callbackExecutor)
Constructs a new
TunnelClient instance using the specified TableStore Endpoint and default configuration. |
TunnelClient(String endpoint,
String accessKeyId,
String accessKeySecret,
String instanceName,
String stsToken)
Constructs a new
TunnelClient instance using the specified TableStore Endpoint and default configuration. |
| 限定符和类型 | 方法和说明 |
|---|---|
com.alicloud.openservices.tablestore.model.tunnel.internal.CheckpointResponse |
checkpoint(com.alicloud.openservices.tablestore.model.tunnel.internal.CheckpointRequest request)
Advanced Interface: Not recommended for direct use.
|
com.alicloud.openservices.tablestore.model.tunnel.internal.ConnectTunnelResponse |
connectTunnel(com.alicloud.openservices.tablestore.model.tunnel.internal.ConnectTunnelRequest request)
Advanced interface: Not recommended for direct use.
|
CreateTunnelResponse |
createTunnel(CreateTunnelRequest request)
Create a Tunnel.
|
DeleteTunnelResponse |
deleteTunnel(DeleteTunnelRequest request)
Delete a Tunnel.
|
DescribeTunnelResponse |
describeTunnel(DescribeTunnelRequest request)
Get the specific information under a certain Tunnel.
|
com.alicloud.openservices.tablestore.model.tunnel.internal.GetCheckpointResponse |
getCheckpoint(com.alicloud.openservices.tablestore.model.tunnel.internal.GetCheckpointRequest request)
Advanced Interface: Not recommended for direct use.
|
ClientConfiguration |
getClientConfig()
Returns the client configuration
|
String |
getEndpoint()
Returns the TableStore Endpoint being accessed.
|
String |
getInstanceName()
Returns the name of the accessed instance
|
com.alicloud.openservices.tablestore.model.tunnel.internal.HeartbeatResponse |
heartbeat(com.alicloud.openservices.tablestore.model.tunnel.internal.HeartbeatRequest request)
Advanced Interface: Not recommended for direct use.
|
ListTunnelResponse |
listTunnel(ListTunnelRequest request)
Get the Tunnel information for a specific table.
|
com.alicloud.openservices.tablestore.model.tunnel.internal.ReadRecordsResponse |
readRecords(com.alicloud.openservices.tablestore.model.tunnel.internal.ReadRecordsRequest request)
Advanced Interface: Not recommended for direct use.
|
void |
setExtraHeaders(Map<String,String> extraHeaders) |
void |
shutdown()
Release resources.
|
com.alicloud.openservices.tablestore.model.tunnel.internal.ShutdownTunnelResponse |
shutdownTunnel(com.alicloud.openservices.tablestore.model.tunnel.internal.ShutdownTunnelRequest request)
Advanced Interface: Not recommended for direct use.
|
public TunnelClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName)
TunnelClient instance using the specified TableStore Endpoint and default configuration.endpoint - The endpoint of the TableStore service.accessKeyId - The Access ID for accessing the TableStore service.accessKeySecret - The Access Key for accessing the TableStore service.instanceName - The instance name for accessing the TableStore service.public TunnelClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, String stsToken)
TunnelClient instance using the specified TableStore Endpoint and default configuration.endpoint - The endpoint of the TableStore service.accessKeyId - The Access ID for accessing the TableStore service.accessKeySecret - The Access Key for accessing the TableStore service.instanceName - The instance name for accessing the TableStore service.stsToken - Sts Token.public TunnelClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, ClientConfiguration config)
TunnelClient instance using the specified TableStore Endpoint and configuration.endpoint - The endpoint of the TableStore service.accessKeyId - The Access ID for accessing the TableStore service.accessKeySecret - The Access Key for accessing the TableStore service.instanceName - The instance name for accessing the TableStore service.config - The client configuration information (ClientConfiguration). If null is passed, the default configuration will be used.public TunnelClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, ClientConfiguration config, String stsToken)
TunnelClient instance using the specified TableStore Endpoint and default configuration.endpoint - The endpoint of the TableStore service.accessKeyId - The Access ID for accessing the TableStore service.accessKeySecret - The Access Key for accessing the TableStore service.instanceName - The instance name for accessing the TableStore service.config - The client configuration information (ClientConfiguration). If null is passed, the default configuration will be used.stsToken - Sts Token.public TunnelClient(String endpoint, String accessKeyId, String accessKeySecret, String instanceName, ClientConfiguration config, String stsToken, ExecutorService callbackExecutor)
TunnelClient instance using the specified TableStore Endpoint and default configuration.endpoint - The endpoint of the TableStore service.accessKeyId - The Access ID for accessing the TableStore service.accessKeySecret - The Access Key for accessing the TableStore service.instanceName - The instance name for accessing the TableStore service.config - The client configuration information (ClientConfiguration). If null is passed, the default configuration will be used.stsToken - Sts Token.callbackExecutor - The thread pool for executing callbacks. Note that this thread pool will also be shut down when the client is shut down.public TunnelClient(String endpoint, CredentialsProvider credsProvider, String instanceName, ClientConfiguration config, ResourceManager resourceManager)
TunnelClient instance using the specified TableStore Endpoint and default configurations.public String getEndpoint()
public String getInstanceName()
public ClientConfiguration getClientConfig()
public CreateTunnelResponse createTunnel(CreateTunnelRequest request) throws TableStoreException, ClientException
TunnelClientInterfacecreateTunnel 在接口中 TunnelClientInterfacerequest - Parameters required for creating a Tunnel, see CreateTunnelRequestCreateTunnelResponseTableStoreException - Exception returned by the TableStore serviceClientException - Invalid request response or network exception encounteredpublic ListTunnelResponse listTunnel(ListTunnelRequest request) throws TableStoreException, ClientException
TunnelClientInterfacelistTunnel 在接口中 TunnelClientInterfacerequest - Parameters required to list Tunnels under a table, see ListTunnelRequestListTunnelResponseTableStoreException - Exception returned by the TableStore serviceClientException - Invalid request response or network exception encounteredpublic DescribeTunnelResponse describeTunnel(DescribeTunnelRequest request) throws TableStoreException, ClientException
TunnelClientInterfacedescribeTunnel 在接口中 TunnelClientInterfacerequest - Parameters required to describe the detailed information of a certain Tunnel, see DescribeTunnelRequestDescribeTunnelResponseTableStoreException - Exception returned by the TableStore serviceClientException - The response result of the request is invalid, or a network exception occurredpublic DeleteTunnelResponse deleteTunnel(DeleteTunnelRequest request) throws TableStoreException, ClientException
TunnelClientInterfacedeleteTunnel 在接口中 TunnelClientInterfacerequest - Parameters required to delete a Tunnel, see DeleteTunnelRequestDeleteTunnelResponseTableStoreException - Exception returned by the TableStore serviceClientException - Invalid request response or network exception encounteredpublic com.alicloud.openservices.tablestore.model.tunnel.internal.ConnectTunnelResponse connectTunnel(com.alicloud.openservices.tablestore.model.tunnel.internal.ConnectTunnelRequest request)
throws TableStoreException,
ClientException
TunnelClientInterfaceconnectTunnel 在接口中 TunnelClientInterfacerequest - Parameters required to connect to a Tunnel, see ConnectTunnelRequest for detailsConnectTunnelResponse for detailsTableStoreException - Exception returned by the TableStore serviceClientException - Invalid response from the request or network exception encounteredpublic com.alicloud.openservices.tablestore.model.tunnel.internal.HeartbeatResponse heartbeat(com.alicloud.openservices.tablestore.model.tunnel.internal.HeartbeatRequest request)
throws TableStoreException,
ClientException
TunnelClientInterfaceheartbeat 在接口中 TunnelClientInterfacerequest - Parameters required for detecting the heartbeat, see HeartbeatRequest for details.HeartbeatResponse for details.TableStoreException - Exception returned by the TableStore serviceClientException - Invalid return result of the request or network exception encounteredpublic com.alicloud.openservices.tablestore.model.tunnel.internal.ShutdownTunnelResponse shutdownTunnel(com.alicloud.openservices.tablestore.model.tunnel.internal.ShutdownTunnelRequest request)
throws TableStoreException,
ClientException
TunnelClientInterfaceshutdownTunnel 在接口中 TunnelClientInterfacerequest - Parameters required to shut down a TunnelClient, see ShutdownTunnelRequestShutdownTunnelResponseTableStoreException - Exception returned by the TableStore serviceClientException - Invalid response or network exception encountered during the requestpublic com.alicloud.openservices.tablestore.model.tunnel.internal.GetCheckpointResponse getCheckpoint(com.alicloud.openservices.tablestore.model.tunnel.internal.GetCheckpointRequest request)
throws TableStoreException,
ClientException
TunnelClientInterfacegetCheckpoint 在接口中 TunnelClientInterfacerequest - Parameters required to get the Checkpoint of a specific Channel, see GetCheckpointRequestTableStoreException - Exception returned by the TableStore serviceClientException - Invalid response from the request or network exception encounteredpublic com.alicloud.openservices.tablestore.model.tunnel.internal.ReadRecordsResponse readRecords(com.alicloud.openservices.tablestore.model.tunnel.internal.ReadRecordsRequest request)
throws TableStoreException,
ClientException
TunnelClientInterfacereadRecords 在接口中 TunnelClientInterfacerequest - Read data from a specific Channel, see details in ReadRecordsRequestTableStoreException - Exception returned by the TableStore serviceClientException - Invalid response result or network exception encountered during the requestpublic com.alicloud.openservices.tablestore.model.tunnel.internal.CheckpointResponse checkpoint(com.alicloud.openservices.tablestore.model.tunnel.internal.CheckpointRequest request)
throws TableStoreException,
ClientException
TunnelClientInterfacecheckpoint 在接口中 TunnelClientInterfacerequest - Set the Checkpoint for a specific ChannelTableStoreException - Exception returned by the TableStore serviceClientException - The response result is invalid or a network exception occurredpublic void shutdown()
TunnelClientInterfaceMake sure to release resources after all requests have been executed. After releasing resources, no further requests can be sent, and ongoing requests may not return results.
shutdown 在接口中 TunnelClientInterfaceCopyright © 2025. All Rights Reserved.