Package org.eso.ias.cdb.pojos
Class SupervisorDao
java.lang.Object
org.eso.ias.cdb.pojos.SupervisorDao
The Supervisor is the container of DASUs
needed to run more then one DASU in the same java process.
If we do not want this feature we can get rid of the Supervisor
by moving its properties into the DASU pojo.
- Author:
- acaproni
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPuts the passed DASU in the list of tDASUs that run in this supervisorbooleancontainsDasu(String id) Check if a DASU with the given key is already in the listbooleanequalscheck the equality of the member of this object against the one passed in the command line but the checking of included DASUs is limited to their IDs.getId()inthashCode()hashCodeis based on the unique ID only.voidremoveDasu(String dasuId) Remove the passed DASU with the given ID from the set of DASUs to deployvoidRemove the passed DASU from the set of DASUs to deployvoidsetDasusToDeploy(Set<DasuToDeployDao> dasusToDeploy) voidsetHostName(String host) voidvoidsetLogLevel(LogLevelDao logLevel) toString()toString() prints a human readable version of the DASU where linked objects (like ASCES) are represented by their IDs only.
-
Constructor Details
-
SupervisorDao
public SupervisorDao()
-
-
Method Details
-
getId
-
setId
-
getHostName
-
setHostName
-
getLogLevel
-
setLogLevel
-
addDasuToDeploy
Puts the passed DASU in the list of tDASUs that run in this supervisor- Parameters:
dtd- The DASU to deploy to add
-
removeDasu
Remove the passed DASU from the set of DASUs to deploy- Parameters:
dtd- The DASU to deploy to remove
-
removeDasu
Remove the passed DASU with the given ID from the set of DASUs to deploy- Parameters:
dasuId- The ID of the DASU to deploy to remove
-
containsDasu
Check if a DASU with the given key is already in the list- Parameters:
id- The ID of the DASU to check- Returns:
trueif the the Supervisor contains the DASU with the give id,falseotherwise
-
getDasusIDs
- Returns:
- The IDs of all the DASUSs of this supervisor
-
toString
toString() prints a human readable version of the DASU where linked objects (like ASCES) are represented by their IDs only. -
equals
equalscheck the equality of the member of this object against the one passed in the command line but the checking of included DASUs is limited to their IDs. -
hashCode
public int hashCode()hashCodeis based on the unique ID only. -
getDasusToDeploy
-
setDasusToDeploy
-