RPC: added getAllResourcesState method