#include <XrdSsiCms.hh>
◆ XrdSsiCms() [1/2]
◆ XrdSsiCms() [2/2]
◆ ~XrdSsiCms()
virtual XrdSsiCms::~XrdSsiCms |
( |
| ) |
|
|
virtual |
◆ Added()
void XrdSsiCms::Added |
( |
const char * |
name, |
|
|
bool |
pend = false |
|
) |
| |
|
virtual |
Notify the cluster of a newly added endpoint name or whose state has changed on on this server node.
- Parameters
-
name | The logical name. |
pend | When true, the name is scheduled to be present in the future. |
Implements XrdSsiCluster.
◆ DataContext()
bool XrdSsiCms::DataContext |
( |
| ) |
|
|
inlinevirtual |
Determine whether or not the SSI plug-in is running in a data context.
- Returns
- true running in a data context (i.e. xrootd).
-
false running is a meta context (i.e. cmsd).
Implements XrdSsiCluster.
◆ Managers()
const char *const * XrdSsiCms::Managers |
( |
int & |
mNum | ) |
|
|
inlinevirtual |
Obtain the list of nodes that are managing this cluster.
- Parameters
-
mNum | Place to put the number of managers in the returned array. |
- Returns
- The vector of nodes being used with mNum set to the number of elements. The list is considered permanent and is not deleted.
Implements XrdSsiCluster.
References manList, and manNum.
◆ Release()
int XrdSsiCms::Release |
( |
int |
n = 1 | ) |
|
|
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.
- Parameters
-
n | The value to add to the resources available (default 1). The total amount is capped by the amount specified by Resource(). |
- Returns
- The amount of resource left.
Implements XrdSsiCluster.
References XrdCmsClient::Release(), and theCms.
◆ Removed()
void XrdSsiCms::Removed |
( |
const char * |
name | ) |
|
|
virtual |
Notify the cluster that a name is no longer available on this server node.
- Parameters
-
name | The logical name that is no longer available. |
Implements XrdSsiCluster.
◆ Reserve()
int XrdSsiCms::Reserve |
( |
int |
n = 1 | ) |
|
|
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.
- Parameters
-
n | The value by which resources are decreased (default 1). |
- Returns
- The amount of resource left.
Implements XrdSsiCluster.
References XrdCmsClient::Reserve(), and theCms.
◆ Resource()
int XrdSsiCms::Resource |
( |
int |
n | ) |
|
|
inlinevirtual |
◆ Resume()
void XrdSsiCms::Resume |
( |
bool |
perm = true | ) |
|
|
inlinevirtual |
Resume service after a suspension.
- Parameters
-
perm | When true the resume persist across server restarts. Otherwise, it is treated as a temporary request. |
Implements XrdSsiCluster.
References XrdCmsClient::Resume(), and theCms.
◆ Suspend()
void XrdSsiCms::Suspend |
( |
bool |
perm = true | ) |
|
|
inlinevirtual |
◆ Utilization()
void XrdSsiCms::Utilization |
( |
unsigned int |
util, |
|
|
bool |
alert = false |
|
) |
| |
|
inlinevirtual |
Report utilization of this server. This may be used in lieu of general performance metric reporting. For consistent results use only one method.
- Parameters
-
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.
References theCms, and XrdCmsClient::Utilization().
◆ manList
char** XrdSsiCms::manList |
|
private |
◆ manNum
◆ theCms
The documentation for this class was generated from the following file: