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

P_ClusterLib.h

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   ClusterLib.h
00027 
00028 
00029 ****************************************************************************/
00030 
00031 #ifndef _P_ClusterLib_h
00032 #define _P_ClusterLib_h
00033 
00034 #include "P_Cluster.h"
00035 
00036 extern void cluster_set_priority(ClusterHandler *, ClusterVConnState *, int);
00037 extern void cluster_lower_priority(ClusterHandler *, ClusterVConnState *);
00038 extern void cluster_raise_priority(ClusterHandler *, ClusterVConnState *);
00039 extern void cluster_schedule(ClusterHandler *, ClusterVConnection *, ClusterVConnState *);
00040 extern void cluster_reschedule(ClusterHandler *, ClusterVConnection *, ClusterVConnState *);
00041 extern void cluster_disable(ClusterHandler *, ClusterVConnection *, ClusterVConnState *);
00042 extern void cluster_update_priority(ClusterHandler *, ClusterVConnection *, ClusterVConnState *, int64_t, int64_t);
00043 extern void cluster_bump(ClusterHandler *, ClusterVConnectionBase *, ClusterVConnState *, int);
00044 
00045 #if TEST_PARTIAL_READS
00046 extern int partial_readv(int, IOVec *, int, int);
00047 #endif
00048 
00049 #if TEST_PARTIAL_WRITES
00050 extern int partial_writev(int, IOVec *, int, int);
00051 #endif
00052 
00053 extern void dump_time_buckets();
00054 
00055 struct GlobalClusterPeriodicEvent;
00056 typedef int (GlobalClusterPeriodicEvent::*GClusterPEHandler) (int, void *);
00057 
00058 struct GlobalClusterPeriodicEvent:public Continuation
00059 {
00060   GlobalClusterPeriodicEvent();
00061   ~GlobalClusterPeriodicEvent();
00062   void init();
00063   int calloutEvent(Event * e, void *data);
00064 
00065   // Private data
00066   Event *_thisCallout;
00067 };
00068 
00069 #endif /* _ClusterLib_h */
00070 
00071 // End of ClusterLib.h

Generated by  doxygen 1.7.1