org.mobicents.media.server
Class Server

java.lang.Object
  extended by org.mobicents.media.server.Server
All Implemented Interfaces:
MediaServer

public class Server
extends Object
implements MediaServer

Author:
kulikov

Field Summary
 org.apache.log4j.Logger logger
           
 
Constructor Summary
Server()
           
 
Method Summary
 void addInstaller(EndpointInstaller installer)
          Installs endpoints defined by specified installer.
 void addManager(ServerManager manager)
          (Non Java-doc.)
 String getBindAddress()
          Get the address to which this server is bound
 int getEndpointCount()
           
 Collection<Endpoint> getEndpoints()
           
 RTPManager getRtpManager()
          Gets the access to the RTP manager
 void install(Endpoint endpoint)
          Installs the specified endpoint.
 Endpoint lookup(String name, boolean bussy)
           
 Endpoint[] lookupall(String endpointName)
           
 void removeInstaller(EndpointInstaller installer)
          Uninstalls endpoint defined by specified endpoint installer.
 void removeManager(ServerManager manager)
          (Non Java-doc.)
 void setBindAddress(String bindAddress)
          Assigns the address to which this server will be bound.
 void setClock(Clock clock)
          Assigns clock instance.
 void setInterface(org.mobicents.media.server.io.network.UdpManager udpManager)
           
 void setScheduler(Scheduler scheduler)
           
 void start()
          Starts the server.
 void stop()
          Stops the server.
 void uninstalls(String name)
          Uninstalls the endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public org.apache.log4j.Logger logger
Constructor Detail

Server

public Server()
Method Detail

setClock

public void setClock(Clock clock)
Assigns clock instance.

Parameters:
clock -

getBindAddress

public String getBindAddress()
Get the address to which this server is bound

Returns:

setBindAddress

public void setBindAddress(String bindAddress)
Assigns the address to which this server will be bound.

Parameters:
bindAddress - the dotted IP address value

setScheduler

public void setScheduler(Scheduler scheduler)

getRtpManager

public RTPManager getRtpManager()
Gets the access to the RTP manager

Returns:

setInterface

public void setInterface(org.mobicents.media.server.io.network.UdpManager udpManager)

addInstaller

public void addInstaller(EndpointInstaller installer)
Installs endpoints defined by specified installer.

Parameters:
installer - the endpoints installer

removeInstaller

public void removeInstaller(EndpointInstaller installer)
Uninstalls endpoint defined by specified endpoint installer.

Parameters:
installer - the endpoints installer.

install

public void install(Endpoint endpoint)
Installs the specified endpoint.

Parameters:
endpoint - the endpoint to installed.

uninstalls

public void uninstalls(String name)
Uninstalls the endpoint.

Parameters:
name - the local name of the endpoint to be uninstalled

start

public void start()
           throws Exception
Starts the server.

Throws:
Exception

stop

public void stop()
Stops the server.


lookup

public Endpoint lookup(String name,
                       boolean bussy)
                throws ResourceUnavailableException
Specified by:
lookup in interface MediaServer
Throws:
ResourceUnavailableException

lookupall

public Endpoint[] lookupall(String endpointName)
                     throws ResourceUnavailableException
Specified by:
lookupall in interface MediaServer
Throws:
ResourceUnavailableException

getEndpointCount

public int getEndpointCount()
Specified by:
getEndpointCount in interface MediaServer

getEndpoints

public Collection<Endpoint> getEndpoints()
Specified by:
getEndpoints in interface MediaServer

addManager

public void addManager(ServerManager manager)
(Non Java-doc.)

Specified by:
addManager in interface MediaServer
See Also:
MediaServer.addManager(org.mobicents.media.server.spi.ServerManager)

removeManager

public void removeManager(ServerManager manager)
(Non Java-doc.)

Specified by:
removeManager in interface MediaServer
See Also:
MediaServer.removeManager(org.mobicents.media.server.spi.ServerManager)


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.