Package com.adaptris.core.event
Class LicenseExpiryWarningEvent
- java.lang.Object
-
- com.adaptris.core.Event
-
- com.adaptris.core.AdapterLifecycleEvent
-
- com.adaptris.core.event.LicenseExpiryWarningEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class LicenseExpiryWarningEvent extends AdapterLifecycleEvent
AdapterLifecycleEvent
indicating that this Adapter's license is about to expire.- See Also:
- Serialized Form
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 Summary
Constructors Constructor Description LicenseExpiryWarningEvent()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.adaptris.core.AdapterLifecycleEvent
getAdapterUniqueId, getNameSpace, getWasSuccessful, setAdapterUniqueId, setWasSuccessful
-
Methods inherited from class com.adaptris.core.Event
createNameSpace, getCreationTime, getDestinationId, getSourceId, getUniqueId, setCreationTime, setDestinationId, setSourceId, setUniqueId
-
-
-
-
Method Detail
-
setLicenseExpiry
public void setLicenseExpiry(java.lang.String d) throws java.text.ParseException
Set the date when this license expires.- Parameters:
d
- the date.- Throws:
java.text.ParseException
- if the date string could not be parsed.
-
getLicenseExpiry
public java.lang.String getLicenseExpiry()
Get the date of the license expiry.- Returns:
- the date.
-
when
public java.util.Date when()
Get the expiry date as an actual Date object.- Returns:
- the expiry date.
-
setExpiryDate
public void setExpiryDate(java.util.Date d)
Set the expiry date using an actual Date object.- Parameters:
d
- the expiry date
-
getExpiryDate
public java.util.Date getExpiryDate()
-
-