public String status ( boolean sync ) { if ( exit . isExited ( ) ) { return EXITED ; } try { String status = recvStatus ( ) ; if ( agent . send ( STATUS ) && sync ) { // wait for the response to emulate sync status = recvStatus ( ) ; // AND refill a status if ( EXITED . equals ( status ) || ! agent . send ( STATUS ) ) { return EXITED ; } } return status ; } catch ( ZMQException e ) { return EXITED ; } }
Inquires for the status of the proxy .