public class WOHostUtilities extends Object
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
Constructor and Description |
---|
WOHostUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
_isLocalInetAddress(InetAddress paramInetAddress,
boolean paramBoolean) |
static NSArray |
getLocalHosts() |
static boolean |
isAnyLocalInetAddress(InetAddress paramInetAddress,
boolean paramBoolean) |
static boolean |
isLocalInetAddress(InetAddress paramInetAddress,
boolean paramBoolean) |
public static NSArray getLocalHosts()
public static boolean isLocalInetAddress(InetAddress paramInetAddress, boolean paramBoolean)
public static boolean isAnyLocalInetAddress(InetAddress paramInetAddress, boolean paramBoolean)
public static boolean _isLocalInetAddress(InetAddress paramInetAddress, boolean paramBoolean)
Copyright © 2002 – 2024 Project Wonder.