add tcp_stat binding
This commit is contained in:
		
							parent
							
								
									fe76b8fe7d
								
							
						
					
					
						commit
						c11cf01b27
					
				@ -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',
 | 
			
		||||
 | 
			
		||||
@ -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.
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user