org.jacorb.notification

Class AnyMessage

Implemented Interfaces:
Configurable, Disposable

public class AnyMessage
extends AbstractMessage

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

Author:
Alphonse Bendt

Field Summary

static int
DEFAULT_PRIORITY
static String
TYPE_NAME
protected Any
anyValue_
the wrapped value
protected StructuredEvent
structuredEventValue_
the wrapped Any converted to a StructuredEvent

Fields inherited from class org.jacorb.notification.AbstractMessage

consumerAdminFiltered_, proxyConsumerFiltered_, proxySupplierFiltered_, referenced_, supplierAdminFiltered_

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

logger_

Constructor Summary

AnyMessage()

Method Summary

EvaluationResult
extractFilterableData(EvaluationContext context, ComponentName root, String v)
EvaluationResult
extractVariableHeader(EvaluationContext context, ComponentName root, String v)
String
getConstraintKey()
get the Constraint Key for this Event.
int
getPriority()
Date
getStartTime()
Date
getStopTime()
long
getTimeout()
int
getType()
get the Type of this NotificationEvent.
boolean
hasStartTime()
boolean
hasStopTime()
boolean
hasTimeout()
boolean
match(Filter filter)
boolean
match(MappingFilter filter, AnyHolder value)
void
reset()
void
setAny(Any any)
Any
toAny()
Access this NotificationEvent as Any.
String
toString()
StructuredEvent
toStructuredEvent()
Access this NotificationEvent as StructuredEvent.

Methods inherited from class org.jacorb.notification.AbstractMessage

addReference, extractFilterableData, extractValue, extractValue, extractVariableHeader, getConstraintKey, getFilterStage, getHandle, getPriority, getStartTime, getStopTime, getTimeout, getType, hasStartTime, hasStopTime, hasTimeout, match, match, match, removeReference, reset, setFilterStage, toAny, toStructuredEvent

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

configure, dispose, reset, setObjectPool

Field Details

DEFAULT_PRIORITY

public static final int DEFAULT_PRIORITY

Field Value:
0


TYPE_NAME

public static final String TYPE_NAME


anyValue_

protected Any anyValue_
the wrapped value


structuredEventValue_

protected StructuredEvent structuredEventValue_
the wrapped Any converted to a StructuredEvent

Constructor Details

AnyMessage

public AnyMessage()

Method Details

extractFilterableData

public EvaluationResult extractFilterableData(EvaluationContext context,
                                              ComponentName root,
                                              String v)
            throws EvaluationException
Overrides:
extractFilterableData in interface AbstractMessage


extractVariableHeader

public EvaluationResult extractVariableHeader(EvaluationContext context,
                                              ComponentName root,
                                              String v)
            throws EvaluationException
Overrides:
extractVariableHeader in interface AbstractMessage


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.
Overrides:
getConstraintKey in interface AbstractMessage

Returns:
a String value


getPriority

public int getPriority()
Overrides:
getPriority in interface AbstractMessage


getStartTime

public Date getStartTime()
Overrides:
getStartTime in interface AbstractMessage


getStopTime

public Date getStopTime()
Overrides:
getStopTime in interface AbstractMessage


getTimeout

public long getTimeout()
Overrides:
getTimeout in interface AbstractMessage


getType

public int getType()
Overrides:
getType in interface AbstractMessage

Returns:
the Type of this NotificationEvent.


hasStartTime

public boolean hasStartTime()
Overrides:
hasStartTime in interface AbstractMessage


hasStopTime

public boolean hasStopTime()
Overrides:
hasStopTime in interface AbstractMessage


hasTimeout

public boolean hasTimeout()
Overrides:
hasTimeout in interface AbstractMessage


match

public boolean match(Filter filter)
            throws UnsupportedFilterableData
Overrides:
match in interface AbstractMessage


match

public boolean match(MappingFilter filter,
                     AnyHolder value)
            throws UnsupportedFilterableData
Overrides:
match in interface AbstractMessage


reset

public void reset()
Overrides:
reset in interface AbstractMessage


setAny

public void setAny(Any any)


toAny

public Any toAny()
Access this NotificationEvent as Any.
Overrides:
toAny in interface AbstractMessage

Returns:
an Any value


toString

public String toString()


toStructuredEvent

public StructuredEvent toStructuredEvent()
Access this NotificationEvent as StructuredEvent.
Overrides:
toStructuredEvent in interface AbstractMessage

Returns:
a StructuredEvent value