|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.wowza.wms.server.Server
public class Server
| Field Summary | |
|---|---|
static ILogNotify |
logNotifier
|
| Constructor Summary | |
|---|---|
Server()
|
|
| Method Summary | |
|---|---|
void |
addServerListener(IServerNotify serverListener)
Add server listener |
String |
decodeStorageDir(IVHost vhost,
String storageDir)
|
void |
doWatchdog()
|
com.wowza.wms.admin.AdminAgent |
getAdminAgent()
|
java.util.List |
getAdminInterfaceObjectList()
Get the list of objects exposed through JMX interface |
com.wowza.util.RandomIdGenerator |
getClientIdGenerator()
Get the client id generator for the server |
int |
getClientIdGeneratorRecycleDelaySize()
|
int |
getClientIdGeneratorRecycleSize()
|
long |
getClientIdGeneratorTimeout()
|
Object |
getCommandInterface()
|
HostPort |
getCommandInterfaceHostPort()
Get the definition of the command interface |
long |
getCommittedVirtuallMemory()
|
ConnectionCounter |
getConnectionCounter()
Get the server connection counter. |
com.wowza.wms.client.ConnectionCounterSimple |
getConnectionCounter(int counterIndex)
Get the server connection counter for a specific technology (see IVHost.COUNTER_*) |
IConnectionValidator |
getConnectionValidator()
|
int |
getCoreHandlerPoolSize()
Get the handler core thread pool size. |
int |
getCoreTransportPoolSize()
Get the transport core thread pool size. |
int |
getCryptoPoolActiveCount()
|
int |
getCryptoPoolMaxSize()
|
long |
getCurrentHeapSize()
|
String |
getDateStarted()
Get the date and time the server was started. |
java.util.Properties |
getDynamicLogProperties()
Get the dynamic log properties defined at the server level in conf/log4j.properties |
String |
getGUID()
|
ThreadPool |
getHandlerThreadPool()
Get the server handler thread pool. |
static Server |
getInstance()
|
IOPerformanceCounter |
getIoPerformanceCounter()
Get the server performance counter. |
IOPerformanceCounter |
getIoPerformanceCounter(int counterIndex)
Get the server performance counter for a specific technology (see IVHost.COUNTER_*) |
com.wowza.wms.server.JMXRemoteConfig |
getJmxRemoteConfig()
|
long |
getLiveThreads()
|
long |
getMaxHeapSize()
|
long |
getPeakThreads()
|
WMSProperties |
getProperties()
Get server level properties collection |
String |
getSessionGUID()
|
ThreadPool |
getThreadPool()
Get the server handler thread pool. |
String |
getTimeRunning()
Get a formatted String of how long the server has been running. |
double |
getTimeRunningSeconds()
Get time running in seconds |
ThreadPool |
getTransportThreadPool()
Get the server transport thread pool. |
com.wowza.wms.transport.udp.UDPPortManager |
getUDPPortManager()
Get the UDP port manager which manages the allocation of incoming UDP port binding to be sure there are not port conflicts |
com.wowza.wms.transport.udp.UDPPortSharingManager |
getUDPPortSharingManager()
Get the UDP port sharing manager. |
String[] |
getUserAgents()
Get a pipe "|" delimited list of user agents that the server recognizes as RTMPT client. |
String |
getVersion()
Get server version number. |
VHostList |
getVHostList()
Returns the interface to the VHostList for the server |
boolean |
isDynamicLogContextLoaded(String logContext)
Returns true of the given dynamic log context is already loaded. |
boolean |
isSuspended()
Is the server current suspended |
static void |
main(String[] args)
|
void |
onNewVHost(IVHost vhost)
|
String |
readConfig(String sName)
Method to read xml config file.. |
static String |
readXMLConfig(String sPath)
|
void |
reloadVHostConfig()
Reload the VHosts.xml file. |
void |
removeServerListener(IServerNotify serverListener)
Remove server listener |
void |
setCommandInterface(Object commandInterface)
|
void |
setCommandInterfaceHostPort(HostPort commandInterfaceHostPort)
Set the definition for the command interface. |
void |
setCoreHandlerPoolSize(int corePoolSize)
Set the handler core thread pool size. |
void |
setCoreTransportPoolSize(int corePoolSize)
Set the transport core thread pool size. |
void |
setDynamicLogProperties(java.util.Properties dynamicLogProperties)
Set the dynamic log properties set at the server level |
void |
setIoPerformanceCounter(IOPerformanceCounter ioPerformanceCounter)
|
void |
setUserAgents(String[] userAgents)
Set a pipe "|" delimited list of user agents that the server recognizes as RTMPT client. |
static void |
start()
|
void |
startCommandInterface()
Start the command interface as defined in Server.xml. |
void |
startServer()
|
void |
startVHost(String vhostName)
Start a vHost by name. |
void |
startVHosts()
Start all vHosts |
void |
stopAdminAgent()
Stop the JMX interface |
void |
stopCommandInterface()
Stop the command interface as defined in Server.xml. |
void |
stopServer()
|
void |
stopVHost(String vhostName)
Stop a vHost by name. |
void |
stopVHosts()
Stop all vHosts |
void |
suspendAllVHosts()
Suspend all virtual hosts (Calls IVHost.suspendAllHostPorts for each vhost) |
void |
suspendCommandInterface()
|
void |
suspendServer()
Suspend all virtual hosts and the command interface |
void |
unbindAllVHosts()
Unbind all virtual hosts (Calls IVHost.unbindAllHostPorts for each vhost) |
IOPerformanceCounter |
updateIOPerformance()
|
void |
updateLoggingDuration()
|
boolean |
writeConfig(String sName,
String data)
Method to write xml config file.. |
static boolean |
writeXMLConfig(String sPath,
String data)
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ILogNotify logNotifier
| Constructor Detail |
|---|
public Server()
| Method Detail |
|---|
public void addServerListener(IServerNotify serverListener)
IServer
addServerListener in interface IServerserverListener - server listener
public String decodeStorageDir(IVHost vhost,
String storageDir)
public void doWatchdog()
public com.wowza.wms.admin.AdminAgent getAdminAgent()
public java.util.List getAdminInterfaceObjectList()
IServer
getAdminInterfaceObjectList in interface IServerpublic com.wowza.util.RandomIdGenerator getClientIdGenerator()
IServer
getClientIdGenerator in interface IServerpublic int getClientIdGeneratorRecycleDelaySize()
public int getClientIdGeneratorRecycleSize()
public long getClientIdGeneratorTimeout()
public Object getCommandInterface()
public HostPort getCommandInterfaceHostPort()
IServer
getCommandInterfaceHostPort in interface IServerpublic long getCommittedVirtuallMemory()
public ConnectionCounter getConnectionCounter()
IServer
getConnectionCounter in interface IServerpublic com.wowza.wms.client.ConnectionCounterSimple getConnectionCounter(int counterIndex)
IServer
getConnectionCounter in interface IServercounterIndex - counter index (see IVHost.COUNTER_*)
public IConnectionValidator getConnectionValidator()
public int getCoreHandlerPoolSize()
IServer
getCoreHandlerPoolSize in interface IServerpublic int getCoreTransportPoolSize()
IServer
getCoreTransportPoolSize in interface IServerpublic int getCryptoPoolActiveCount()
public int getCryptoPoolMaxSize()
public long getCurrentHeapSize()
public String getDateStarted()
IServer
getDateStarted in interface IServerpublic java.util.Properties getDynamicLogProperties()
IServer
getDynamicLogProperties in interface IServerpublic String getGUID()
public ThreadPool getHandlerThreadPool()
IServer
getHandlerThreadPool in interface IServerpublic static Server getInstance()
public IOPerformanceCounter getIoPerformanceCounter()
IServer
getIoPerformanceCounter in interface IServerpublic IOPerformanceCounter getIoPerformanceCounter(int counterIndex)
IServer
getIoPerformanceCounter in interface IServercounterIndex - counter index (see IVHost.COUNTER_*)
public com.wowza.wms.server.JMXRemoteConfig getJmxRemoteConfig()
public long getLiveThreads()
public long getMaxHeapSize()
public long getPeakThreads()
public WMSProperties getProperties()
IServer
getProperties in interface IServerpublic String getSessionGUID()
public ThreadPool getThreadPool()
IServer
getThreadPool in interface IServerpublic String getTimeRunning()
IServer
getTimeRunning in interface IServerpublic double getTimeRunningSeconds()
IServer
getTimeRunningSeconds in interface IServerpublic ThreadPool getTransportThreadPool()
IServer
getTransportThreadPool in interface IServerpublic com.wowza.wms.transport.udp.UDPPortManager getUDPPortManager()
IServer
getUDPPortManager in interface IServerpublic com.wowza.wms.transport.udp.UDPPortSharingManager getUDPPortSharingManager()
IServer
getUDPPortSharingManager in interface IServerpublic String[] getUserAgents()
IServer
getUserAgents in interface IServerpublic String getVersion()
IServer
getVersion in interface IServerpublic VHostList getVHostList()
IServer
getVHostList in interface IServerpublic boolean isDynamicLogContextLoaded(String logContext)
IServer
isDynamicLogContextLoaded in interface IServerpublic boolean isSuspended()
IServer
isSuspended in interface IServerpublic static void main(String[] args)
public void onNewVHost(IVHost vhost)
public String readConfig(String sName)
IServer
readConfig in interface IServerpublic static String readXMLConfig(String sPath)
public void reloadVHostConfig()
IServer
reloadVHostConfig in interface IServerpublic void removeServerListener(IServerNotify serverListener)
IServer
removeServerListener in interface IServerserverListener - server listenerpublic void setCommandInterface(Object commandInterface)
public void setCommandInterfaceHostPort(HostPort commandInterfaceHostPort)
IServer
setCommandInterfaceHostPort in interface IServercommandInterfaceHostPort - host port definition of command interfacepublic void setCoreHandlerPoolSize(int corePoolSize)
IServer
setCoreHandlerPoolSize in interface IServercorePoolSize - core thread pool sizepublic void setCoreTransportPoolSize(int corePoolSize)
IServer
setCoreTransportPoolSize in interface IServercorePoolSize - core thread pool sizepublic void setDynamicLogProperties(java.util.Properties dynamicLogProperties)
IServer
setDynamicLogProperties in interface IServerdynamicLogProperties - dynamic log properties defined at the server levelpublic void setIoPerformanceCounter(IOPerformanceCounter ioPerformanceCounter)
public void setUserAgents(String[] userAgents)
IServer
setUserAgents in interface IServeruserAgents - pipe "|" delimited list of user agents that the server recognizes as RTMPT clientpublic static void start()
public void startCommandInterface()
IServer
startCommandInterface in interface IServerpublic void startServer()
public void startVHost(String vhostName)
IServer
startVHost in interface IServervhostName - vHost namepublic void startVHosts()
IServer
startVHosts in interface IServerpublic void stopAdminAgent()
IServer
stopAdminAgent in interface IServerpublic void stopCommandInterface()
IServer
stopCommandInterface in interface IServerpublic void stopServer()
public void stopVHost(String vhostName)
IServer
stopVHost in interface IServervhostName - vHost namepublic void stopVHosts()
IServer
stopVHosts in interface IServerpublic void suspendAllVHosts()
IServer
suspendAllVHosts in interface IServerpublic void suspendCommandInterface()
public void suspendServer()
IServer
suspendServer in interface IServerpublic void unbindAllVHosts()
IServer
unbindAllVHosts in interface IServerpublic IOPerformanceCounter updateIOPerformance()
public void updateLoggingDuration()
public boolean writeConfig(String sName,
String data)
IServer
writeConfig in interface IServer
public static boolean writeXMLConfig(String sPath,
String data)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||