Package de.dlr.proseo.model
Class ProcessingFacility
java.lang.Object
de.dlr.proseo.model.PersistentObject
de.dlr.proseo.model.ProcessingFacility
A processing facility for running prosEO jobs and storing prosEO product files, e. g. at a cloud service provider.
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.Gets the default storage type of the facilityGets the description of the processing facilityGets the URL of the facility's storage manager for external clientsGets the run state of the processing facilityGets the URL of the facility's storage manager for local worker nodesGets the maximum number of jobs schedulable per worker nodegetName()Gets the name of the processing facilityGets the authentication token for the processing engineGets the URL of the facility's processing engine (Kubernetes instance)Gets the URL of the facility's storage managerinthashCode()voidsetDefaultStorageType(StorageType defaultStorageType) Sets the default storage type of the facilityvoidsetDescription(String description) Sets the description of the processing facilityvoidsetExternalStorageManagerUrl(String externalStorageManagerUrl) Sets the URL of the facility's storage manager for external clientsvoidsetFacilityState(FacilityState facilityState) Sets the run state of the processing facilityvoidsetLocalStorageManagerUrl(String localStorageManagerUrl) Sets the URL of the facility's storage manager for local worker nodesvoidsetMaxJobsPerNode(Integer maxJobsPerNode) Sets the maximum number of jobs schedulable per worker nodevoidSets the name of the processing facilityvoidsetProcessingEngineToken(String processingEngineToken) Sets the authentication token for the processing enginevoidsetProcessingEngineUrl(String processingEngineUrl) Sets the URL of the facility's processing engine (Kubernetes instance)voidsetStorageManagerPassword(String storageManagerPassword) voidsetStorageManagerUrl(String storageManagerUrl) Sets the URL of the facility's storage managervoidsetStorageManagerUser(String storageManagerUser) toString()Methods inherited from class de.dlr.proseo.model.PersistentObject
getId, getVersion, incrementVersion, setId
-
Constructor Details
-
ProcessingFacility
public ProcessingFacility()
-
-
Method Details
-
getName
Gets the name of the processing facility- Returns:
- the name
-
setName
Sets the name of the processing facility- Parameters:
name- the name to set
-
getDescription
Gets the description of the processing facility- Returns:
- the description
-
setDescription
Sets the description of the processing facility- Parameters:
description- the description to set
-
getFacilityState
Gets the run state of the processing facility- Returns:
- the facility state
-
setFacilityState
Sets the run state of the processing facility- Parameters:
facilityState- the facility state to set- Throws:
IllegalStateException- if the intended facility state transition is illegal
-
getProcessingEngineUrl
Gets the URL of the facility's processing engine (Kubernetes instance)- Returns:
- the URL of the processing engine
-
setProcessingEngineUrl
Sets the URL of the facility's processing engine (Kubernetes instance)- Parameters:
processingEngineUrl- the URL of the processing engine to set
-
getProcessingEngineToken
Gets the authentication token for the processing engine- Returns:
- the processing engine token
-
setProcessingEngineToken
Sets the authentication token for the processing engine- Parameters:
processingEngineToken- the processing engine token to set
-
getMaxJobsPerNode
Gets the maximum number of jobs schedulable per worker node- Returns:
- the maximum number of jobs per node
-
setMaxJobsPerNode
Sets the maximum number of jobs schedulable per worker node- Parameters:
maxJobsPerNode- the maximum number of jobs per node to set
-
getStorageManagerUrl
Gets the URL of the facility's storage manager- Returns:
- the URL of the storage manager
-
setStorageManagerUrl
Sets the URL of the facility's storage manager- Parameters:
storageManagerUrl- the URL of the storage manager to set
-
getExternalStorageManagerUrl
Gets the URL of the facility's storage manager for external clients- Returns:
- the externalStorageManagerUrl
-
setExternalStorageManagerUrl
Sets the URL of the facility's storage manager for external clients- Parameters:
externalStorageManagerUrl- the externalStorageManagerUrl to set
-
getLocalStorageManagerUrl
Gets the URL of the facility's storage manager for local worker nodes- Returns:
- the localStorageManagerUrl
-
setLocalStorageManagerUrl
Sets the URL of the facility's storage manager for local worker nodes- Parameters:
localStorageManagerUrl- the localStorageManagerUrl to set
-
getStorageManagerUser
- Returns:
- the storageManagerUser
-
setStorageManagerUser
- Parameters:
storageManagerUser- the storageManagerUser to set
-
getStorageManagerPassword
- Returns:
- the storageManagerPassword
-
setStorageManagerPassword
- Parameters:
storageManagerPassword- the storageManagerPassword to set
-
getDefaultStorageType
Gets the default storage type of the facility- Returns:
- the default storage type
-
setDefaultStorageType
Sets the default storage type of the facility- Parameters:
defaultStorageType- the default storage type to set
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
Description copied from class:PersistentObjectTest equality of persistent objects based on their unique ID.- Overrides:
equalsin classPersistentObject- Parameters:
obj- the object to compare this object to- Returns:
- true, if obj is a persistent object and has the same ID, false otherwise
- See Also:
-
toString
-