public String addAndStartProcess(ClusterProcess process,int timeout){
  process.setCluster(this);
  memberPocesses.add(process);
  LOGGER.debug(String.format("Starting %s (%s) container",process.getName(),process.getContainerId()));
  try {
    process.start(timeout);
  }
 catch (  Exception exc) {
    String msg=String.format("Failed to start %s (%s) container",process.getName(),process.getContainerId());
    LOGGER.error(msg,exc);
    throw new MinimesosException(msg,exc);
  }
  return process.getContainerId();
}

public String addAndStartProcess ( ClusterProcess process , int timeout ) { process . setCluster ( this ) ; memberPocesses . add ( process ) ; LOGGER . debug ( String . format ( "Starting %s (%s) container" , process . getName ( ) , process . getContainerId ( ) ) ) ; try { process . start ( timeout ) ; } catch ( Exception exc ) { String msg = String . format ( "Failed to start %s (%s) container" , process . getName ( ) , process . getContainerId ( ) ) ; LOGGER . error ( msg , exc ) ; throw new MinimesosException ( msg , exc ) ; } return process . getContainerId ( ) ; }
starts a container . this container will be removed when the mesos cluster is shut down .
