• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

ICPStats.cc

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 
00025 /****************************************************************************
00026 
00027   ICPStats.cc
00028 
00029 
00030 ****************************************************************************/
00031 
00032 #include "Main.h"
00033 #include "P_EventSystem.h"
00034 #include "P_Cache.h"
00035 #include "P_RecProcess.h"
00036 #include "ICP.h"
00037 
00038 struct RecRawStatBlock *icp_rsb;
00039 
00040 void
00041 ICPProcessor::InitICPStatCallbacks()
00042 {
00043   icp_rsb = RecAllocateRawStatBlock((int) icp_stat_count);
00044 
00045   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00046                      "proxy.process.icp.config_mgmt_callouts",
00047                      RECD_INT, RECP_PERSISTENT, (int) config_mgmt_callouts_stat, RecRawStatSyncCount);
00048   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00049                      "proxy.process.icp.reconfig_polls",
00050                      RECD_INT, RECP_PERSISTENT, (int) reconfig_polls_stat, RecRawStatSyncCount);
00051   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00052                      "proxy.process.icp.reconfig_events",
00053                      RECD_INT, RECP_PERSISTENT, (int) reconfig_events_stat, RecRawStatSyncCount);
00054   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00055                      "proxy.process.icp.invalid_poll_data",
00056                      RECD_INT, RECP_PERSISTENT, (int) invalid_poll_data_stat, RecRawStatSyncCount);
00057   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00058                      "proxy.process.icp.no_data_read",
00059                      RECD_INT, RECP_PERSISTENT, (int) no_data_read_stat, RecRawStatSyncCount);
00060   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00061                      "proxy.process.icp.short_read", RECD_INT, RECP_PERSISTENT, (int) short_read_stat, RecRawStatSyncCount);
00062   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00063                      "proxy.process.icp.invalid_sender",
00064                      RECD_INT, RECP_PERSISTENT, (int) invalid_sender_stat, RecRawStatSyncCount);
00065   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00066                      "proxy.process.icp.read_not_v2_icp",
00067                      RECD_INT, RECP_PERSISTENT, (int) read_not_v2_icp_stat, RecRawStatSyncCount);
00068   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00069                      "proxy.process.icp.icp_remote_query_requests",
00070                      RECD_INT, RECP_PERSISTENT, (int) icp_remote_query_requests_stat, RecRawStatSyncCount);
00071   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00072                      "proxy.process.icp.icp_remote_responses",
00073                      RECD_INT, RECP_PERSISTENT, (int) icp_remote_responses_stat, RecRawStatSyncCount);
00074   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00075                      "proxy.process.icp.cache_lookup_success",
00076                      RECD_INT, RECP_PERSISTENT, (int) icp_cache_lookup_success_stat, RecRawStatSyncCount);
00077   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00078                      "proxy.process.icp.cache_lookup_fail",
00079                      RECD_INT, RECP_PERSISTENT, (int) icp_cache_lookup_fail_stat, RecRawStatSyncCount);
00080   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00081                      "proxy.process.icp.query_response_write",
00082                      RECD_INT, RECP_PERSISTENT, (int) query_response_write_stat, RecRawStatSyncCount);
00083   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00084                      "proxy.process.icp.query_response_partial_write",
00085                      RECD_INT, RECP_PERSISTENT, (int) query_response_partial_write_stat, RecRawStatSyncCount);
00086   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00087                      "proxy.process.icp.no_icp_request_for_response",
00088                      RECD_INT, RECP_PERSISTENT, (int) no_icp_request_for_response_stat, RecRawStatSyncCount);
00089   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00090                      "proxy.process.icp.icp_response_request_nolock",
00091                      RECD_INT, RECP_PERSISTENT, (int) icp_response_request_nolock_stat, RecRawStatSyncCount);
00092   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00093                      "proxy.process.icp.icp_start_icpoff",
00094                      RECD_INT, RECP_PERSISTENT, (int) icp_start_icpoff_stat, RecRawStatSyncCount);
00095   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00096                      "proxy.process.icp.send_query_partial_write",
00097                      RECD_INT, RECP_PERSISTENT, (int) send_query_partial_write_stat, RecRawStatSyncCount);
00098   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00099                      "proxy.process.icp.icp_queries_no_expected_replies",
00100                      RECD_INT, RECP_PERSISTENT, (int) icp_queries_no_expected_replies_stat, RecRawStatSyncCount);
00101   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00102                      "proxy.process.icp.icp_query_hits",
00103                      RECD_INT, RECP_PERSISTENT, (int) icp_query_hits_stat, RecRawStatSyncCount);
00104   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00105                      "proxy.process.icp.icp_query_misses",
00106                      RECD_INT, RECP_PERSISTENT, (int) icp_query_misses_stat, RecRawStatSyncCount);
00107   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00108                      "proxy.process.icp.invalid_icp_query_response",
00109                      RECD_INT, RECP_PERSISTENT, (int) invalid_icp_query_response_stat, RecRawStatSyncCount);
00110   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00111                      "proxy.process.icp.icp_query_requests",
00112                      RECD_INT, RECP_PERSISTENT, (int) icp_query_requests_stat, RecRawStatSyncCount);
00113   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00114                      "proxy.process.icp.total_icp_response_time",
00115                      RECD_FLOAT, RECP_PERSISTENT, (int) total_icp_response_time_stat, RecRawStatSyncMHrTimeAvg);
00116   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00117                      "proxy.process.icp.total_udp_send_queries",
00118                      RECD_INT, RECP_PERSISTENT, (int) total_udp_send_queries_stat, RecRawStatSyncSum);
00119   RecRegisterRawStat(icp_rsb, RECT_PROCESS,
00120                      "proxy.process.icp.total_icp_request_time",
00121                      RECD_FLOAT, RECP_PERSISTENT, (int) total_icp_request_time_stat, RecRawStatSyncMHrTimeAvg);
00122 
00123 }
00124 
00125 // End of ICPStats.cc

Generated by  doxygen 1.7.1