com.ace.moab.api.request
Class ModifyJobTemplateRequest

java.lang.Object
  extended by com.ace.moab.api.request.ModifyJobTemplateRequest
All Implemented Interfaces:
com.moab.api.commands.Request

public class ModifyJobTemplateRequest
extends java.lang.Object
implements com.moab.api.commands.Request

Represents a request to modify (create, modify, delete) a Job Template.

Author:
Scott Brown

Nested Class Summary
static class ModifyJobTemplateRequest.ModifyJobTemplateType
           
 
Constructor Summary
ModifyJobTemplateRequest(com.moab.api.jobs.JobTemplate oldTemplate, com.moab.api.jobs.JobTemplate newTemplate, ModifyJobTemplateRequest.ModifyJobTemplateType modifyType)
          Create the request object with the specified modify type.
 
Method Summary
 java.util.List<java.lang.String> getMoabCommands()
          Returns a list of commands that define the request.
 boolean hasChanges()
          Returns true if changes exist for the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifyJobTemplateRequest

public ModifyJobTemplateRequest(com.moab.api.jobs.JobTemplate oldTemplate,
                                com.moab.api.jobs.JobTemplate newTemplate,
                                ModifyJobTemplateRequest.ModifyJobTemplateType modifyType)
Create the request object with the specified modify type.

Parameters:
oldTemplate -
newTemplate -
modifyType -
Method Detail

getMoabCommands

public java.util.List<java.lang.String> getMoabCommands()
                                                 throws com.moab.api.connect.exception.RequestException
Description copied from interface: com.moab.api.commands.Request
Returns a list of commands that define the request. These commands are run on the server containing Moab. These will only be run if the Request.hasChanges() method returns true.

Specified by:
getMoabCommands in interface com.moab.api.commands.Request
Returns:
a list of Strings representing commands defining the request.
Throws:
com.moab.api.connect.exception.RequestException - thrown if the implementing Request class has problems building the associated commands.

hasChanges

public boolean hasChanges()
Description copied from interface: com.moab.api.commands.Request
Returns true if changes exist for the request.

Specified by:
hasChanges in interface com.moab.api.commands.Request
Returns:
true if changes exist for the request.


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.