类 PeerConnClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.peerconn.PeerConnClient
-
public class PeerConnClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service peer conn part.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 PeerConnClient()Constructs a new client to invoke service methods on network.PeerConnClient(PeerConnClientConfiguration clientConfiguration)Constructs a new network client using the client configuration to access network.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(PeerConnIdRequest request)Accept the apply of the specified peer conn.voidcloseSyncDns(SyncDnsRequest request)Open sync dns the specified peer conn.CreatePeerConnResponsecreatePeerConn(CreatePeerConnRequest request)Create a peer connection with the specified options.GetPeerConnResponsegetPeerConn(GetPeerConnRequest request)Get the detail information of specified peer conn.ListPeerConnResponselistPeerConn(ListPeerConnRequest request)voidmodifyBandwith(ModifyBandwidthRequest request)Modify bandwith for the specified peer conn.voidmodifyPeerConn(ModifyPeerConnRequest request)Modifying the specified peer conn.voidopenSyncDns(SyncDnsRequest request)Open sync dns the specified peer conn.voidpurchaseReserved(PurchaseReservedPeerConnRequest request)PrchaseReserved for the specified peer conn.voidreject(PeerConnIdRequest request)Reject the apply of the specified peer conn.voidrelease(PeerConnIdRequest request)Release the specified peer conn.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
PeerConnClient
public PeerConnClient()
Constructs a new client to invoke service methods on network.
-
PeerConnClient
public PeerConnClient(PeerConnClientConfiguration clientConfiguration)
Constructs a new network client using the client configuration to access network.- 参数:
clientConfiguration- The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
-
-
方法详细资料
-
createPeerConn
public CreatePeerConnResponse createPeerConn(CreatePeerConnRequest request)
Create a peer connection with the specified options. You must fill the field of clientToken,which is especially for keeping idempotent.- 参数:
request- The request containing all options for creating a peer connection.- 返回:
- peer connection id newly created
- 抛出:
BceClientException
-
listPeerConn
public ListPeerConnResponse listPeerConn(ListPeerConnRequest request)
-
getPeerConn
public GetPeerConnResponse getPeerConn(GetPeerConnRequest request)
Get the detail information of specified peer conn.- 参数:
request- The request of the network.- 返回:
- A peer conn detail model for the request.
-
modifyPeerConn
public void modifyPeerConn(ModifyPeerConnRequest request)
Modifying the specified peer conn.- 参数:
request- The request containing all options for modifying the peer conn;
-
accept
public void accept(PeerConnIdRequest request)
Accept the apply of the specified peer conn.- 参数:
request- The request containing all options for accepting apply the peer conn;
-
reject
public void reject(PeerConnIdRequest request)
Reject the apply of the specified peer conn.- 参数:
request- The request containing all options for rejecting apply the peer conn;
-
release
public void release(PeerConnIdRequest request)
Release the specified peer conn.- 参数:
request- The request containing all options for releasing the peer conn;
-
modifyBandwith
public void modifyBandwith(ModifyBandwidthRequest request)
Modify bandwith for the specified peer conn.- 参数:
request- The request containing all options for releasing the peer conn;
-
purchaseReserved
public void purchaseReserved(PurchaseReservedPeerConnRequest request)
PrchaseReserved for the specified peer conn.- 参数:
request- The request containing all options for releasing the peer conn;
-
openSyncDns
public void openSyncDns(SyncDnsRequest request)
Open sync dns the specified peer conn.- 参数:
request- The request containing all options for releasing the peer conn;
-
closeSyncDns
public void closeSyncDns(SyncDnsRequest request)
Open sync dns the specified peer conn.- 参数:
request- The request containing all options for releasing the peer conn;
-
-