diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index a7b46fb0..61470739 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -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', diff --git a/bindings/java/src/org/hyperic/sigar/Sigar.java b/bindings/java/src/org/hyperic/sigar/Sigar.java index c0044fae..9e966cd9 100644 --- a/bindings/java/src/org/hyperic/sigar/Sigar.java +++ b/bindings/java/src/org/hyperic/sigar/Sigar.java @@ -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. diff --git a/bindings/java/src/org/hyperic/sigar/SigarProxy.java b/bindings/java/src/org/hyperic/sigar/SigarProxy.java index 2eeebb46..bb29cb4f 100644 --- a/bindings/java/src/org/hyperic/sigar/SigarProxy.java +++ b/bindings/java/src/org/hyperic/sigar/SigarProxy.java @@ -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;