Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
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   
00066   Event *_thisCallout;
00067 };
00068 
00069 #endif 
00070 
00071