Interface CommonRequest
-
- All Known Subinterfaces:
AgentJobRequest
,ApiJobRequest
- All Known Implementing Classes:
ApplicationRequest
,ClusterRequest
,CommandRequest
,JobRequest
public interface CommonRequest
Common fields for Resource requests (clusters, commands, jobs, etc).- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getRequestedId()
Get the ID the user has requested for this resource if one was added.ExecutionEnvironment
getResources()
Get the resources the user requested for the job during execution if any.
-
-
-
Method Detail
-
getRequestedId
java.util.Optional<java.lang.String> getRequestedId()
Get the ID the user has requested for this resource if one was added.- Returns:
- The ID wrapped in an
Optional
-
getResources
ExecutionEnvironment getResources()
Get the resources the user requested for the job during execution if any.- Returns:
- The execution resources
-
-