*
* @exception ConnectException If the admin connection is closed or broken.
* @exception AdminException If the request fails.
*/
public int getPendingRequests() throws ConnectException, AdminException {
GetPendingRequests request = new GetPendingRequests(agentId);
GetNumberReply reply = (GetNumberReply) doRequest(request);
return reply.getNumber();
}