Package gri.data

Examples of gri.data.TypeMapping


   * Messages are sent through a GridpWebService and serialized just as
   * though they were sent to a remote service.
   */
  protected static JobManager createRemoteSystem(TaskManager taskManager) throws Exception {
    //TypeMapping: DO NOT FORGET TO CLONE!
    TypeMapping typeMapping = (TypeMapping)Types.getDefaultTypeMapping().clone();
    typeMapping.putContentType("file", TransferableFile.DATA_TYPE);

    //JobManager:
    JobManager localSystem = createLocalSystem(taskManager);

    //Server:
View Full Code Here


 
        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

 
        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

TOP

Related Classes of gri.data.TypeMapping

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.