Application Class Reference

Inherits er::extensions::appserver::ERXApplication.

Collaboration diagram for Application:

Collaboration graph
[legend]

List of all members.

Classes

class  ListenThread

Public Member Functions

boolean allowsConcurrentRequestHandling ()
 Application ()
WORequest createRequest (String aMethod, String aURL, String anHTTPVersion, NSDictionary someHeaders, NSData aContent, NSDictionary someInfo)
void createRequestListenerThread ()
String defaultRequestHandlerClassName ()
WOResponse dispatchRequest (WORequest aRequest)
void finalize () throws Throwable
String getJMXDomain ()
MBeanServer getMBeanServer () throws IllegalAccessException
LocalMonitor localMonitor ()
String multicastAddress ()
String name ()
Number port ()
void readSiteConfigXML ()
void registerMBean (Object objMBean, String strDomainName, String strMBeanName) throws IllegalArgumentException
void setSiteConfig (MSiteConfig aConfig)
void setupRemoteMonitoring ()
boolean shouldRespondToMulticast ()
boolean shouldWriteAdaptorConfig ()
MSiteConfig siteConfig ()
void sleep ()

Static Public Member Functions

static void main (String argv[])

Public Attributes

_NSCollectionReaderWriterLock _lock

Private Member Functions

int intPort ()

Private Attributes

int _intPort
String _jmxAccessFile = null
String _jmxPasswordFile = null
String _jmxPort = null
LifebeatRequestHandler _lifebeatRequestHandler
LocalMonitor _localMonitor
MBeanServer _mbeanServer
String _mbsDomain
String _multicastAddress
Number _port
boolean _shouldRespondToMulticast
boolean _shouldWriteAdaptorConfig
MSiteConfig _siteConfig
ListenThread listenThread


Constructor & Destructor Documentation

Application (  ) 


Member Function Documentation

boolean allowsConcurrentRequestHandling (  ) 

WORequest createRequest ( String  aMethod,
String  aURL,
String  anHTTPVersion,
NSDictionary  someHeaders,
NSData  aContent,
NSDictionary  someInfo 
)

Creates the request object for this loop. Calls _createRequest(). For WO 5.3.

Reimplemented from ERXApplication.

void createRequestListenerThread (  ) 

String defaultRequestHandlerClassName (  ) 

WOResponse dispatchRequest ( WORequest  request  ) 

Overridden to allow for redirected responses and null the thread local storage.

Parameters:
request object
Returns:
response

Reimplemented from ERXApplication.

void finalize (  )  throws Throwable

String getJMXDomain (  ) 

============================================================================================ Methods Added for Enabling JMX in Wotaskd ============================================================================================ This methods creates the JMX Domain Name by appending the hostname, application name and the port. This is called from method registerMBean() whenever domain name is passed as null.

Returns:
_mbsDomain - String containing the Domain name to be used while registering the MBean

MBeanServer getMBeanServer (  )  throws IllegalAccessException

============================================================================================ Methods Added for Enabling JMX in Wotaskd ============================================================================================ This methods returns the platform MBean Server from the Factory

Returns:
_mbeanServer - The platform MBeanServer

int intPort (  )  [private]

LocalMonitor localMonitor (  ) 

static void main ( String  argv[]  )  [static]

String multicastAddress (  ) 

String name (  ) 

Adds the ability to completely change the applications name by setting the System property ERApplicationName. Will also append the nameSuffix if one is set.

Returns:
the computed name of the application.

Reimplemented from ERXApplication.

Number port (  ) 

void readSiteConfigXML (  ) 

Added by X-Provision Team This method reads the SiteConfig.xml file whenever it is invoked by the SiteConfigMBean

void registerMBean ( Object  objMBean,
String  strDomainName,
String  strMBeanName 
) throws IllegalArgumentException

============================================================================================ Methods Added for Enabling JMX in Wotaskd ============================================================================================ This methods registers the MBean object in the MBeanServer

Parameters:
objMBean - The MBean object to register
strDomainName - Domain name required for creating the ObjectName of the MBean
strMBeanName - Name of the MBean

void setSiteConfig ( MSiteConfig  aConfig  ) 

void setupRemoteMonitoring (  ) 

============================================================================================ Methods Added for Enabling JMX in Wotaskd ============================================================================================ This methods sets up this application for remote monitoring. This method creates a new connector server and associates it with the MBean Server. The server is started by calling the start() method. The connector server listens for the client connection requests and creates a connection for each one.

boolean shouldRespondToMulticast (  ) 

boolean shouldWriteAdaptorConfig (  ) 

MSiteConfig siteConfig (  ) 

void sleep (  ) 


Member Data Documentation

int _intPort [private]

String _jmxAccessFile = null [private]

String _jmxPort = null [private]

_NSCollectionReaderWriterLock _lock

MBeanServer _mbeanServer [private]

String _mbsDomain [private]

Number _port [private]

boolean _shouldRespondToMulticast [private]

boolean _shouldWriteAdaptorConfig [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:36 2012 for Project Wonder by  doxygen 1.5.8