public static bool TryParse(ClientJobRequest request, out JobRequest output)
 {
     try
     {
         output = new MapReduceJobRequest(request);
         return true;
     }
     catch (Exception)
     {
         output = null;
         return false;
     }
 }
Esempio n. 2
0
 public static bool TryParse(ClientJobRequest request, out JobRequest output)
 {
     try
     {
         output = new MapReduceJobRequest(request);
         return(true);
     }
     catch (Exception)
     {
         output = null;
         return(false);
     }
 }
 internal MapReduceJobRequestPassthroughAction CreateMapReduceJobRequestAction(MapReduceJobRequest request , DataAccess.Context.ClusterContainer container, string subscriptionId)
 {
     //TODO: Create/generate the job folder.
     //This is ok for now. When we start listing jobs we'll need to fix this.
     return new MapReduceJobRequestPassthroughAction(container, subscriptionId)
         {
             Arguments = request.Arguments,
             ClassName = request.ApplicationName,
             JarFile = request.JarFile,
             Parameters =request.Parameters,
             Resources = request.Resources
         };
 }