C# Class Enyim.Caching.Memcached.ServerStats

Represents the statistics of a Memcached node.
显示文件 Open project: xianrendzw/LightFramework.Net Class Usage Examples

Public Properties

Property Type Description
All System.Net.IPEndPoint

Public Methods

Method Description
GetRaw ( string key ) : string>>.IEnumerable
GetRaw ( IPEndPoint server, StatItem item ) : string

Returns the stat value for a specific server. The value is not converted but returned as the server returned it.

GetRaw ( IPEndPoint server, string key ) : string

Returns the stat value for a specific server. The value is not converted but returned as the server returned it.

GetUptime ( IPEndPoint server ) : System.TimeSpan

Returns the uptime of the specific server.

GetValue ( IPEndPoint server, StatItem item ) : long

Gets a stat value for the specified server.

GetVersion ( IPEndPoint server ) : System.Version

Returns the server of memcached running on the specified server.

Private Methods

Method Description
ServerStats ( string>.Dictionary results ) : System

Method Details

GetRaw() public method

public GetRaw ( string key ) : string>>.IEnumerable
key string
return string>>.IEnumerable

GetRaw() public method

Returns the stat value for a specific server. The value is not converted but returned as the server returned it.
public GetRaw ( IPEndPoint server, StatItem item ) : string
server System.Net.IPEndPoint The adress of the server
item StatItem The stat value to be returned
return string

GetRaw() public method

Returns the stat value for a specific server. The value is not converted but returned as the server returned it.
public GetRaw ( IPEndPoint server, string key ) : string
server System.Net.IPEndPoint The adress of the server
key string The name of the stat value
return string

GetUptime() public method

Returns the uptime of the specific server.
public GetUptime ( IPEndPoint server ) : System.TimeSpan
server System.Net.IPEndPoint The adress of the server
return System.TimeSpan

GetValue() public method

Gets a stat value for the specified server.
public GetValue ( IPEndPoint server, StatItem item ) : long
server System.Net.IPEndPoint The adress of the server. If is specified it will return the sum of all server stat values.
item StatItem The stat to be returned
return long

GetVersion() public method

Returns the server of memcached running on the specified server.
public GetVersion ( IPEndPoint server ) : System.Version
server System.Net.IPEndPoint The adress of the server
return System.Version

Property Details

All public_oe static_oe property

Defines a value which indicates that the statstics should be retrieved for all servers in the sockIOPool.
public static IPEndPoint,System.Net All
return System.Net.IPEndPoint