add tcp_stat binding

This commit is contained in:
Doug MacEachern 2007-07-14 16:08:25 +00:00
parent fe76b8fe7d
commit c11cf01b27
3 changed files with 63 additions and 0 deletions

View File

@ -874,6 +874,58 @@ my %classes = (
name => 'all_outbound_total', type => 'Int',
},
],
TcpStat => [
{
name => 'max_conn', type => 'Int',
desc => '',
plat => ''
},
{
name => 'active_opens', type => 'Long',
desc => '',
plat => ''
},
{
name => 'passive_opens', type => 'Long',
desc => '',
plat => ''
},
{
name => 'attempt_fails', type => 'Long',
desc => '',
plat => ''
},
{
name => 'estab_resets', type => 'Long',
desc => '',
plat => ''
},
{
name => 'curr_estab', type => 'Long',
desc => '',
plat => ''
},
{
name => 'in_segs', type => 'Long',
desc => '',
plat => ''
},
{
name => 'out_segs', type => 'Long',
desc => '',
plat => ''
},
{
name => 'retrans_segs', type => 'Long',
desc => '',
plat => ''
},
{
name => 'out_rsts', type => 'Long',
desc => '',
plat => ''
},
],
ResourceLimit => [
{
name => 'cpu_cur',

View File

@ -777,6 +777,15 @@ public class Sigar implements SigarProxy {
public native Who[] getWhoList()
throws SigarException;
/**
* TCP-MIB stats
* @exception SigarException on failure.
*/
public TcpStat getTcpStat()
throws SigarException {
return TcpStat.fetch(this);
}
/**
* Get general network info.
* @exception SigarException on failure.

View File

@ -157,6 +157,8 @@ public interface SigarProxy {
public Who[] getWhoList() throws SigarException;
public TcpStat getTcpStat() throws SigarException;
public NetInfo getNetInfo() throws SigarException;
public String getFQDN() throws SigarException;