public class CollectorProcessDefinition extends Object implements IDomainModel
| Modifier and Type | Field and Description |
|---|---|
protected String |
depositoryId
The id of the depository where the measurements are stored.
|
protected Long |
pollingInterval
The number of seconds between polls.
|
protected Set<Property> |
properties
Additional properties for the Collector.
|
protected String |
sensorId
The id of the sensor making the measurements.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CollectorProcessDefinition()
Hide the default constructor.
|
|
CollectorProcessDefinition(String name,
String sensorId,
Long poll,
String depositoryId,
String ownerId) |
|
CollectorProcessDefinition(String id,
String name,
String sensorId,
Long poll,
String depositoryId,
Set<Property> properties,
String ownerId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProperty(Property e) |
boolean |
equals(Object obj) |
String |
getDepositoryId() |
String |
getId()
The slug is the name of the instance lower-cased, spaces replaced with '-',
and special characters removed.
|
String |
getName() |
String |
getOrganizationId() |
Long |
getPollingInterval() |
Set<Property> |
getProperties() |
Property |
getProperty(String key) |
String |
getSensorId() |
int |
hashCode() |
boolean |
removeProperty(Object o) |
void |
setDepositoryId(String depositoryId) |
void |
setId(String slug)
Sets the instance's slug.
|
void |
setName(String name)
Sets the name of the instance.
|
void |
setOrganizationId(String ownerId)
Sets the id of the owner of this instance.
|
void |
setPollingInterval(Long pollingInterval) |
void |
setProperties(Set<Property> properties) |
void |
setSensorId(String sensorId) |
String |
toString() |
protected String sensorId
protected Long pollingInterval
protected String depositoryId
protected CollectorProcessDefinition()
public CollectorProcessDefinition(String name, String sensorId, Long poll, String depositoryId, String ownerId)
name - The name of the CollectorProcessDefinition.sensorId - The id of the sensor that measures the environment.poll - The number of seconds between polls.depositoryId - The depository_id where measurements are stored.ownerId - the id of the owner of the collector.public CollectorProcessDefinition(String id, String name, String sensorId, Long poll, String depositoryId, Set<Property> properties, String ownerId)
id - The unique id for the CollectorProcessDefinition.name - The name of the CollectorProcessDefinition.sensorId - The id of the sensor that measures the environment.poll - The number of seconds between polls.depositoryId - The depository_id where measurements are stored.properties - The properties associated with this
CollectorProcessDefinition.ownerId - the id of the owner of the collector.public boolean addProperty(Property e)
e - The Property to add.List.add(java.lang.Object)public String getDepositoryId()
public String getId()
IDomainModelgetId in interface IDomainModelpublic String getName()
getName in interface IDomainModelpublic String getOrganizationId()
getOrganizationId in interface IDomainModelpublic Long getPollingInterval()
public Property getProperty(String key)
key - The key.public String getSensorId()
public boolean removeProperty(Object o)
o - The Property to remove.List.remove(java.lang.Object)public void setDepositoryId(String depositoryId)
depositoryId - the depositoryId to setpublic void setId(String slug) throws BadSlugException
IDomainModelsetId in interface IDomainModelslug - the id to setBadSlugException - if the slug is not a valid slug.public void setName(String name)
IDomainModelsetName in interface IDomainModelname - the name to setpublic void setOrganizationId(String ownerId)
IDomainModelsetOrganizationId in interface IDomainModelownerId - the id of the owner to setpublic void setPollingInterval(Long pollingInterval)
pollingInterval - the pollingInterval to setpublic void setProperties(Set<Property> properties)
properties - the properties to setpublic void setSensorId(String sensorId)
sensorId - the id of the sensor to setCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.