org.jacorb.notification
Class TypedEventMessage

java.lang.Object
  extended byorg.jacorb.notification.util.AbstractPoolable
      extended byorg.jacorb.notification.AbstractMessage
          extended byorg.jacorb.notification.TypedEventMessage
All Implemented Interfaces:
org.picocontainer.Disposable, Disposable

public class TypedEventMessage
extends AbstractMessage

Version:
$Id: TypedEventMessage.java,v 1.6 2006/03/08 20:38:30 alphonse.bendt Exp $
Author:
Alphonse Bendt

Field Summary
static java.lang.String EVENT_TYPE
           
static java.lang.String OPERATION_NAME
           
static java.lang.String TYPE_NAME
           
 
Fields inherited from class org.jacorb.notification.AbstractMessage
consumerAdminFiltered_, proxyConsumerFiltered_, proxySupplierFiltered_, referenced_, supplierAdminFiltered_
 
Fields inherited from class org.jacorb.notification.util.AbstractPoolable
logger_
 
Constructor Summary
TypedEventMessage()
           
 
Method Summary
 void doReset()
           
 EvaluationResult extractFilterableData(EvaluationContext evaluationContext, ComponentName componentName, java.lang.String headerName)
           
 EvaluationResult extractVariableHeader(EvaluationContext evaluationContext, ComponentName componentName, java.lang.String headerName)
           
 java.lang.String getConstraintKey()
          get the Constraint Key for this Event.
 int getPriority()
           
 long getStartTime()
           
 long getStopTime()
           
 long getTimeout()
           
 int getType()
          get the Type of this NotificationEvent.
 boolean hasStartTime()
           
 boolean hasStopTime()
           
 boolean hasTimeout()
           
 boolean match(Filter filter)
           
 boolean match(MappingFilter mappingFilter, AnyHolder anyHolder)
           
 void setTypedEvent(Property[] props)
           
 void setTypedEvent(java.lang.String interfaceName, java.lang.String operation, Property[] params)
           
 Any toAny()
          Access this NotificationEvent as Any.
 StructuredEvent toStructuredEvent()
          Access this NotificationEvent as StructuredEvent.
 Property[] toTypedEvent()
          convert this message to a TypedEvent.
 
Methods inherited from class org.jacorb.notification.AbstractMessage
addReference, calcConstraintKey, extractValue, extractValue, getFilterStage, getHandle, getReceiveTimestamp, initReceiveTimestamp, match, removeReference, reset, setFilterStage
 
Methods inherited from class org.jacorb.notification.util.AbstractPoolable
dispose, setObjectPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

OPERATION_NAME

public static final java.lang.String OPERATION_NAME
See Also:
Constant Field Values

EVENT_TYPE

public static final java.lang.String EVENT_TYPE
See Also:
Constant Field Values
Constructor Detail

TypedEventMessage

public TypedEventMessage()
Method Detail

doReset

public void doReset()
Overrides:
doReset in class AbstractMessage

getConstraintKey

public java.lang.String getConstraintKey()
Description copied from class: AbstractMessage
get the Constraint Key for this Event. The Constraint Key is used to fetch the Filter Constraints that must be evaluated for this Event. The Constraint Key consists of domain_name and type_name of the Event.

Specified by:
getConstraintKey in class AbstractMessage
Returns:
a String value

setTypedEvent

public void setTypedEvent(java.lang.String interfaceName,
                          java.lang.String operation,
                          Property[] params)

setTypedEvent

public void setTypedEvent(Property[] props)

toAny

public Any toAny()
Description copied from class: AbstractMessage
Access this NotificationEvent as Any.

Specified by:
toAny in class AbstractMessage
Returns:
an Any value

toStructuredEvent

public StructuredEvent toStructuredEvent()
Description copied from class: AbstractMessage
Access this NotificationEvent as StructuredEvent.

Specified by:
toStructuredEvent in class AbstractMessage
Returns:
a StructuredEvent value

toTypedEvent

public Property[] toTypedEvent()
Description copied from class: AbstractMessage
convert this message to a TypedEvent.

Specified by:
toTypedEvent in class AbstractMessage
Returns:
a sequence of name-value pairs.

getType

public int getType()
Description copied from class: AbstractMessage
get the Type of this NotificationEvent. The value is one of Message.TYPE_ANY,Message.TYPE_STRUCTURED, or Message.TYPE_TYPED.

Specified by:
getType in class AbstractMessage
Returns:
the Type of this NotificationEvent.

extractFilterableData

public EvaluationResult extractFilterableData(EvaluationContext evaluationContext,
                                              ComponentName componentName,
                                              java.lang.String headerName)
                                       throws EvaluationException
Specified by:
extractFilterableData in class AbstractMessage
Throws:
EvaluationException

extractVariableHeader

public EvaluationResult extractVariableHeader(EvaluationContext evaluationContext,
                                              ComponentName componentName,
                                              java.lang.String headerName)
                                       throws EvaluationException
Specified by:
extractVariableHeader in class AbstractMessage
Throws:
EvaluationException

hasStartTime

public boolean hasStartTime()
Specified by:
hasStartTime in class AbstractMessage

getStartTime

public long getStartTime()
Specified by:
getStartTime in class AbstractMessage

hasStopTime

public boolean hasStopTime()
Specified by:
hasStopTime in class AbstractMessage

getStopTime

public long getStopTime()
Specified by:
getStopTime in class AbstractMessage

hasTimeout

public boolean hasTimeout()
Specified by:
hasTimeout in class AbstractMessage

getTimeout

public long getTimeout()
Specified by:
getTimeout in class AbstractMessage

getPriority

public int getPriority()
Specified by:
getPriority in class AbstractMessage

match

public boolean match(Filter filter)
              throws UnsupportedFilterableData
Specified by:
match in class AbstractMessage
Throws:
UnsupportedFilterableData

match

public boolean match(MappingFilter mappingFilter,
                     AnyHolder anyHolder)
              throws UnsupportedFilterableData
Specified by:
match in class AbstractMessage
Throws:
UnsupportedFilterableData