com.orange.cepheus.cep.model.Provider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cepheus-cep Show documentation
Show all versions of cepheus-cep Show documentation
Cepheus-CEP is a CEP (Complex Event Processor), it uses the Esper engine.
/*
* Copyright (C) 2015 Orange
*
* This software is distributed under the terms and conditions of the 'GNU GENERAL PUBLIC LICENSE
* Version 2' license which can be found in the file 'LICENSE.txt' in this package distribution or
* at 'http://www.gnu.org/licenses/gpl-2.0-standalone.html'.
*/
package com.orange.cepheus.cep.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonValue;
import java.time.Instant;
/**
* Provider defines the URL of one of the providers of a EventTypeIn.
*/
public class Provider {
/**
* URL of the provider
*/
private String url;
/**
* Date of last successful subscription.
* Used by the SubscriptionManager to track valid subscriptions
*/
@JsonIgnore
private Instant subscriptionDate;
/**
* Id of the subscription
* Used by the SubscriptionManager to track valid subscriptions
*/
@JsonIgnore
private String subscriptionId;
/**
* Constructor used by Jackson for deserialization
* @param url the URL of the provider
*/
Provider(String url) {
this.url = url;
}
/**
* Used by Jackson for serialization
* @return the URL of the provider
*/
@JsonValue
public String toString() {
return this.url;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Instant getSubscriptionDate() {
return subscriptionDate;
}
public void setSubscriptionDate(Instant subscriptionDate) {
this.subscriptionDate = subscriptionDate;
}
public String getSubscriptionId() {
return subscriptionId;
}
public void setSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
}
}