public class NotificationSchedule extends Object implements Comparable<NotificationSchedule>
eu.dnetlib.api.functionality.NotificationService,
eu.dnetlib.functionality.notification.executor.NotificationQueryExecutor,
NotificationQuery,
NotificationEvent,
NotificationResult,
NotificationSubscription| Constructor and Description |
|---|
NotificationSchedule()
Construct a new notification query with query identifier and trigger threshold set to null, percentile threshold and enabled set to false and execution period set to zero.
|
NotificationSchedule(String queryId,
Float triggerThreshold,
boolean percentileThreshold,
long executionPeriod,
boolean enabled)
Construct a new notification schedule.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NotificationSchedule schedule) |
boolean |
equals(Object object) |
long |
getExecutionPeriod()
Get the execution period of this schedule.
|
String |
getQueryId()
Get the query of this schedule.
|
Float |
getTriggerThreshold()
Get the trigger threshold of this schedule.
|
int |
hashCode() |
boolean |
isEnabled()
Check if this schedule is enabled.
|
boolean |
isPercentileThreshold()
Check if the trigger threshold of this schedule is percentile.
|
void |
setEnabled(boolean enabled)
Set the enabled status of this schedule.
|
void |
setExecutionPeriod(long executionPeriod)
Set the execution period of this schedule.
|
void |
setPercentileThreshold(boolean percentileThreshold)
Set the percentile status of the trigger threshold of this schedule.
|
void |
setQueryId(String queryId)
Set the query of this schedule.
|
void |
setTriggerThreshold(Float triggerThreshold)
Set the trigger threshold of this schedule.
|
String |
toString() |
public NotificationSchedule(String queryId, Float triggerThreshold, boolean percentileThreshold, long executionPeriod, boolean enabled)
queryId - the unique identifier of the query of this scheduletriggerThreshold - the trigger threshold of this schedule or null if no threshold appliespercentileThreshold - true if trigger threshold is percentile threshold, false otherwiseexecutionPeriod - the execution period of this schedule expressed in minutesenabled - true if this topic is currently enabled, false if it currently disabledpublic NotificationSchedule()
public String getQueryId()
public void setQueryId(String queryId)
queryId - the unique identifier of the query of this schedulepublic Float getTriggerThreshold()
public void setTriggerThreshold(Float triggerThreshold)
triggerThreshold - the the trigger threshold of this schedulepublic boolean isPercentileThreshold()
public void setPercentileThreshold(boolean percentileThreshold)
percentileThreshold - true to set a percentile trigger threshold to this schedule, false otherwisepublic long getExecutionPeriod()
public void setExecutionPeriod(long executionPeriod)
executionPeriod - the execution period of this schedulepublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true to enable this schedule, false to disable itpublic int compareTo(NotificationSchedule schedule)
compareTo in interface Comparable<NotificationSchedule>Copyright © 2017. All rights reserved.