org.jacorb.notification

Class AbstractMessage

Implemented Interfaces:
Configurable, Disposable
Known Direct Subclasses:
AnyMessage

public abstract class AbstractMessage
extends AbstractPoolable

Version:
$Id: AbstractMessage.java,v 1.19 2004/05/06 12:39:59 nicolas Exp $

Author:
Alphonse Bendt

Field Summary

protected boolean
consumerAdminFiltered_
protected boolean
proxyConsumerFiltered_
protected boolean
proxySupplierFiltered_
protected int
referenced_
Internal Reference Counter.
protected boolean
supplierAdminFiltered_

Fields inherited from class org.jacorb.notification.interfaces.AbstractPoolable

logger_

Method Summary

void
addReference()
Add a reference on this NotificationEvent.
EvaluationResult
extractFilterableData(EvaluationContext context, ComponentName componentRootNode, String variable)
EvaluationResult
extractValue(EvaluationContext evaluationContext, ComponentName componentRootNode)
EvaluationResult
extractValue(EvaluationContext context, ComponentName componentRootNode, RuntimeVariable runtimeVariable)
EvaluationResult
extractVariableHeader(EvaluationContext context, ComponentName componentRootNode, String variable)
String
getConstraintKey()
get the Constraint Key for this Event.
FilterStage
getFilterStage()
Message
getHandle()
int
getPriority()
Date
getStartTime()
Date
getStopTime()
long
getTimeout()
int
getType()
get the Type of this NotificationEvent.
boolean
hasStartTime()
boolean
hasStopTime()
boolean
hasTimeout()
boolean
match(FilterStage filterStage)
boolean
match(Filter filter)
boolean
match(MappingFilter filter, AnyHolder value)
protected void
removeReference()
release this NotificationEvent.
void
reset()
void
setFilterStage(FilterStage node)
Any
toAny()
Access this NotificationEvent as Any.
StructuredEvent
toStructuredEvent()
Access this NotificationEvent as StructuredEvent.

Methods inherited from class org.jacorb.notification.interfaces.AbstractPoolable

configure, dispose, reset, setObjectPool

Field Details

consumerAdminFiltered_

protected boolean consumerAdminFiltered_


proxyConsumerFiltered_

protected boolean proxyConsumerFiltered_


proxySupplierFiltered_

protected boolean proxySupplierFiltered_


referenced_

protected int referenced_
Internal Reference Counter.


supplierAdminFiltered_

protected boolean supplierAdminFiltered_

Method Details

addReference

public void addReference()
Add a reference on this NotificationEvent. After Usage removeReference must be called.


extractFilterableData

public EvaluationResult extractFilterableData(EvaluationContext context,
                                              ComponentName componentRootNode,
                                              String variable)
            throws EvaluationException


extractValue

public EvaluationResult extractValue(EvaluationContext evaluationContext,
                                     ComponentName componentRootNode)
            throws EvaluationException


extractValue

public EvaluationResult extractValue(EvaluationContext context,
                                     ComponentName componentRootNode,
                                     RuntimeVariable runtimeVariable)
            throws EvaluationException


extractVariableHeader

public EvaluationResult extractVariableHeader(EvaluationContext context,
                                              ComponentName componentRootNode,
                                              String variable)
            throws EvaluationException


getConstraintKey

public String getConstraintKey()
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.

Returns:
a String value


getFilterStage

public FilterStage getFilterStage()


getHandle

public Message getHandle()


getPriority

public int getPriority()


getStartTime

public Date getStartTime()


getStopTime

public Date getStopTime()


getTimeout

public long getTimeout()


getType

public int getType()

Returns:
the Type of this NotificationEvent.


hasStartTime

public boolean hasStartTime()


hasStopTime

public boolean hasStopTime()


hasTimeout

public boolean hasTimeout()


match

public boolean match(FilterStage filterStage)


match

public boolean match(Filter filter)
            throws UnsupportedFilterableData


match

public boolean match(MappingFilter filter,
                     AnyHolder value)
            throws UnsupportedFilterableData


removeReference

protected void removeReference()
release this NotificationEvent. If the internal Refcounter is zero the NotificationEvent is returned to its pool.


reset

public void reset()
Overrides:
reset in interface AbstractPoolable


setFilterStage

public void setFilterStage(FilterStage node)


toAny

public Any toAny()
Access this NotificationEvent as Any.

Returns:
an Any value


toStructuredEvent

public StructuredEvent toStructuredEvent()
Access this NotificationEvent as StructuredEvent.

Returns:
a StructuredEvent value