public class MeasurementPruningDefinition extends Object implements IDomainModel
Constructor and Description |
---|
MeasurementPruningDefinition()
Default constructor.
|
MeasurementPruningDefinition(String name,
String depositoryId,
String sensorId,
String orgId,
Integer ignore,
Integer collect,
Integer gap) |
MeasurementPruningDefinition(String slug,
String name,
String depositoryId,
String sensorId,
String orgId,
Integer ignore,
Integer collect,
Integer gap) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getCollectWindowDays() |
String |
getDepositoryId() |
Long |
getDuration() |
String |
getId()
The slug is the name of the instance lower-cased, spaces replaced with '-',
and special characters removed.
|
Integer |
getIgnoreWindowDays() |
Date |
getLastCompleted() |
Date |
getLastStarted() |
Integer |
getMinGapSeconds() |
String |
getName() |
Date |
getNextRun() |
Integer |
getNumMeasurementsCollected() |
String |
getOrganizationId() |
String |
getOrgId() |
String |
getSensorId() |
int |
hashCode() |
void |
setCollectWindowDays(Integer collectWindowDays) |
void |
setDepositoryId(String depositoryId) |
void |
setId(String id)
Sets the instance's slug.
|
void |
setIgnoreWindowDays(Integer ignoreWindowDays) |
void |
setLastCompleted(Date lastCompleted) |
void |
setLastStarted(Date lastStarted) |
void |
setMinGapSeconds(Integer minGapSeconds) |
void |
setName(String name)
Sets the name of the instance.
|
void |
setNextRun(Date nextRun) |
void |
setNumMeasurementsCollected(Integer numMeasurementsCollected) |
void |
setOrganizationId(String ownerId)
Sets the id of the owner of this instance.
|
void |
setOrgId(String orgId) |
void |
setSensorId(String sensorId) |
String |
toString() |
public MeasurementPruningDefinition()
public MeasurementPruningDefinition(String name, String depositoryId, String sensorId, String orgId, Integer ignore, Integer collect, Integer gap)
name
- The name of the garbage collection definition.depositoryId
- The id of the depository.sensorId
- The id of the sensor.orgId
- The id of the organization.ignore
- The number of days to ignore starting from now.collect
- The number of days to garbage collect in.gap
- The minimum gap between measurements in seconds.public MeasurementPruningDefinition(String slug, String name, String depositoryId, String sensorId, String orgId, Integer ignore, Integer collect, Integer gap)
slug
- The id for the garbage collection definition.name
- The name of the garbage collection definition.depositoryId
- The id of the depository.sensorId
- The id of the sensor.orgId
- The id of the organization.ignore
- The number of days to ignore starting from now.collect
- The number of days to garbage collect in.gap
- The minimum gap between measurements in seconds.public Integer getCollectWindowDays()
public String getDepositoryId()
public Long getDuration()
public String getId()
IDomainModel
getId
in interface IDomainModel
public Integer getIgnoreWindowDays()
public Date getLastCompleted()
public Date getLastStarted()
public Integer getMinGapSeconds()
public String getName()
getName
in interface IDomainModel
public Date getNextRun()
public Integer getNumMeasurementsCollected()
public String getOrganizationId()
getOrganizationId
in interface IDomainModel
public String getOrgId()
public String getSensorId()
public void setCollectWindowDays(Integer collectWindowDays)
collectWindowDays
- the collectWindowDays to setpublic void setDepositoryId(String depositoryId)
depositoryId
- the depositoryId to setpublic void setId(String id)
IDomainModel
setId
in interface IDomainModel
id
- the id to setpublic void setIgnoreWindowDays(Integer ignoreWindowDays)
ignoreWindowDays
- the ignoreWindowDays to setpublic void setLastCompleted(Date lastCompleted)
lastCompleted
- the lastCompleted to setpublic void setLastStarted(Date lastStarted)
lastStarted
- the lastStarted to setpublic void setMinGapSeconds(Integer minGapSeconds)
minGapSeconds
- the minGapSeconds to setpublic void setName(String name)
IDomainModel
setName
in interface IDomainModel
name
- the name to setpublic void setNextRun(Date nextRun)
nextRun
- the nextRun to setpublic void setNumMeasurementsCollected(Integer numMeasurementsCollected)
numMeasurementsCollected
- the numMeasurementsCollected to setpublic void setOrganizationId(String ownerId)
IDomainModel
setOrganizationId
in interface IDomainModel
ownerId
- the id of the owner.public void setOrgId(String orgId)
orgId
- the orgId to setpublic void setSensorId(String sensorId)
sensorId
- the sensorId to setCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.