|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Endpoint
The basic implementation of the endpoint. An Endpoint is a logical representation of a physical entity, such as an analog phone or a channel in a trunk. Endpoints are sources or sinks of data and can be physical or virtual. Physical endpoint creation requires hardware installation while software is sufficient for creating a virtual Endpoint. An interface on a gateway that terminates a trunk connected to a PSTN switch is an example of a physical Endpoint. An audio source in an audio-content server is an example of a virtual Endpoint.
| Method Summary | |
|---|---|
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. |
Scheduler |
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(Scheduler scheduler)
Sets the scheduler |
void |
start()
Starts endpoint. |
void |
stop()
Terminates endpoint's execution. |
| Method Detail |
|---|
String getLocalName()
EndpointState getState()
void start()
throws ResourceUnavailableException
ResourceUnavailableExceptionvoid stop()
Connection createConnection(ConnectionType type,
Boolean isLocal)
throws ResourceUnavailableException
type - transport type
ResourceUnavailableExceptionvoid 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)
Scheduler getScheduler()
void setScheduler(Scheduler scheduler)
Component getResource(MediaType mediaType,
ComponentType componentType)
component - type of the requested resource
boolean hasResource(MediaType mediaType,
ComponentType componentType)
component - type of the requested resource
void releaseResource(MediaType mediaType,
ComponentType componentType)
component - type of the requested resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||