All URIs are relative to http://127.0.0.1:18776/api/v1/module
Method | HTTP request | Description |
---|---|---|
addEventLoopGroup | POST /event-loop-group | add event-loop-group |
describeEventLoopGroup | GET /event-loop-group/{elg}/detail | get detailed info of one event-loop-group |
getEventLoopGroup | GET /event-loop-group/{elg} | get event-loop-group |
listEventLoopGroup | GET /event-loop-group | retrieve event-loop-group list |
removeEventLoopGroup | DELETE /event-loop-group/{elg} | remove event-loop-group |
addEventLoopGroup(body)
add event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopGroupApi;
EventLoopGroupApi apiInstance = new EventLoopGroupApi();
EventLoopGroupCreate body = new EventLoopGroupCreate(); // EventLoopGroupCreate |
try {
apiInstance.addEventLoopGroup(body);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopGroupApi#addEventLoopGroup");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | EventLoopGroupCreate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
EventLoopGroupDetail describeEventLoopGroup(elg)
get detailed info of one event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopGroupApi;
EventLoopGroupApi apiInstance = new EventLoopGroupApi();
String elg = "elg_example"; // String | name of the event-loop-group
try {
EventLoopGroupDetail result = apiInstance.describeEventLoopGroup(elg);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopGroupApi#describeEventLoopGroup");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
EventLoopGroup getEventLoopGroup(elg)
get event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopGroupApi;
EventLoopGroupApi apiInstance = new EventLoopGroupApi();
String elg = "elg_example"; // String | name of the event-loop-group
try {
EventLoopGroup result = apiInstance.getEventLoopGroup(elg);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopGroupApi#getEventLoopGroup");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<EventLoopGroup> listEventLoopGroup()
retrieve event-loop-group list
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopGroupApi;
EventLoopGroupApi apiInstance = new EventLoopGroupApi();
try {
List<EventLoopGroup> result = apiInstance.listEventLoopGroup();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopGroupApi#listEventLoopGroup");
e.printStackTrace();
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
removeEventLoopGroup(elg)
remove event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopGroupApi;
EventLoopGroupApi apiInstance = new EventLoopGroupApi();
String elg = "elg_example"; // String | name of the event-loop-group
try {
apiInstance.removeEventLoopGroup(elg);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopGroupApi#removeEventLoopGroup");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined