org.jprocessunit.addon.jpd
Class DomainLogWaitEvent

java.lang.Object
  extended by org.jprocessunit.WaitEvent
      extended by org.jprocessunit.addon.jpd.DomainLogWaitEvent
All Implemented Interfaces:
java.rmi.Remote, java.util.EventListener, javax.management.NotificationListener, ProcessEvent, weblogic.management.RemoteNotificationListener

public class DomainLogWaitEvent
extends WaitEvent
implements weblogic.management.RemoteNotificationListener

JProcessUnit Wait Event used to wait for a server log entry matching a given string. Should only be created using DomainLogEventFactory from the org.jprocessunit.addon.jpd.util package.

Author:
Reza Shafii

Constructor Summary
DomainLogWaitEvent(java.lang.String matchString)
          The wait event is satisfied as soon as a single log entry (staring from the time this object was created) matches the selector.
 
Method Summary
 void handleNotification(javax.management.Notification notification, java.lang.Object obj)
           
 boolean waitConditionSatisfied()
          Method should be overriden by all subclasses (all specific wait events).
 
Methods inherited from class org.jprocessunit.WaitEvent
assertEvent, setPollingInterval, setTimeOutValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainLogWaitEvent

public DomainLogWaitEvent(java.lang.String matchString)
The wait event is satisfied as soon as a single log entry (staring from the time this object was created) matches the selector.

Parameters:
matchString -
Method Detail

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object obj)
Specified by:
handleNotification in interface javax.management.NotificationListener
Specified by:
handleNotification in interface weblogic.management.RemoteNotificationListener

waitConditionSatisfied

public boolean waitConditionSatisfied()
Description copied from class: WaitEvent
Method should be overriden by all subclasses (all specific wait events).

Specified by:
waitConditionSatisfied in class WaitEvent
Returns:
true if the wait condition was satified and false otherwise.


JProcessUnit API