public class LicenseExpiryWarningEvent extends AdapterLifecycleEvent
AdapterLifecycleEvent
indicating that this Adapter's license is about to expire.
In the adapter configuration file this class is aliased as license-expiry-warning-event which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
LicenseExpiryWarningEvent()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getExpiryDate() |
java.lang.String |
getLicenseExpiry()
Get the date of the license expiry.
|
void |
setExpiryDate(java.util.Date d)
Set the expiry date using an actual Date object.
|
void |
setLicenseExpiry(java.lang.String d)
Set the date when this license expires.
|
java.util.Date |
when()
Get the expiry date as an actual Date object.
|
getAdapterUniqueId, getNameSpace, getWasSuccessful, setAdapterUniqueId, setWasSuccessful
createNameSpace, getCreationTime, getDestinationId, getSourceId, getUniqueId, setCreationTime, setDestinationId, setSourceId, setUniqueId
public LicenseExpiryWarningEvent()
Creates a new instance.
public void setLicenseExpiry(java.lang.String d) throws java.text.ParseException
d
- the date.java.text.ParseException
- if the date string could not be parsed.public java.lang.String getLicenseExpiry()
public java.util.Date when()
public void setExpiryDate(java.util.Date d)
d
- the expiry datepublic java.util.Date getExpiryDate()