All URIs are relative to http://127.0.0.1:18776/api/v1/module
Method | HTTP request | Description |
---|---|---|
addEventLoop | POST /event-loop-group/{elg}/event-loop | add event-loop into event-loop-group |
describeEventLoop | GET /event-loop-group/{elg}/event-loop/{el}/detail | get detailed info of one event-loop in event-loop-group |
getEventLoop | GET /event-loop-group/{elg}/event-loop/{el} | get event-loop in event-loop-group |
listEventLoop | GET /event-loop-group/{elg}/event-loop | retrieve event-loop list from event-loop-group |
removeEventLoop | DELETE /event-loop-group/{elg}/event-loop/{el} | remove event-loop from event-loop-group |
addEventLoop(elg, body)
add event-loop into event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopApi;
EventLoopApi apiInstance = new EventLoopApi();
String elg = "elg_example"; // String | name of the event-loop-group
EventLoopCreate body = new EventLoopCreate(); // EventLoopCreate |
try {
apiInstance.addEventLoop(elg, body);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopApi#addEventLoop");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group | |
body | EventLoopCreate |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
EventLoopDetail describeEventLoop(elg, el)
get detailed info of one event-loop in event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopApi;
EventLoopApi apiInstance = new EventLoopApi();
String elg = "elg_example"; // String | name of the event-loop-group
String el = "el_example"; // String | name of the event-loop
try {
EventLoopDetail result = apiInstance.describeEventLoop(elg, el);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopApi#describeEventLoop");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group | |
el | String | name of the event-loop |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
EventLoop getEventLoop(elg, el)
get event-loop in event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopApi;
EventLoopApi apiInstance = new EventLoopApi();
String elg = "elg_example"; // String | name of the event-loop-group
String el = "el_example"; // String | name of the event-loop
try {
EventLoop result = apiInstance.getEventLoop(elg, el);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopApi#getEventLoop");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group | |
el | String | name of the event-loop |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<EventLoop> listEventLoop(elg)
retrieve event-loop list from event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopApi;
EventLoopApi apiInstance = new EventLoopApi();
String elg = "elg_example"; // String | name of the event-loop-group
try {
List<EventLoop> result = apiInstance.listEventLoop(elg);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopApi#listEventLoop");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group |
No authorization required
- Content-Type: Not defined
- Accept: application/json
removeEventLoop(elg, el)
remove event-loop from event-loop-group
// Import classes:
//import vproxy.client.ApiException;
//import vproxy.client.model.EventLoopApi;
EventLoopApi apiInstance = new EventLoopApi();
String elg = "elg_example"; // String | name of the event-loop-group
String el = "el_example"; // String | name of the event-loop
try {
apiInstance.removeEventLoop(elg, el);
} catch (ApiException e) {
System.err.println("Exception when calling EventLoopApi#removeEventLoop");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
elg | String | name of the event-loop-group | |
el | String | name of the event-loop |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined