mehdis_60232
Jun 19, 2008Nimbostratus
getting Node statistics : LocalLBNodeAdress.cs (SDK)
Hello,
in NodeAdressmain.cs i can't use those two methods:
-get_object_status
-get_statistics
When i try to use it, i have the exeption :
exeption caught in LocalLB::urn:iControl:LocalLB/NodeAddress::get_statistics()
Eception : Common : OperationFailed
primary_error_code : 17238054
secondary_error_code : 0
error_string : 01070826:3: current Update Partition Error ...
I have the same thing for get_object status.
and the thing is that I just want to display the Node statistics.
methods in localLBAddress.cs:
////////////////////////code//////////////////////
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:iControl:LocalLB/NodeAddress",
RequestNamespace="urn:iControl:LocalLB/NodeAddress", ResponseNamespace="urn:iControl:LocalLB/NodeAddress")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public LocalLBNodeAddressNodeAddressStatistics get_all_statistics()
{ object[] results = this.Invoke("get_all_statistics", new object[0]);
return ((LocalLBNodeAddressNodeAddressStatistics)(results[0]));
}
///
public System.IAsyncResult Beginget_all_statistics(System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("get_all_statistics", new object[0], callback, asyncState);
}
///
public LocalLBNodeAddressNodeAddressStatistics Endget_all_statistics(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((LocalLBNodeAddressNodeAddressStatistics)(results[0]));
}
///////////////////////////////////////////////////////
//In NodeAdressMain:
////////////////////////////////////////////////////
// Get Statistics
NodeAddress.LocalLBNodeAddressNodeAddressStatistics statistics =
NodeAddress.get_statistics(node_list);
NodeAddress.CommonStatistic[] statistic_list = statistics.statistics[ i ].statistics;
for (int j = 0; j < statistic_list.Length; j++)
{
Console.WriteLine(
statistic_list[ j ].type.ToString() + " : " + build64(statistic_list[ j ].value)
);
}
Plz i need some help and i'm a begginer in c