protected AmbariStreamProvider createRemoteAmbariStreamProvider(Long clusterId) {
    RemoteAmbariClusterEntity clusterEntity = remoteAmbariClusterDAO.findById(clusterId);
    if (clusterEntity != null) {
      return new RemoteAmbariStreamProvider(getBaseurl(clusterEntity.getUrl()),
          clusterEntity.getUsername(), clusterEntity.getPassword(),
          configuration.getViewAmbariRequestConnectTimeout(), configuration.getViewAmbariRequestReadTimeout());
    }
    return null;
  }
Get Remote Ambari Cluster Stream provider

@param clusterId
@return
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java