Package org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteDocument


        .addNewArgument().setStringValue(stringPrm);

  }
 
  public static void setApplicationStdErr(JobDefinitionType value, HpcApplicationDeploymentType appDepType, String stderr) {
    FileNameType fName = FileNameType.Factory.newInstance();
    fName.setStringValue(stderr);
    if (isParallelJob(appDepType))
      JSDLUtils.getOrCreateSPMDApplication(value).setError(fName);
    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setError(fName);
  }
View Full Code Here


    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setError(fName);
  }
 
  public static void setApplicationStdOut(JobDefinitionType value, HpcApplicationDeploymentType appDepType, String stderr) {
    FileNameType fName = FileNameType.Factory.newInstance();
    fName.setStringValue(stderr);
    if (isParallelJob(appDepType))
      JSDLUtils.getOrCreateSPMDApplication(value).setOutput(fName);
    else
      JSDLUtils.getOrCreatePOSIXApplication(value).setOutput(fName);
  }
View Full Code Here

  public static final String THREADSPERHOST = "ThreadsPerHost";

 
 
  public static EnvironmentType addEnvVariable(JobDefinitionType def,String name, String value) {
    POSIXApplicationType posixApp = getOrCreatePOSIXApplication(def);
    EnvironmentType newEnv = posixApp.addNewEnvironment();
    newEnv.setName(name);
    newEnv.setStringValue(value);
    return newEnv;
  }
View Full Code Here

    public void testDeleteOpenContent() throws IOException, XmlException
    {
        m_resourceContext = new SushiResourceContext( true );
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.FUGU );
        set_provider.deleteResourceProperty( deleteType );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = getResourceProperty( SushiPropertyQNames.OHTORO );
        //todo better way to validate
        assertNotNull( getResourcePropertyResponse );
View Full Code Here

        //setup callback on resource prop
        SushiResource resource = (SushiResource) m_resourceContext.getResource();
        ResourceProperty resourceProp = resource.getResourcePropertySet().get( SushiPropertyQNames.IKA );
        resourceProp.setCallback( m_callback );

        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( SushiPropertyQNames.IKA );

        set_provider.deleteResourceProperty( deleteType );
        GetResourcePropertyResponseDocument.GetResourcePropertyResponse getResourcePropertyResponse = getResourceProperty( SushiPropertyQNames.OHTORO );
View Full Code Here

    }

    private void deleteResourceProperty( QName propName )
    {
        SetResourcePropertiesProvider set_provider = new SetResourcePropertiesProvider( m_resourceContext );
        DeleteDocument deleteDoc = DeleteDocument.Factory.newInstance();
        DeleteType deleteType = deleteDoc.addNewDelete();
        deleteType.setResourceProperty( propName );
        set_provider.deleteResourceProperty( deleteType );
    }
View Full Code Here

      return createResponseDocument(  );
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return createResponseDocument(  );
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

      return NAMESPACE_SET;
   }

   private DestroyResponseDocument createResponseDocument(  )
   {
      DestroyResponseDocument responseDoc = DestroyResponseDocument.Factory.newInstance(  );
      responseDoc.addNewDestroyResponse(  );
      return responseDoc;
   }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteDocument

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.