![]() |
XRootD
|
#include <XrdSsiCms.hh>
Public Member Functions | |
XrdSsiCms () | |
XrdSsiCms (XrdCmsClient *cmsP) | |
virtual | ~XrdSsiCms () |
void | Added (const char *name, bool pend=false) |
bool | DataContext () |
const char *const * | Managers (int &mNum) |
int | Release (int n=1) |
void | Removed (const char *name) |
int | Reserve (int n=1) |
int | Resource (int n) |
void | Resume (bool perm=true) |
void | Suspend (bool perm=true) |
void | Utilization (unsigned int util, bool alert=false) |
![]() | |
XrdSsiCluster () | |
Destructor. More... | |
virtual | ~XrdSsiCluster () |
Definition at line 37 of file XrdSsiCms.hh.
|
inline |
Definition at line 74 of file XrdSsiCms.hh.
XrdSsiCms::XrdSsiCms | ( | XrdCmsClient * | cmsP | ) |
Definition at line 52 of file XrdSsiCms.cc.
References XrdCmsClient::Managers(), XrdOucTList::next, and XrdOucTList::text.
|
virtual |
Definition at line 111 of file XrdSsiCms.cc.
|
virtual |
Notify the cluster of a newly added endpoint name or whose state has changed on on this server node.
name | The logical name. |
pend | When true, the name is scheduled to be present in the future. |
Implements XrdSsiCluster.
Definition at line 81 of file XrdSsiCms.cc.
References XrdCmsClient::Added(), XrdOucStats::Bump(), XrdSsiStats::ResAdds, and XrdSsi::Stats.
|
inlinevirtual |
Determine whether or not the SSI plug-in is running in a data context.
Implements XrdSsiCluster.
Definition at line 43 of file XrdSsiCms.hh.
|
inlinevirtual |
Obtain the list of nodes that are managing this cluster.
mNum | Place to put the number of managers in the returned array. |
Implements XrdSsiCluster.
Definition at line 46 of file XrdSsiCms.hh.
|
inlinevirtual |
Increase the amount of resource available. When transitioning from a a non-positive to a positive resource amount, perform a resume so that additional clients may be dispatched to this server.
n | The value to add to the resources available (default 1). The total amount is capped by the amount specified by Resource(). |
Implements XrdSsiCluster.
Definition at line 66 of file XrdSsiCms.hh.
References XrdCmsClient::Release().
|
virtual |
Notify the cluster that a name is no longer available on this server node.
name | The logical name that is no longer available. |
Implements XrdSsiCluster.
Definition at line 96 of file XrdSsiCms.cc.
References XrdOucStats::Bump(), XrdCmsClient::Removed(), XrdSsiStats::ResRems, and XrdSsi::Stats.
|
inlinevirtual |
Decrease the amount of resources available. When the available resources becomes non-positive, perform a temporary suspend to prevent additional clients from being dispatched to this server.
n | The value by which resources are decreased (default 1). |
Implements XrdSsiCluster.
Definition at line 61 of file XrdSsiCms.hh.
References XrdCmsClient::Reserve().
|
inlinevirtual |
Enable the Reserve() & Release() methods.
n | a positive integer that specifies the amount of resource units that are available. It may be reset at any time. |
Implements XrdSsiCluster.
Definition at line 56 of file XrdSsiCms.hh.
References XrdCmsClient::Resource().
|
inlinevirtual |
Resume service after a suspension.
perm | When true the resume persist across server restarts. Otherwise, it is treated as a temporary request. |
Implements XrdSsiCluster.
Definition at line 50 of file XrdSsiCms.hh.
References XrdCmsClient::Resume().
|
inlinevirtual |
Suspend service.
perm | When true the suspend persist across server restarts. Otherwise, it is treated as a temporary request. |
Implements XrdSsiCluster.
Definition at line 53 of file XrdSsiCms.hh.
References XrdCmsClient::Suspend().
|
inlinevirtual |
Report utilization of this server. This may be used in lieu of general performance metric reporting. For consistent results use only one method.
util | A value from 0 to 100 representing utilization. Values greater than 100 are set to be 100. |
alert | When true the utilization is forcibly report to the cluster managers. Otherwise, reporting is done only when it will significantly change server selection. |
Implements XrdSsiCluster.
Definition at line 71 of file XrdSsiCms.hh.
References XrdCmsClient::Utilization().