net.esper.eql.core
Class ViewResourceDelegateImpl

java.lang.Object
  extended by net.esper.eql.core.ViewResourceDelegateImpl
All Implemented Interfaces:
ViewResourceDelegate

public class ViewResourceDelegateImpl
extends Object
implements ViewResourceDelegate

Coordinates between view factories and requested resource (by expressions) the availability of view resources to expressions.


Constructor Summary
ViewResourceDelegateImpl(ViewFactoryChain[] viewFactories, StatementContext statementContext)
          Ctor.
 
Method Summary
 boolean requestCapability(int streamNumber, ViewCapability requestedCabability, ViewResourceCallback resourceCallback)
          Request a view resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewResourceDelegateImpl

public ViewResourceDelegateImpl(ViewFactoryChain[] viewFactories,
                                StatementContext statementContext)
Ctor.

Parameters:
viewFactories - array of view factory chains, one for each stream
statementContext - is statement-level services
Method Detail

requestCapability

public boolean requestCapability(int streamNumber,
                                 ViewCapability requestedCabability,
                                 ViewResourceCallback resourceCallback)
                          throws ExprValidationException
Description copied from interface: ViewResourceDelegate
Request a view resource.

Specified by:
requestCapability in interface ViewResourceDelegate
Parameters:
streamNumber - is the stream number to provide the resource
requestedCabability - describes the view capability required
resourceCallback - for the delegate to supply the resource
Returns:
true to indicate the resource can be granted
Throws:
ExprValidationException - for use by capabilities if a capability cannot be provide or a policy is violated

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com