|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.BaseEndpointImpl
public abstract class BaseEndpointImpl
Basic implementation of the endpoint.
| Field Summary | |
|---|---|
protected Connections |
connections
|
static int |
ENDPOINT_LOCAL_TO_REMOTE
|
static int |
ENDPOINT_NORMAL
|
static int |
ENDPOINT_REMOTE_TO_REMOTE
|
protected ArrayList<MediaType> |
mediaTypes
|
| Constructor Summary | |
|---|---|
BaseEndpointImpl(String localName,
int endpointType)
|
|
| Method Summary | |
|---|---|
abstract void |
block()
|
void |
configure(boolean isALaw)
|
Connection |
createConnection(ConnectionType type,
boolean isLocal)
(Non Java-doc.) |
void |
deleteAllConnections()
(Non Java-doc). |
void |
deleteConnection(Connection connection)
(Non Java-doc.) |
String |
describe(MediaType mediaType)
Gets the SDP of this endpoint. |
int |
getActiveConnectionsCount()
|
Clock |
getClock()
Provides access to the wall clock used by this endpoint and scheduler |
Connection |
getConnection(String connectionID)
|
Collection<Connection> |
getConnections()
|
DspFactory |
getDspFactory()
Gets access to the DSP factory. |
String |
getLocalName()
(Non Java-doc.) |
Collection<MediaType> |
getMediaTypes()
(Non Java-doc.) |
RTPManager |
getRtpManager()
Real time transmission over IP network service |
Scheduler |
getScheduler()
Provides access to the scheduler. |
abstract MediaSink |
getSink(MediaType media)
Provides access to the media sink. |
abstract MediaSource |
getSource(MediaType media)
Provides access to the media source. |
EndpointState |
getState()
(Non Java-doc.) |
void |
setDspFactory(DspFactory dspFactory)
Assigns DSP factory to this endpoint. |
void |
setLocalConnections(int localConnections)
Assigns number of local connections. |
void |
setRtpConnections(int rtpConnections)
Assigns number of rtp connections. |
void |
setRtpManager(RTPManager rtpManager)
Real time transmission over IP network service |
void |
setScheduler(Scheduler scheduler)
Assigns scheduler. |
protected void |
setState(EndpointState state)
Modifies state indicator. |
void |
start()
(Non Java-doc.) |
void |
stop()
(Non Java-doc.) |
abstract void |
unblock()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mobicents.media.server.spi.Endpoint |
|---|
getResource |
| Field Detail |
|---|
public static final int ENDPOINT_NORMAL
public static final int ENDPOINT_LOCAL_TO_REMOTE
public static final int ENDPOINT_REMOTE_TO_REMOTE
protected Connections connections
protected ArrayList<MediaType> mediaTypes
| Constructor Detail |
|---|
public BaseEndpointImpl(String localName,
int endpointType)
| Method Detail |
|---|
public String getLocalName()
getLocalName in interface EndpointEndpoint.getLocalName()public void setScheduler(Scheduler scheduler)
scheduler - the scheduler instance.public Scheduler getScheduler()
getScheduler in interface Endpointpublic Clock getClock()
public EndpointState getState()
getState in interface EndpointEndpoint.getState()protected void setState(EndpointState state)
state - the new value of the state indicator.public Collection<MediaType> getMediaTypes()
getMediaTypes in interface EndpointEndpoint.getMediaTypes()public void setDspFactory(DspFactory dspFactory)
setDspFactory in interface EndpointdspFactory - the DSP factory.public DspFactory getDspFactory()
public void setLocalConnections(int localConnections)
setLocalConnections in interface EndpointlocalConnections - the number of connections.public void setRtpConnections(int rtpConnections)
setRtpConnections in interface EndpointrtpConnections - the number of connections.public abstract MediaSink getSink(MediaType media)
media - the media type
public abstract MediaSource getSource(MediaType media)
media - the media type
public void start()
throws ResourceUnavailableException
start in interface EndpointResourceUnavailableExceptionEndpoint.start()public void stop()
stop in interface EndpointEndpoint.stop()public void setRtpManager(RTPManager rtpManager)
rtpManager - the entry point to the RTP servicepublic RTPManager getRtpManager()
public Collection<Connection> getConnections()
public String describe(MediaType mediaType)
throws ResourceUnavailableException
describe in interface EndpointmediaType -
ResourceUnavailableException
public Connection createConnection(ConnectionType type,
boolean isLocal)
throws TooManyConnectionsException,
ResourceUnavailableException
createConnection in interface EndpointTooManyConnectionsException
ResourceUnavailableExceptionorg.mobicents.media.server.spi.Endpoint#createConnection(org.mobicents.media.server.spi.ConnectionMode);public void deleteConnection(Connection connection)
deleteConnection in interface EndpointEndpoint.deleteConnection(Connection)public void deleteAllConnections()
deleteAllConnections in interface EndpointEndpoint.deleteAllConnections();public Connection getConnection(String connectionID)
public int getActiveConnectionsCount()
getActiveConnectionsCount in interface Endpointpublic void configure(boolean isALaw)
configure in interface Endpointpublic abstract void unblock()
public abstract void block()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||