|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.connection.Connections
public class Connections
Implements connection management subsystem. Procedure of joining endponts must work very fast however dynamic connection creation upon request cause long and unpredictable delays. Preallocated connection objects gives better result.
| Nested Class Summary | |
|---|---|
protected class |
Connections.Channel
Transmission channel between connections and endpoint |
protected class |
Connections.LocalChannel
Channel for joining connections in CNF mode. |
| Field Summary | |
|---|---|
protected ConcurrentHashMap<String,BaseConnection> |
activeConnections
|
protected Connections.Channel |
audioChannel
|
protected DspFactory |
dspFactory
Signaling processors factory |
protected BaseEndpointImpl |
endpoint
|
protected ConcurrentHashMap<String,Connections.LocalChannel> |
localChannels
active local channels |
protected RTPManager |
rtpManager
|
protected Scheduler |
scheduler
|
protected Connections.Channel |
videoChannel
|
| Constructor Summary | |
|---|---|
Connections(BaseEndpointImpl endpoint,
int localPoolSize,
int rtpPoolSize,
Boolean isLocalToRemote)
Creates new connections subsystem. |
|
| Method Summary | |
|---|---|
protected void |
addToConference(BaseConnection connection)
|
Connection |
createConnection(ConnectionType type)
Creates connection with specified type. |
int |
getActiveConnectionsCount()
|
protected String |
getChannelId(BaseConnection c1,
BaseConnection c2)
|
CheckPoint |
getCheckPoint(MediaType mediaType,
int n)
Reads data from specified check point. |
BaseEndpointImpl |
getEndpoint()
|
Mixer |
getMixer(MediaType mediaType)
Get access to the mixer. |
Splitter |
getSplitter(MediaType mediaType)
Gets access to the splitter. |
void |
release()
Closes all activities connections. |
void |
releaseConnection(BaseConnection connection,
ConnectionType type)
|
protected void |
removeFromConference(BaseConnection connection)
|
String |
report()
|
protected void |
updateConnectionChannels(BaseConnection connection)
|
void |
updateMode(MediaType mediaType)
Determines transmission mode between endpoint and connections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BaseEndpointImpl endpoint
protected Scheduler scheduler
protected ConcurrentHashMap<String,BaseConnection> activeConnections
protected Connections.Channel audioChannel
protected Connections.Channel videoChannel
protected ConcurrentHashMap<String,Connections.LocalChannel> localChannels
protected RTPManager rtpManager
protected DspFactory dspFactory
| Constructor Detail |
|---|
public Connections(BaseEndpointImpl endpoint,
int localPoolSize,
int rtpPoolSize,
Boolean isLocalToRemote)
throws Exception
endpoint - the endpoint running connectionspoolSize - the number of available connections.
Exception| Method Detail |
|---|
public BaseEndpointImpl getEndpoint()
public int getActiveConnectionsCount()
public Connection createConnection(ConnectionType type)
throws ResourceUnavailableException
type - the type of connection
ResourceUnavailableException
public void releaseConnection(BaseConnection connection,
ConnectionType type)
public void release()
public Mixer getMixer(MediaType mediaType)
mediaType - the type of the mixer: audio or video
public Splitter getSplitter(MediaType mediaType)
mediaType - the type of the splitter: audio or video
public void updateMode(MediaType mediaType)
throws ModeNotSupportedException
ModeNotSupportedException
protected String getChannelId(BaseConnection c1,
BaseConnection c2)
protected void addToConference(BaseConnection connection)
protected void updateConnectionChannels(BaseConnection connection)
protected void removeFromConference(BaseConnection connection)
public String report()
public CheckPoint getCheckPoint(MediaType mediaType,
int n)
n - the identifier of check point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||