سؤال

I am writing in java and I need to periodicly get the output of my NIC(the same information that I see in windows task manager),is there a way to sample the current throughput of the NIC in java?

هل كانت مفيدة؟

المحلول

Java has no built-in way to access low-level OS information like NIC utilization. You can write a JNI library that accesses the information using the C/C++ API for your specific OS.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top