All URIs are relative to http://localhost:9000
Method | HTTP request | Description |
---|---|---|
findNodeCandidates | POST /nodeCandidates | |
getNodeCandidate | GET /nodeCandidates/{id} | |
getSolution | GET /solution/{id} | |
solveMatchmaking | PUT /matchmaking |
List<NodeCandidate> findNodeCandidates(nodeRequirements)
Returns possible node candidates.
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.MatchmakingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
MatchmakingApi apiInstance = new MatchmakingApi(defaultClient);
List<Requirement> nodeRequirements = Arrays.asList(); // List<Requirement> | Node Request
try {
List<NodeCandidate> result = apiInstance.findNodeCandidates(nodeRequirements);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MatchmakingApi#findNodeCandidates");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
nodeRequirements | List<Requirement> | Node Request | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | ACCEPTED | - |
NodeCandidate getNodeCandidate(id)
Returns the node candidate with the given id if it exists.
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.MatchmakingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
MatchmakingApi apiInstance = new MatchmakingApi(defaultClient);
String id = "id_example"; // String | Unique identifier of the resource
try {
NodeCandidate result = apiInstance.getNodeCandidate(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MatchmakingApi#getNodeCandidate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique identifier of the resource |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The node candidate identified with the id | - |
Solution getSolution(id)
Returns a solution of the matchmaking process (if it is still available)
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.MatchmakingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
MatchmakingApi apiInstance = new MatchmakingApi(defaultClient);
String id = "id_example"; // String | Unique identifier of the resource
try {
Solution result = apiInstance.getSolution(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MatchmakingApi#getSolution");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique identifier of the resource |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The solution identified with the id | - |
Queue solveMatchmaking(nodeRequirements)
Solves a matchmaking problem
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.MatchmakingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
MatchmakingApi apiInstance = new MatchmakingApi(defaultClient);
NodeRequirements nodeRequirements = new NodeRequirements(); // NodeRequirements | The requirements with respect to nodes
try {
Queue result = apiInstance.solveMatchmaking(nodeRequirements);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MatchmakingApi#solveMatchmaking");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
nodeRequirements | NodeRequirements | The requirements with respect to nodes |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
202 | ACCEPTED | - |