com.connecterra.ale.api
Interface ECSpecInfo

All Known Implementing Classes:
EngineECSpecInfo

public interface ECSpecInfo

Describes administrative information for an event cycle specification.

This class is an extension to the ALE 1.0 Specification

See Also:
ALE.getECSpecInfo(java.lang.String)

Method Summary
 int getActivationCount()
          Returns the number of times the event cycle for the ECSpec has been activated since it was defined.
 long getLastActivated()
          Returns the last time the event cycle for the ECSpec was activated.
 long getLastReported()
          Returns the last time a report was generated by the event cycle for the ECSpec.
 int getSubscriberCount()
          Returns the number of URIs subscribed to an ECSpec.
 boolean isSuspended()
          Returns true if the ECSpec processing is suspended.
 

Method Detail

getSubscriberCount

public int getSubscriberCount()
Returns the number of URIs subscribed to an ECSpec.


getActivationCount

public int getActivationCount()
Returns the number of times the event cycle for the ECSpec has been activated since it was defined.


getLastActivated

public long getLastActivated()
Returns the last time the event cycle for the ECSpec was activated.

Returns:
A time in milliseconds, as returned from System.currentTimeMillis(). If the event cycle has never been activated, returns -1.

getLastReported

public long getLastReported()
Returns the last time a report was generated by the event cycle for the ECSpec.

Returns:
A time in milliseconds, as returned from System.currentTimeMillis(). If a report has never been generated, returns -1.

isSuspended

public boolean isSuspended()
Returns true if the ECSpec processing is suspended.

See Also:
ALE.suspend(java.lang.String)