monitube-data_config.h

Go to the documentation of this file.
00001 /*
00002  * $Id: monitube-data_config.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 
00023 #ifndef __MONITUBE_DATA_CONFIG_H__
00024 #define __MONITUBE_DATA_CONFIG_H__
00025 
00026 
00027 /*** Constants ***/
00028 
00029 
00030 /*** Data structures ***/
00031 
00032 
00033 /*** GLOBAL/EXTERNAL Functions ***/
00034 
00035 
00045 status_t
00046 init_config(evContext ctx);
00047 
00048 
00058 void
00059 set_mastership(boolean state, in_addr_t master_addr);
00060 
00061 
00068 void
00069 set_replication_interval(uint8_t interval);
00070 
00071 
00077 uint8_t
00078 get_replication_interval(void);
00079 
00080 
00087 time_t
00088 get_current_time(void);
00089 
00090 
00094 void
00095 clear_config(void);
00096 
00097 
00101 void
00102 clear_monitors_configuration(void);
00103 
00104 
00108 void
00109 clear_mirrors_configuration(void);
00110 
00111 
00118 void
00119 delete_monitor(char * name);
00120 
00127 void
00128 delete_mirror(in_addr_t from);
00129 
00130 
00143 void
00144 delete_address(char * name, in_addr_t addr, in_addr_t mask);
00145 
00146 
00159 void
00160 add_address(char * name, in_addr_t addr, in_addr_t mask);
00161 
00162 
00172 void
00173 update_monitor(char * name, uint32_t rate);
00174 
00175 
00185 void
00186 update_mirror(in_addr_t from, in_addr_t to);
00187 
00188 
00200 uint32_t
00201 get_monitored_rate(in_addr_t address, char ** name);
00202 
00203 
00212 in_addr_t
00213 get_mirror(in_addr_t address);
00214 
00215 
00216 #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:27:02 2010 for SDK Your Net Corporation Monitube IPTV Monitoring Example: monitube-data 1.0 by Doxygen 1.5.1