public MetricsPresenter(ProjectId projectId, MetricsView view, DispatchServiceManager dispatchServiceManager) {
this.view = view;
this.projectId = projectId;
this.dispatchServiceManager = dispatchServiceManager;
view.setRequestRefreshEventHandler(new RequestRefreshEventHandler() {
@Override
public void handleRequestRefresh(RequestRefreshEvent requestRefreshEvent) {
processRequestRefresh();
}
});