Package gri.tasks.remote.shared.xml

Examples of gri.tasks.remote.shared.xml.BasicSerializerSet$BasicWorkflowSerializerSet


     * though they were sent to a remote service.
     */
    protected static JobManager createRemoteSystem() {
        JobManager localSystem = createLocalSystem();
       
        BasicSerializerSet serializers = new BasicSerializerSet();
        JobManagerService webService = new JobManagerServiceImpl(localSystem, serializers);
        return new ProxyJobManager(webService, serializers);
    }
View Full Code Here


    //Server:
    File baseDir = new File("C:\\GRIDP_EXEC");
    SimpleJobFolderFactory jobFolderFactory = new SimpleJobFolderFactory(baseDir);

    JobManagerServiceImpl webService = new JobManagerServiceImpl(localSystem, new BasicSerializerSet(typeMapping), jobFolderFactory);
    webService.setDeleteDirectoriesWhenFreed(true);

    //Client:
    ProxyJobManager proxy = new ProxyJobManager(webService, new BasicSerializerSet(typeMapping));
    proxy.setAllowLocalFileTransfers(false);
    return proxy;
  }
View Full Code Here

        JobManager localSystem = createLocalJobManager(taskProvider);
 
        File baseDir = new File("C:\\GRIDP_EXEC");
  SimpleJobFolderFactory jobFolderFactory = new SimpleJobFolderFactory(baseDir);
 
        JobManagerServiceImpl webService = new JobManagerServiceImpl(localSystem, new BasicSerializerSet(), jobFolderFactory);
        //webService.setDeleteDirectoriesWhenFreed(true);
     
        //DO NOT FORGET TO CLONE!
        TypeMapping typeMapping = (TypeMapping)Types.getDefaultTypeMapping().clone();
        typeMapping.putContentType("file", TransferableFile.DATA_TYPE);
        typeMapping.putContentType("taskStub", TaskStub.DATA_TYPE);
        return new ProxyJobManager(webService, new BasicSerializerSet(typeMapping));
    }
View Full Code Here

        WorkflowManager localManager = createLocalWorkflowManager(taskProvider);
 
        File baseDir = new File("C:\\GRIDP_EXEC");
  SimpleJobFolderFactory jobFolderFactory = new SimpleJobFolderFactory(baseDir);
 
        WorkflowManagerServiceImpl webService = new WorkflowManagerServiceImpl(localManager, new BasicSerializerSet(), jobFolderFactory);
        //webService.setDeleteDirectoriesWhenFreed(true);
     
        //DO NOT FORGET TO CLONE!
        TypeMapping typeMapping = (TypeMapping)Types.getDefaultTypeMapping().clone();
        typeMapping.putContentType("file", TransferableFile.DATA_TYPE);
        typeMapping.putContentType("taskStub", TaskStub.DATA_TYPE);
       
        //WorkflowManagerServiceImpl webService = new WorkflowManagerServiceImpl(localManager, new BasicSerializerSet(typeMapping), jobFolderFactory);
       
        return new ProxyWorkflowManager(webService, new BasicSerializerSet(typeMapping));
    }
View Full Code Here

  //serializers:
  Element serializerElem = elem.getChild("serializers");
 
  SerializerSet serializerSet;
  if (serializerElem == null)
      serializerSet = new BasicSerializerSet();
  else
      serializerSet = (SerializerSet)serializerSetSerializer.read(serializerElem);
 
  return new ProxyJobManager(service, serializerSet);
    }
View Full Code Here

    }
    public WorkflowManagerServiceImpl(WorkflowManager wkflManager, SerializerSet serializers) {
        this(wkflManager, serializers, null);
    }
    public WorkflowManagerServiceImpl(WorkflowManager wkflManager) {
  this(wkflManager, new BasicSerializerSet());
    }
View Full Code Here

    }
    public JobManagerServiceImpl(JobManager jobManager, SerializerSet serializers) {
        this(jobManager, serializers, null);
    }
    public JobManagerServiceImpl(JobManager jobManager) {
  this(jobManager, new BasicSerializerSet());
    }
View Full Code Here

TOP

Related Classes of gri.tasks.remote.shared.xml.BasicSerializerSet$BasicWorkflowSerializerSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.