public List<Datastore> createNfsDatastore(ClusterComputeResource cluster,FileShareRestRep fileSystem,FileSystemExportParam export,URI datacenterId,String datastoreName){
  addNfsDatastoreTag(fileSystem,export,datacenterId,datastoreName);
  List<Datastore> datastores=Lists.newArrayList();
  String fileServer=StringUtils.substringBefore(export.getMountPoint(),":");
  String mountPath=StringUtils.substringAfter(export.getMountPoint(),":");
  for (  HostSystem host : cluster.getHosts()) {
    datastores.add(execute(new CreateNfsDatastore(host,fileServer,mountPath,datastoreName)));
    addAffectedResource(fileSystem);
    ExecutionUtils.clearRollback();
  }
  return datastores;
}

public List < Datastore > createNfsDatastore ( ClusterComputeResource cluster , FileShareRestRep fileSystem , FileSystemExportParam export , URI datacenterId , String datastoreName ) { addNfsDatastoreTag ( fileSystem , export , datacenterId , datastoreName ) ; List < Datastore > datastores = Lists . newArrayList ( ) ; String fileServer = StringUtils . substringBefore ( export . getMountPoint ( ) , ":" ) ; String mountPath = StringUtils . substringAfter ( export . getMountPoint ( ) , ":" ) ; for ( HostSystem host : cluster . getHosts ( ) ) { datastores . add ( execute ( new CreateNfsDatastore ( host , fileServer , mountPath , datastoreName ) ) ) ; addAffectedResource ( fileSystem ) ; ExecutionUtils . clearRollback ( ) ; } return datastores ; }
creates an nfs datastore for the hosts in the cluster
