com.baidubce.services.peerconn
Class PeerConnClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.peerconn.PeerConnClient

public class PeerConnClient
extends AbstractBceClient

Provides the client for accessing the Baidu Cloud network Service peer conn part.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
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.
 
Method Summary
 void accept(PeerConnIdRequest request)
          Accept the apply of the specified peer conn.
 void closeSyncDns(SyncDnsRequest request)
          Open sync dns the specified peer conn.
 CreatePeerConnResponse createPeerConn(CreatePeerConnRequest request)
          Create a peer connection with the specified options.
 GetPeerConnResponse getPeerConn(GetPeerConnRequest request)
          Get the detail information of specified peer conn.
 ListPeerConnResponse listPeerConn(ListPeerConnRequest request)
           
 void modifyBandwith(ModifyBandwidthRequest request)
          Modify bandwith for the specified peer conn.
 void modifyPeerConn(ModifyPeerConnRequest request)
          Modifying the specified peer conn.
 void openSyncDns(SyncDnsRequest request)
          Open sync dns the specified peer conn.
 void purchaseReserved(PurchaseReservedPeerConnRequest request)
          PrchaseReserved for the specified peer conn.
 void reject(PeerConnIdRequest request)
          Reject the apply of the specified peer conn.
 void release(PeerConnIdRequest request)
          Release the specified peer conn.
 
Methods inherited from class com.baidubce.AbstractBceClient
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Parameters:
clientConfiguration - The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
Method Detail

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.

Parameters:
request - The request containing all options for creating a peer connection.
Returns:
peer connection id newly created
Throws:
BceClientException

listPeerConn

public ListPeerConnResponse listPeerConn(ListPeerConnRequest request)

getPeerConn

public GetPeerConnResponse getPeerConn(GetPeerConnRequest request)
Get the detail information of specified peer conn.

Parameters:
request - The request of the network.
Returns:
A peer conn detail model for the request.

modifyPeerConn

public void modifyPeerConn(ModifyPeerConnRequest request)
Modifying the specified peer conn.

Parameters:
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.

Parameters:
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.

Parameters:
request - The request containing all options for rejecting apply the peer conn;

release

public void release(PeerConnIdRequest request)
Release the specified peer conn.

Parameters:
request - The request containing all options for releasing the peer conn;

modifyBandwith

public void modifyBandwith(ModifyBandwidthRequest request)
Modify bandwith for the specified peer conn.

Parameters:
request - The request containing all options for releasing the peer conn;

purchaseReserved

public void purchaseReserved(PurchaseReservedPeerConnRequest request)
PrchaseReserved for the specified peer conn.

Parameters:
request - The request containing all options for releasing the peer conn;

openSyncDns

public void openSyncDns(SyncDnsRequest request)
Open sync dns the specified peer conn.

Parameters:
request - The request containing all options for releasing the peer conn;

closeSyncDns

public void closeSyncDns(SyncDnsRequest request)
Open sync dns the specified peer conn.

Parameters:
request - The request containing all options for releasing the peer conn;


Copyright © 2018. All rights reserved.