|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.resource.ChannelFactory
public class ChannelFactory
Factory class for creating channels.
| Constructor Summary | |
|---|---|
ChannelFactory()
|
|
| Method Summary | |
|---|---|
java.util.List |
getComponents()
Gets the list of components which will be placed into the new channel. |
int |
getCoreSize()
Get amount of prestarted channels. |
int |
getMaxSize()
Get maximum size of prestarted channels. |
java.util.List |
getPipes()
Gets the existing list of pipes. |
Channel |
newInstance(org.mobicents.media.server.spi.Endpoint endpoint)
Returns new channel. |
void |
release(Channel channel)
Informs factory that specified channel not longer used. |
void |
setComponents(java.util.List components)
Sets the list of components which will be placed into the new channel. |
void |
setCoreSize(int coreSize)
Define amount of initialy prestarted channels. |
void |
setMaxSize(int maxSize)
Define max pools size; |
void |
setPipes(java.util.List<PipeFactory> pipes)
Modify pipe list. |
void |
start()
Starts this factory. |
void |
stop()
Stop this factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelFactory()
| Method Detail |
|---|
public Channel newInstance(org.mobicents.media.server.spi.Endpoint endpoint)
throws org.mobicents.media.server.spi.ResourceUnavailableException
UnknownComponentException
org.mobicents.media.server.spi.ResourceUnavailableExceptionpublic int getCoreSize()
public int getMaxSize()
public void setCoreSize(int coreSize)
coreSize - the number of prestarted channels.public void setMaxSize(int maxSize)
maxSize - the maximum size of pool.public void setPipes(java.util.List<PipeFactory> pipes)
pipes - the list of pipes beans defining media flow pathpublic java.util.List getPipes()
public java.util.List getComponents()
public void setComponents(java.util.List components)
public void release(Channel channel)
channel - the reference to unused channel.
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||