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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Puts the passed DASU in the list of tDASUs that run in this supervisorboolean
containsDasu
(String id) Check if a DASU with the given key is already in the listboolean
equals
check 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()
int
hashCode()
hashCode
is based on the unique ID only.void
removeDasu
(String dasuId) Remove the passed DASU with the given ID from the set of DASUs to deployvoid
Remove the passed DASU from the set of DASUs to deployvoid
setDasusToDeploy
(Set<DasuToDeployDao> dasusToDeploy) void
setHostName
(String host) void
void
setLogLevel
(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:
true
if the the Supervisor contains the DASU with the give id,false
otherwise
-
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
equals
check 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()hashCode
is based on the unique ID only. -
getDasusToDeploy
-
setDasusToDeploy
-