Package de.dlr.proseo.facmgr.rest.model
Class RestProcessingFacility
java.lang.Object
de.dlr.proseo.facmgr.rest.model.RestProcessingFacility
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe type of the storageprotected StringA short description of the processing facilityprotected StringThe URL to access this facility's storage manager from an external client (via PRIP API)protected StringThe run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING }protected LongThe persistent id of this objectprotected StringURL of the locally accessible Storage Managerprotected LongMaximum number of jobs schedulable per worker node (default 1)protected StringThe facility name (unique key)protected StringAuthentication token for connecting to this facility's processing engine (Kubernetes instance)protected StringThe URL to access this facility's processing engine (Kubernetes instance)(package private) static final longprotected StringPassword for connecting to the Storage Manager (locally and from external services)protected StringThe URL to access this facility's storage manager from the control instanceprotected StringUser name for connecting to the Storage Manager (locally and from external services)protected LongA version identifier to track updates to the object (especially to detect concurrent update attempts) -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RestProcessingFacility.RestProcessingFacility(Long id, Long version, String name, String facilityState, String description, String processingEngineUrl, String processingEngineToken, Long maxJobsPerNode, String storageManagerUrl, String externalStorageManagerUrl, String localStorageManagerUrl, String storageManagerUser, String storageManagerPassword, String defaultStorageType) Creates a new RestProcessingFacility. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull @Pattern(regexp="^(S3|ALLUXIO|POSIX|OTHER)$") StringReturns the defaultStorageType.Returns the description.@NotNull StringReturns the externalStorageManagerUrl.@NotNull StringReturns the facilityState.getId()Returns the id.Returns the localStorageManagerUrl.Returns the maxJobsPerNode.@NotNull StringgetName()Returns the name.Returns the processingEngineToken.Returns the processingEngineUrl.@NotNull StringReturns the storageManagerPassword.@NotNull StringReturns the storageManagerUrl.@NotNull StringReturns the storageManagerUser.Returns the version.inthashCode()voidsetDefaultStorageType(String defaultStorageType) Set the defaultStorageType.voidsetDescription(String description) Set the description.voidsetExternalStorageManagerUrl(String externalStorageManagerUrl) Set the externalStorageManagerUrl.voidsetFacilityState(String facilityState) Set the facilityState.voidSet the id.voidsetLocalStorageManagerUrl(String localStorageManagerUrl) Set the localStorageManagerUrl.voidsetMaxJobsPerNode(Long maxJobsPerNode) Set the maxJobsPerNode.voidSet the name.voidsetProcessingEngineToken(String processingEngineToken) Set the processingEngineToken.voidsetProcessingEngineUrl(String processingEngineUrl) Set the processingEngineUrl.voidsetStorageManagerPassword(String storageManagerPassword) Set the storageManagerPassword.voidsetStorageManagerUrl(String storageManagerUrl) Set the storageManagerUrl.voidsetStorageManagerUser(String storageManagerUser) Set the storageManagerUser.voidsetVersion(Long version) Set the version.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
id
The persistent id of this object -
version
A version identifier to track updates to the object (especially to detect concurrent update attempts) -
name
The facility name (unique key) -
facilityState
The run state the facility currently is in, one of { DISABLED, STOPPED, STARTING, RUNNING, STOPPING } -
description
A short description of the processing facility -
processingEngineUrl
The URL to access this facility's processing engine (Kubernetes instance) -
processingEngineToken
Authentication token for connecting to this facility's processing engine (Kubernetes instance) -
maxJobsPerNode
Maximum number of jobs schedulable per worker node (default 1) -
storageManagerUrl
The URL to access this facility's storage manager from the control instance -
externalStorageManagerUrl
The URL to access this facility's storage manager from an external client (via PRIP API) -
localStorageManagerUrl
URL of the locally accessible Storage Manager -
storageManagerUser
User name for connecting to the Storage Manager (locally and from external services) -
storageManagerPassword
Password for connecting to the Storage Manager (locally and from external services) -
defaultStorageType
The type of the storage
-
-
Constructor Details
-
RestProcessingFacility
public RestProcessingFacility()Creates a new RestProcessingFacility. -
RestProcessingFacility
public RestProcessingFacility(Long id, Long version, String name, String facilityState, String description, String processingEngineUrl, String processingEngineToken, Long maxJobsPerNode, String storageManagerUrl, String externalStorageManagerUrl, String localStorageManagerUrl, String storageManagerUser, String storageManagerPassword, String defaultStorageType) Creates a new RestProcessingFacility.
-
-
Method Details
-
getId
Returns the id.- Returns:
- id
-
setId
Set the id.- Parameters:
id- the new id
-
getVersion
Returns the version.- Returns:
- version
-
setVersion
Set the version.- Parameters:
version- the new version
-
getName
Returns the name.- Returns:
- name
-
setName
Set the name.- Parameters:
name- the new name
-
getFacilityState
Returns the facilityState.- Returns:
- facilityState
-
setFacilityState
Set the facilityState.- Parameters:
facilityState- the new facilityState
-
getDescription
Returns the description.- Returns:
- description
-
setDescription
Set the description.- Parameters:
description- the new description
-
getProcessingEngineUrl
Returns the processingEngineUrl.- Returns:
- processingEngineUrl
-
setProcessingEngineUrl
Set the processingEngineUrl.- Parameters:
processingEngineUrl- the new processingEngineUrl
-
getProcessingEngineToken
Returns the processingEngineToken.- Returns:
- processingEngineToken
-
setProcessingEngineToken
Set the processingEngineToken.- Parameters:
processingEngineToken- the new processingEngineToken
-
getMaxJobsPerNode
Returns the maxJobsPerNode.- Returns:
- maxJobsPerNode
-
setMaxJobsPerNode
Set the maxJobsPerNode.- Parameters:
maxJobsPerNode- the new maxJobsPerNode
-
getStorageManagerUrl
Returns the storageManagerUrl.- Returns:
- storageManagerUrl
-
setStorageManagerUrl
Set the storageManagerUrl.- Parameters:
storageManagerUrl- the new storageManagerUrl
-
getExternalStorageManagerUrl
Returns the externalStorageManagerUrl.- Returns:
- externalStorageManagerUrl
-
setExternalStorageManagerUrl
Set the externalStorageManagerUrl.- Parameters:
externalStorageManagerUrl- the new externalStorageManagerUrl
-
getLocalStorageManagerUrl
Returns the localStorageManagerUrl.- Returns:
- localStorageManagerUrl
-
setLocalStorageManagerUrl
Set the localStorageManagerUrl.- Parameters:
localStorageManagerUrl- the new localStorageManagerUrl
-
getStorageManagerUser
Returns the storageManagerUser.- Returns:
- storageManagerUser
-
setStorageManagerUser
Set the storageManagerUser.- Parameters:
storageManagerUser- the new storageManagerUser
-
getStorageManagerPassword
Returns the storageManagerPassword.- Returns:
- storageManagerPassword
-
setStorageManagerPassword
Set the storageManagerPassword.- Parameters:
storageManagerPassword- the new storageManagerPassword
-
getDefaultStorageType
@NotNull @Pattern(regexp="^(S3|ALLUXIO|POSIX|OTHER)$") public @NotNull @Pattern(regexp="^(S3|ALLUXIO|POSIX|OTHER)$") String getDefaultStorageType()Returns the defaultStorageType.- Returns:
- defaultStorageType
-
setDefaultStorageType
Set the defaultStorageType.- Parameters:
defaultStorageType- the new defaultStorageType
-
hashCode
public int hashCode() -
equals
-
toString
-