public interface Endpoint
| Modifier and Type | Method and Description |
|---|---|
void |
configure(boolean isALaw)
Configure Endpoint.
|
Connection |
createConnection(ConnectionType type,
Boolean isLocal)
Creates new connection with specified mode.
|
void |
deleteAllConnections()
Deletes all connection associated with this Endpoint.
|
void |
deleteConnection(Connection connection)
Deletes specified connection.
|
void |
deleteConnection(Connection connection,
ConnectionType type)
Deletes specified connection.
|
int |
getActiveConnectionsCount()
Gets number of active connections associated with this Endpoint.
|
String |
getLocalName()
Gets the local name attribute.
|
Component |
getResource(MediaType mediaType,
ComponentType componentType)
Provides access to the specific resource of the endpoint.
|
PriorityQueueScheduler |
getScheduler()
Gets the scheduler
|
EndpointState |
getState()
Gets the current state of the endpoint
|
boolean |
hasResource(MediaType mediaType,
ComponentType componentType)
Provides access to the specific resource of the endpoint.
|
void |
modeUpdated(ConnectionMode oldMode,
ConnectionMode newMode)
Notifies that mode has been update on one of connections
|
void |
releaseResource(MediaType mediaType,
ComponentType componentType)
Allows to release resource when not needed anymore
|
void |
setScheduler(PriorityQueueScheduler scheduler)
Sets the scheduler
|
void |
start()
Starts endpoint.
|
void |
stop()
Terminates endpoint's execution.
|
String getLocalName()
EndpointState getState()
void start()
throws ResourceUnavailableException
ResourceUnavailableExceptionvoid stop()
Connection createConnection(ConnectionType type, Boolean isLocal) throws ResourceUnavailableException
type - transport typeResourceUnavailableExceptionvoid deleteConnection(Connection connection)
connection - the connection to be deleted.void deleteConnection(Connection connection, ConnectionType type)
connection - the connection to be deleted.void modeUpdated(ConnectionMode oldMode, ConnectionMode newMode)
connection - the connection to be deleted.void deleteAllConnections()
int getActiveConnectionsCount()
void configure(boolean isALaw)
PriorityQueueScheduler getScheduler()
void setScheduler(PriorityQueueScheduler scheduler)
Component getResource(MediaType mediaType, ComponentType componentType)
component - type of the requested resourceboolean hasResource(MediaType mediaType, ComponentType componentType)
component - type of the requested resourcevoid releaseResource(MediaType mediaType, ComponentType componentType)
component - type of the requested resourceCopyright © 2017 TeleStax, Inc.. All Rights Reserved.