Java EE 5 SDK

com.sun.appserv.management.config
Interface HealthCheckerConfigCR

All Known Subinterfaces:
ClusterRefConfig, ServerRefConfig

public interface HealthCheckerConfigCR

Supports creation and removal of health checker configurations.


Method Summary
 HealthCheckerConfig createHealthCheckerConfig(String url, String intervalInSeconds, String timeoutInSeconds)
          Creates a new health-checker.
 HealthCheckerConfig getHealthCheckerConfig()
           
 void removeHealthCheckerConfig()
          Removes a health checker config from the container config element
 

Method Detail

createHealthCheckerConfig

HealthCheckerConfig createHealthCheckerConfig(String url,
                                              String intervalInSeconds,
                                              String timeoutInSeconds)
Creates a new health-checker.

Parameters:
url - URL to ping so as to determine the health state of a listener. This must be a relative URL.
intervalInSeconds - Interval, in seconds, between health checks. A value of "0" means that the health check is disabled. Default is 30 seconds. Must be 0 or greater.
timeoutInSeconds - Maximum time, in seconds, that a server must respond to a health check request to be considered healthy. Default is 10 seconds. Must be greater than 0.
Returns:
A proxy to the HealthCheckerConfig MBean.

removeHealthCheckerConfig

void removeHealthCheckerConfig()
Removes a health checker config from the container config element


getHealthCheckerConfig

HealthCheckerConfig getHealthCheckerConfig()
Returns:
A proxy to the HealthCheckerConfig MBean. Could be null because the HealthCheckerConfig may not be present.

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.