Project Wonder 5.0

com.webobjects.appserver._private
Class WOHostUtilities

java.lang.Object
  extended by com.webobjects.appserver._private.WOHostUtilities

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

Author:
Miguel Arroz (survs.com)

Constructor Summary
WOHostUtilities()
           
 
Method Summary
static boolean _isLocalInetAddress(InetAddress paramInetAddress, boolean paramBoolean)
           
static NSArray getLocalHosts()
           
static boolean isAnyLocalInetAddress(InetAddress paramInetAddress, boolean paramBoolean)
           
static boolean isLocalInetAddress(InetAddress paramInetAddress, boolean paramBoolean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOHostUtilities

public WOHostUtilities()
Method Detail

getLocalHosts

public static NSArray getLocalHosts()

isLocalInetAddress

public static boolean isLocalInetAddress(InetAddress paramInetAddress,
                                         boolean paramBoolean)

isAnyLocalInetAddress

public static boolean isAnyLocalInetAddress(InetAddress paramInetAddress,
                                            boolean paramBoolean)

_isLocalInetAddress

public static boolean _isLocalInetAddress(InetAddress paramInetAddress,
                                          boolean paramBoolean)

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.