public final class Endpoints extends Object
| Modifier and Type | Method and Description |
|---|---|
static Endpoint |
createEndpoint(int port,
String name) |
static Endpoint |
findEndpoint(Node node,
short port) |
static Node |
findNode(Endpoint ep) |
static <N extends Node> |
findNode(Endpoint ep,
Class<N> clazz)
Find the containing node which must be of the provided type
|
static Endpoint |
registerEndpoint(Application app,
short port,
String name)
Register a new endpoint
The endpoint must not exists, but will exists after the call returns |
static Endpoint |
registerEndpoint(Node node,
short port,
String name)
Register a new endpoint
The endpoint must not exists, but will exists after the call returns |
public static Endpoint registerEndpoint(Application app, short port, String name)
public static Endpoint registerEndpoint(Node node, short port, String name)
public static <N extends Node> N findNode(Endpoint ep, Class<N> clazz)
ep - the endpointclazz - the node clazzIllegalStateException - if the endpoint is not contained by the correct node type