1 #ifndef __CMS_CLUSTER__H
2 #define __CMS_CLUSTER__H
36 #include <netinet/in.h>
124 int sport,
const char *theNID,
const char *theIF);
135 char *Data,
int Dlen=0);
138 void *Data,
int Dlen);
143 void *Data,
int Dlen);
174 long long Refs() {
return SelWtot+SelRtot;}
196 int isrw,
int isMulti,
int ifWant);
200 void SLock(
bool dolock,
bool wrmode=
true)
214 int Stats(
char *bfr,
int bln);
215 int Statt(
char *bfr,
int bln);
222 int sport,
const char *theNID,
const char *theIF);
224 int Drop(
int sent,
int sinst,
XrdCmsDrop *djp=0);
225 void Record(
char *path,
const char *reason,
bool force=
false);
226 bool maxBits(
SMask_t mVec,
int mbits);
228 enum {eExists, eDups, eROfs, eNoRep, eNoSel, eNoEnt};
238 void setAltMan(
int snum,
XrdLink *lp,
int port);
244 static const int AltSize = 254;
248 int NodeWeight[
STMax];
260 char AltMans[
STMax*AltSize];
unsigned long long SMask_t
#define XRDOUC_ENUM_OPERATORS(T)
SMask_t getMask(const XrdNetAddr *addr)
void SLock(bool dolock, bool wrmode=true)
void Space(XrdCms::SpaceData &sData, SMask_t smask)
int Broadsend(SMask_t smask, XrdCms::CmsRRHdr &Hdr, void *Data, int Dlen)
int Select(XrdCmsSelect &Sel)
int Locate(XrdCmsSelect &Sel)
static const int EReplete
void ResetRef(SMask_t smask, bool isLocked=false)
SMask_t Broadcast(SMask_t, const struct iovec *, int, int tot=0)
XrdCmsSelected * List(SMask_t mask, CmsLSOpts opts, bool &oksel)
static const int RetryErr
XrdCmsNode * Add(XrdLink *lp, int dport, int Status, int sport, const char *theNID, const char *theIF)
static const int NotFound
static const int Wait4CBk
void Remove(XrdCmsNode *theNode)
int Stats(char *bfr, int bln)
virtual void BlackList(XrdOucTList *blP)
int Statt(char *bfr, int bln)
static struct XrdCl::None none
static const int CMS_hasAlts
static const int CMS_isSuper
static const int CMS_noSpace
static const int CMS_noStage
static const int CMS_Lost
static const int CMS_isMan
static const int CMS_Perm
static const int CMS_isVers3
static const int CMS_isPeer
static const int CMS_isProxy
static const int CMS_Suspend
static const int CMS_notServ