|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamTypeService
Service supplying stream number and property type information.
Method Summary | |
---|---|
EventType[] |
getEventTypes()
Returns an array of event types for each event stream in the order declared. |
String[] |
getStreamNames()
Returns an array of event stream names in the order declared. |
PropertyResolutionDescriptor |
resolveByPropertyName(String propertyName)
Returns the offset of the stream and the type of the property for the given property name, by looking through the types offered and matching up. |
PropertyResolutionDescriptor |
resolveByStreamAndPropName(String streamAndPropertyName)
Returns the offset of the stream and the type of the property for the given property name, by looking through the types offered and matching up. |
PropertyResolutionDescriptor |
resolveByStreamAndPropName(String streamName,
String propertyName)
Returns the offset of the stream and the type of the property for the given property name, by using the specified stream name to resolve the property. |
Method Detail |
---|
PropertyResolutionDescriptor resolveByPropertyName(String propertyName) throws DuplicatePropertyException, PropertyNotFoundException
This method considers only a property name and looks at all streams to resolve the property name.
propertyName
- - property name in event
DuplicatePropertyException
- to indicate property was found twice
PropertyNotFoundException
- to indicate property could not be resolvedPropertyResolutionDescriptor resolveByStreamAndPropName(String streamName, String propertyName) throws PropertyNotFoundException, StreamNotFoundException
This method considers and explicit stream name and property name, both parameters are required.
streamName
- - name of stream, requiredpropertyName
- - property name in event, , required
PropertyNotFoundException
- to indicate property could not be resolved
StreamNotFoundException
- to indicate stream name could not be resolvedPropertyResolutionDescriptor resolveByStreamAndPropName(String streamAndPropertyName) throws DuplicatePropertyException, PropertyNotFoundException
This method considers a single property name that may or may not be prefixed by a stream name. The resolution first attempts to find the property name itself, then attempts to consider a stream name that may be part of the property name.
streamAndPropertyName
- - stream name and property name (e.g. s0.p0) or just a property name (p0)
DuplicatePropertyException
- to indicate property was found twice
PropertyNotFoundException
- to indicate property could not be resolvedString[] getStreamNames()
EventType[] getEventTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |