equilibrium-data_monitor.h

Go to the documentation of this file.
00001 /*
00002  * $Id: equilibrium-data_monitor.h 346460 2009-11-14 05:06:47Z ssiano $
00003  *
00004  * This code is provided as is by Juniper Networks SDK Developer Support.
00005  * It is provided with no warranties or guarantees, and Juniper Networks
00006  * will not provide support or maintenance of this code in any fashion.
00007  * The code is provided only to help a developer better understand how
00008  * the SDK can be used.
00009  * 
00010  * Copyright (c) 2008, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013 
00021 #ifndef __EQUILIBRIUM_DATA_MONITOR_H__
00022 #define __EQUILIBRIUM_DATA_MONITOR_H__
00023 
00024 
00025 /*** Constants ***/
00026 
00027 
00028 /*** Data Structures ***/
00029 
00030 
00031 /*** GLOBAL/EXTERNAL Functions ***/
00032 
00033 
00034 
00047 status_t
00048 init_monitor(evContext ctx, int cpu);
00049 
00050 
00054 void
00055 shutdown_monitor(void);
00056 
00057 
00078 void
00079 monitor_add_server(uint16_t ss_id,
00080                    in_addr_t app_addr,
00081                    uint16_t app_port,
00082                    in_addr_t server_addr,
00083                    eq_smon_t * monitor);
00084 
00085 
00101 void
00102 monitor_remove_server(uint16_t ss_id,
00103                       in_addr_t app_addr,
00104                       uint16_t app_port,
00105                       in_addr_t server_addr);
00106 
00107 
00120 void
00121 monitor_remove_all_servers_in_app(uint16_t ss_id,
00122                                   in_addr_t app_addr,
00123                                   uint16_t app_port);
00124 
00125 
00132 void
00133 monitor_remove_all_servers_in_service_set(uint16_t ss_id);
00134 
00135 
00154 void
00155 change_monitoring_config(uint16_t ss_id,
00156                          in_addr_t app_addr,
00157                          uint16_t app_port,
00158                          eq_smon_t * monitor);
00159 
00160 
00177 in_addr_t
00178 monitor_get_server_for(uint16_t ss_id,
00179                        in_addr_t app_addr,
00180                        uint16_t app_port);
00181 
00182 
00198 void
00199 monitor_remove_session_for_server(uint16_t ss_id,
00200                                   in_addr_t app_addr,
00201                                   uint16_t app_port,
00202                                   in_addr_t server_addr);
00203 
00204 
00208 void
00209 monitor_send_stats(void);
00210 
00211 #endif

2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:56 2010 for SDK Your Net Corporation Equilibrium Load Balancer Example: equilibrium-data 1.0 by Doxygen 1.5.1