net.sf.doolin.gui.bus
Class BusMonitoringSubscription

java.lang.Object
  extended by net.sf.doolin.gui.bus.BusMonitoringSubscription

public class BusMonitoringSubscription
extends Object

Bean model for the representation of a Bus subscription.

Author:
Damien Coraboeuf

Constructor Summary
BusMonitoringSubscription(int id, String type, ISubscriptionInfo subscriberInfo)
          Constructor
 
Method Summary
 String getDescription()
           
 String getExecution()
           
 int getId()
          Returns the ID of this subscription
 long getRegistrationPeriod()
           
 org.joda.time.DateTime getRegistrationTimestamp()
           
 String getTrigger()
           
 String getType()
          Returns the type of this subscription
 String getValidator()
           
 boolean test()
          Tests if the associated subscription is still valid.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusMonitoringSubscription

public BusMonitoringSubscription(int id,
                                 String type,
                                 ISubscriptionInfo subscriberInfo)
Constructor

Parameters:
id - ID for this subscription
type - Type of message
subscriberInfo - Associated subscriber information
Method Detail

getExecution

public String getExecution()

getId

public int getId()
Returns the ID of this subscription

Returns:
ID of this subscription

getRegistrationPeriod

public long getRegistrationPeriod()

getRegistrationTimestamp

public org.joda.time.DateTime getRegistrationTimestamp()

getTrigger

public String getTrigger()

getType

public String getType()
Returns the type of this subscription

Returns:
Type of this subscription

getValidator

public String getValidator()

getDescription

public String getDescription()

test

public boolean test()
Tests if the associated subscription is still valid.

Returns:
true if the subscriber is still available and still valid.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.