public final class OperationalEndpoint extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
disposeAll(Client client)
Dispose of all endpoints used by client.
|
static void |
disposeAll(Server server)
Dispose of all endpoints used by server.
|
static List<String> |
find(Client client)
Find endpoints that a client is attached to.
|
static List<String> |
find(Server server)
Find endpoints that a server is attached to.
|
org.eclipse.californium.core.network.CoapEndpoint |
getCoapEndpoint() |
static OperationalEndpoint |
getOrCreate(Client client,
AbstractEndpoint config)
Create an endpoint or return existing when already created
|
static OperationalEndpoint |
getOrCreate(Server server,
AbstractEndpoint config)
Create an endpoint attached to a server or return existing when already created
|
void |
setSchedulersIfNeeded(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.scheduler.SchedulerConfig schedulerConfig)
Set the schedulers of the endpoint when needed.
|
void |
startIfNeeded()
Start the endpoint when needed.
|
String |
toString()
String representation of the object.
|
public static OperationalEndpoint getOrCreate(Server server, AbstractEndpoint config) throws EndpointConstructionException
server - the server attached to the endpintconfig - The endpoint configuration.EndpointConstructionException - when endpoint cannot be created or usedpublic static OperationalEndpoint getOrCreate(Client client, AbstractEndpoint config) throws EndpointConstructionException
client - The client using this endpoint.config - The endpoint configuration.EndpointConstructionException - When the endpoint could not be constructed.public static List<String> find(Server server)
server - The server instance.public static List<String> find(Client client)
client - The client instance.public static void disposeAll(Server server)
server - The server instance.public static void disposeAll(Client client)
client - the client instance.public org.eclipse.californium.core.network.CoapEndpoint getCoapEndpoint()
public void setSchedulersIfNeeded(org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.api.scheduler.SchedulerConfig schedulerConfig)
schedulerService - The SchedulerService that delivers the schedulers.schedulerConfig - The scheduler configuration to use.public void startIfNeeded()
throws IOException
IOException - When the endpoint cannot setup io.Copyright © 2019–2024 Teslanet.nl. All rights reserved.