org.gridbus.broker.event
Class BrokerEventListener

java.lang.Object
  extended by org.gridbus.broker.event.BrokerEventListener
All Implemented Interfaces:
JobListener, ScheduleListener, ServerListener

public class BrokerEventListener
extends java.lang.Object
implements JobListener, ServerListener, ScheduleListener

Author:
krishna The BrokerEventListener is the class inside the broker which listens to all general events, such as those mentioned above, and responds to them, by persisting the broker state to a database. This is an example of how applications using the broker could handle and respond to events

Constructor Summary
BrokerEventListener()
           
 
Method Summary
 void scheduleEvent(GridbusFarmingEngine gfe)
          Scheduling Event
 void statusChanged(Job j)
          Status changed event for a Job
 void statusChanged(Server s)
          Server status changed event
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerEventListener

public BrokerEventListener()
Method Detail

statusChanged

public void statusChanged(Job j)
Description copied from interface: JobListener
Status changed event for a Job

Specified by:
statusChanged in interface JobListener
See Also:
JobListener.statusChanged(org.gridbus.broker.farming.common.Job)

statusChanged

public void statusChanged(Server s)
Description copied from interface: ServerListener
Server status changed event

Specified by:
statusChanged in interface ServerListener
See Also:
ServerListener.statusChanged(org.gridbus.broker.farming.common.Server)

scheduleEvent

public void scheduleEvent(GridbusFarmingEngine gfe)
Description copied from interface: ScheduleListener
Scheduling Event

Specified by:
scheduleEvent in interface ScheduleListener
Parameters:
gfe -