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

Examples of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeResponseDocument$SetTerminationTimeResponse$Factory


    return jobResources.getIndividualDiskSpace();
  }

  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateIndividualPhysicalMemory(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if (!jobResources.isSetIndividualPhysicalMemory()) {
      jobResources.addNewIndividualPhysicalMemory();
    }
    return jobResources.getIndividualPhysicalMemory();
  }
View Full Code Here


    return descr.getJobIdentification();
  }

  public static OperatingSystemType getOrCreateOperatingSystem(JobDefinitionType value)
  {
    ResourcesType jobResources = getOrCreateResources(value);       
    if(!jobResources.isSetOperatingSystem()) {
      jobResources.addNewOperatingSystem();
    }
    return jobResources.getOperatingSystem();
  }
View Full Code Here

  }


  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateTotalCPUCount(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if ( !jobResources.isSetTotalCPUCount() ) {
      jobResources.addNewTotalCPUCount();
    }
    return jobResources.getTotalCPUCount();
  }
View Full Code Here

  }


  public static org.ggf.schemas.jsdl.x2005.x11.jsdl.RangeValueType getOrCreateTotalResourceCount(JobDefinitionType value) {

    ResourcesType jobResources = getOrCreateResources(value);
    if ( !jobResources.isSetTotalResourceCount())
    {
      jobResources.addNewTotalResourceCount();
    }
    return jobResources.getTotalResourceCount();
  }
View Full Code Here

    if((flags & FLAG_OVERWRITE) != 0) creationFlag = CreationFlagEnumeration.OVERWRITE;
    if((flags & FLAG_APPEND) != 0) creationFlag = CreationFlagEnumeration.APPEND;
    boolean deleteOnTerminate = (flags & FLAG_DELETE_ON_TERMINATE) != 0;
    newDS.setCreationFlag(creationFlag);
    newDS.setDeleteOnTermination(deleteOnTerminate);
    SourceTargetType target = newDS.addNewTarget();

    try {
      uri = (uri == null) ? null : URIUtils.encodeAll(uri);
    } catch (URIException e) {
    }
    target.setURI(uri);
    newDS.setFileName(file);
    if (fileSystem != null && !fileSystem.equals("Work")) {  //$NON-NLS-1$
      newDS.setFilesystemName(fileSystem);
    }
  }
View Full Code Here

    if((flags & FLAG_OVERWRITE) != 0) creationFlag = CreationFlagEnumeration.OVERWRITE;
    if((flags & FLAG_APPEND) != 0) creationFlag = CreationFlagEnumeration.APPEND;
    boolean deleteOnTerminate = (flags & FLAG_DELETE_ON_TERMINATE) != 0;
    newDS.setCreationFlag(creationFlag);
    newDS.setDeleteOnTermination(deleteOnTerminate);
    SourceTargetType source = newDS.addNewSource();
    source.setURI(uri);
    newDS.setFileName(file);
    if (fileSystem != null && !fileSystem.equals("Work")) {  //$NON-NLS-1$
      newDS.setFilesystemName(fileSystem);
    }
  }
View Full Code Here

     *
     * @return DOCUMENT_ME
     */
    public SetTerminationTimeResponseDocument setTerminationTime( SetTerminationTimeDocument requestDoc )
    {
        SetTerminationTimeResponseDocument responseDoc = createResponseDocument();
        Calendar currentTime = Calendar.getInstance();
        Calendar requestedTermTime =
                requestDoc.getSetTerminationTime().getRequestedTerminationTime();
        Calendar newTermTime = null;

View Full Code Here

        return NAMESPACE_SET;
    }

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

    *
    * @return DOCUMENT_ME
    */
   public SetTerminationTimeResponseDocument setTerminationTime( SetTerminationTimeDocument requestDoc )
   {
      SetTerminationTimeResponseDocument responseDoc       = createResponseDocument(  );
      Calendar                           currentTime       = Calendar.getInstance(  );
      Calendar                           requestedTermTime =
         requestDoc.getSetTerminationTime(  ).getRequestedTerminationTime(  );
      Calendar                           newTermTime = null;

View Full Code Here

      return (ScheduledResourceTerminationResource) getResource(  );
   }

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

TOP

Related Classes of org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeResponseDocument$SetTerminationTimeResponse$Factory

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.