WOHostUtilities Class Reference

Collaboration diagram for WOHostUtilities:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static boolean _isLocalInetAddress (InetAddress paramInetAddress, boolean paramBoolean)
static NSArray getLocalHosts ()
static boolean isAnyLocalInetAddress (InetAddress paramInetAddress, boolean paramBoolean)
static boolean isLocalInetAddress (InetAddress paramInetAddress, boolean paramBoolean)

Static Package Functions

 [static initializer]
static void _addInetAddress (InetAddress paramInetAddress, NSMutableArray paramNSMutableArray)
static void _addInetAddressArray (InetAddress[] paramArrayOfInetAddress, NSMutableArray paramNSMutableArray)
static NSArray initLocalHosts ()

Static Package Attributes

static volatile NSArray _localHosts = null

Static Private Attributes

static final String LOCALHOST_IPS_PROPERTY_KEY = "er.extensions.WOHostUtilities.localhostips"
static final Logger log = Logger.getLogger( WOHostUtilities.class )


Detailed Description

This class replaces the WebObjects version to support loading a new IP as a local IP to the local hosts list. This will authorize that IP to send management requests, like stopping the application, or turning on the refuse new instance setting. This is necessary if WO does not automatically add the needed IP to the local host list. It happens when you use private IPs and is recognized as a problem on multi-homed linux servers.

When would you need to use this class? If you have a situation where app instances on a specific server do not respond to WOMonitor requests to STOP the instance, REFUSE SESSIONS and/or the instance summary Statistics do not display on the WOMonitor app Detail View page

This version of the class will read a supplemental list of IPs from the er.extensions.WOHostUtilities.localhostips property.

Usage: set the property above to an array of local IP addresses, for example: er.extensions.WOHostUtilities.localhostips=(192.168.3.160,192.168.3.161,192.168.3.162,192.168.3.162) You can put this property in the machine properties path, /etc/WebObjects/Properties, on each server with the ip addresses assigned to that server, or you can make a list of all ip addresses for all machines in a woa cluster subnet and add it to the app launch args in WOMonitor. Either way, the objective is to ensure that the app will not deny management requests from wotaskd instances that are running on any of the list of supplemental ip addresses that you provide

Author:
Miguel Arroz (survs.com)

Member Function Documentation

[static initializer] (  )  [static, package]

static void _addInetAddress ( InetAddress  paramInetAddress,
NSMutableArray  paramNSMutableArray 
) [static, package]

static void _addInetAddressArray ( InetAddress[]  paramArrayOfInetAddress,
NSMutableArray  paramNSMutableArray 
) [static, package]

static boolean _isLocalInetAddress ( InetAddress  paramInetAddress,
boolean  paramBoolean 
) [static]

static NSArray getLocalHosts (  )  [static]

static NSArray initLocalHosts (  )  [static, package]

static boolean isAnyLocalInetAddress ( InetAddress  paramInetAddress,
boolean  paramBoolean 
) [static]

static boolean isLocalInetAddress ( InetAddress  paramInetAddress,
boolean  paramBoolean 
) [static]


Member Data Documentation

volatile NSArray _localHosts = null [static, package]

final String LOCALHOST_IPS_PROPERTY_KEY = "er.extensions.WOHostUtilities.localhostips" [static, private]

final Logger log = Logger.getLogger( WOHostUtilities.class ) [static, private]


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

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