类 PeerConnClient


  • public class PeerConnClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Cloud network Service peer conn part.
    • 构造器详细资料

      • 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
      • 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;