문제

I have a website at the back end of which I have a JADE main container running. Multiple machines can register with this main container. So, I want to know if the JADE API supports getting the IP addresses of all the agents currently registered with the Main container? I have to eventually display this information on the website.

Thanks...

올바른 솔루션이 없습니다

다른 팁

You're probably right about the JADE API, but of course you can always use standard Java to find the local IP address - try InetAddress.getLocalHost(). An Agent pushed from the Main Container when each container connects could use this to report the IP address of each container, and an Agent in the Main Container could subscribe to these messages and display them on the website. IIRC you can subscribe to the AMS and receive notification when new containers come online.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top