|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.blb.BlbClient
public class BlbClient
Provides the client for accessing the Baidu Cloud network Service Baidu Load Balance (BLB).
Field Summary |
---|
Fields inherited from class com.baidubce.AbstractBceClient |
---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
Constructor Summary | |
---|---|
BlbClient()
Constructs a new client to invoke service methods on blb. |
|
BlbClient(BlbClientConfiguration clientConfiguration)
Constructs a new blb client using the client configuration to access network. |
Method Summary | |
---|---|
void |
addBackendServers(AddBackendServersRequest addBackendServersRequest)
Add backend servers to the specified blb. |
void |
addBackendServers(String blbId,
List<BackendServer> backendServerList)
Add backend servers to the specified blb. |
CreateBlbResponse |
createBlb(CreateBlbRequest createBlbRequest)
Create a blb with the specified options. |
CreateBlbResponse |
createBlb(String name,
String desc,
String vpcId,
String subnetId)
Create a blb with the specified options. |
void |
createListener(BlbListenerRequest blbListenerRequest)
Create a listener with the specified options. |
void |
deleteBackendServers(DeleteBSRequest deleteBSRequest)
Delete the specified backend server from the specified blb. |
void |
deleteBackendServers(String blbId,
List<String> backendServerList)
Delete the specified backend server from the specified blb. |
void |
deleteBlb(DeleteBlbRequest deleteBlbRequest)
Delete the specified blb. |
void |
deleteBlb(String blbId)
Delete the specified blb. |
void |
deleteListener(DeleteListenerRequest deleteListenerRequest)
Delete the specified listener. |
void |
deleteListener(String blbId,
List<Integer> portList)
Delete the specified listener. |
protected void |
fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest)
the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUT |
ListBackendServerResponse |
listBackendServers(ListBackendServerRequest listBackendServerRequest)
Return a list of backend server of the specified blb |
ListBackendServerResponse |
listBackendServers(String blbId)
Return a list of backend server of the specified blb. |
ListBackendServerStatusResponse |
listBackendServerStatus(ListBackendServerStatusRequest listBackendServerStatusRequest)
Return a list of healthStatus of backend server with the specified blb and listener port. |
ListBackendServerStatusResponse |
listBackendServerStatus(String blbId,
int listenerPort)
Return a list of healthStatus of backend servers with the specified blb and listener port. |
ListBlbResponse |
listBlbs(ListBlbRequest listBlbRequest)
Return a list of blbs with the specified options. |
ListBlbResponse |
listBlbs(String address,
String name,
String blbId,
String bccId)
Return a list of blbs with the specified options. |
ListListenerResponse<HttpListener> |
listHttpListener(String blbId)
Return a list of http listener with the specified options. |
ListListenerResponse<HttpsListener> |
listHttpsListener(String blbId)
Return a list of https listener with the specified options. |
ListListenerResponse |
listListener(ListListenerRequest listListenerRequest)
Return a list of listener with the specified options. |
ListListenerResponse<TcpListener> |
listTcpListener(String blbId)
Return a list of tcp listener with the specified options. |
ListListenerResponse<UdpListener> |
listUdpListener(String blbId)
Return a list of udp listener with the specified options. |
void |
modifyBackendServerAttributes(ModifyBSAttributesRequest modifyBSAttributesRequest)
Modifying the special backend servers of the specified blb. |
void |
modifyBackendServerAttributes(String blbId,
List<BackendServer> backendServerList)
Modifying the special backend servers of the specified blb. |
void |
modifyBlbAttributes(ModifyBlbAttributesRequest modifyBlbAttributesRequest)
Modifying the special attribute to new blb. |
void |
modifyBlbAttributes(String blbId,
String name,
String desc)
Modifying the special attribute to new blb. |
void |
modifyListenerAttributes(BlbListenerRequest modifyListenerAttributesRequest)
Modifying the special attribute to new listener. |
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 |
---|
public BlbClient()
public BlbClient(BlbClientConfiguration clientConfiguration)
clientConfiguration
- The blb client configuration options controlling how this client
connects to network (e.g. proxy settings, retry counts, etc).Method Detail |
---|
protected void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
internalRequest
- A request object, populated with endpoint, resource path, ready for callers to populate
any additional headers or parameters, and execute.bceRequest
- The original request, as created by the user.public CreateBlbResponse createBlb(String name, String desc, String vpcId, String subnetId)
name
- The name of blbdesc
- The description of blbvpcId
- The vpcId of blb
public CreateBlbResponse createBlb(CreateBlbRequest createBlbRequest)
createBlbRequest
- The request containing all options for creating a blb.
public ListBlbResponse listBlbs(String address, String name, String blbId, String bccId)
address
- The address of the blbname
- The name of the blb.blbId
- The id of the blb.bccId
- The bcc id of the blb.
public ListBlbResponse listBlbs(ListBlbRequest listBlbRequest)
listBlbRequest
- The request containing all options for listing blbs.
public void modifyBlbAttributes(String blbId, String name, String desc)
blbId
- The id of the blb.name
- The name after modifying.desc
- The description after modifying.public void modifyBlbAttributes(ModifyBlbAttributesRequest modifyBlbAttributesRequest)
modifyBlbAttributesRequest
- The request containing all options for modifying a blb.public void deleteBlb(String blbId)
blbId
- The id of the blb to delete.public void deleteBlb(DeleteBlbRequest deleteBlbRequest)
deleteBlbRequest
- The request containing all options for deleting blb.public void createListener(BlbListenerRequest blbListenerRequest)
blbListenerRequest
- The request containing all options for creating a listener.public ListListenerResponse<TcpListener> listTcpListener(String blbId)
blbId
- The blb id of the listener.
public ListListenerResponse<UdpListener> listUdpListener(String blbId)
blbId
- The blb id of the listener.
public ListListenerResponse<HttpListener> listHttpListener(String blbId)
blbId
- The blb id of the listener.
public ListListenerResponse<HttpsListener> listHttpsListener(String blbId)
blbId
- The blb id of the listener.
public ListListenerResponse listListener(ListListenerRequest listListenerRequest)
listListenerRequest
- The request containing all options for listing listeners.
public void modifyListenerAttributes(BlbListenerRequest modifyListenerAttributesRequest)
modifyListenerAttributesRequest
- The request containing all options for modifying listener.public void deleteListener(String blbId, List<Integer> portList)
blbId
- The blb id of the listener to delete.portList
- The ports of the listener to delete.public void deleteListener(DeleteListenerRequest deleteListenerRequest)
deleteListenerRequest
- The request containing all options for deleting listener.public void addBackendServers(String blbId, List<BackendServer> backendServerList)
blbId
- The id of blb to add backend server.backendServerList
- The backend servers to add.public void addBackendServers(AddBackendServersRequest addBackendServersRequest)
addBackendServersRequest
- The request containing all backend servers for adding to the specified blb.public ListBackendServerStatusResponse listBackendServerStatus(String blbId, int listenerPort)
blbId
- The id of the specified blb.listenerPort
- The specified listener port.
public ListBackendServerStatusResponse listBackendServerStatus(ListBackendServerStatusRequest listBackendServerStatusRequest)
listBackendServerStatusRequest
- The request containing all options for listing backend server healtStatus.
public ListBackendServerResponse listBackendServers(String blbId)
blbId
- The id of the blb.
public ListBackendServerResponse listBackendServers(ListBackendServerRequest listBackendServerRequest)
listBackendServerRequest
- The request containing all options for listing backend server.
public void modifyBackendServerAttributes(String blbId, List<BackendServer> backendServerList)
blbId
- The id of the specified blb.backendServerList
- The backend servers to modifying.public void modifyBackendServerAttributes(ModifyBSAttributesRequest modifyBSAttributesRequest)
modifyBSAttributesRequest
- The request containing all options for modifying backend servers.public void deleteBackendServers(String blbId, List<String> backendServerList)
blbId
- The id of the blb.backendServerList
- The id list of the backend server to deleting.public void deleteBackendServers(DeleteBSRequest deleteBSRequest)
deleteBSRequest
- The request containing all options for deleting backend server from the specified blb.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |