com.espertech.esper.client.soda
Class MethodInvocationStream

java.lang.Object
  extended by com.espertech.esper.client.soda.Stream
      extended by com.espertech.esper.client.soda.MethodInvocationStream
All Implemented Interfaces:
java.io.Serializable

public class MethodInvocationStream
extends Stream

An stream that polls from a method.

See Also:
Serialized Form

Constructor Summary
MethodInvocationStream()
          Ctor.
MethodInvocationStream(java.lang.String className, java.lang.String methodName, java.lang.String optStreamName)
          Ctor.
 
Method Summary
 MethodInvocationStream addParameter(Expression parameterExpression)
          Adds a parameters to the method invocation.
static MethodInvocationStream create(java.lang.String className, java.lang.String methodName)
          Creates a new method-invocation-based stream without parameters.
static MethodInvocationStream create(java.lang.String className, java.lang.String methodName, java.lang.String optStreamName)
          Creates a new method-invocation-based stream without parameters.
 java.lang.String getClassName()
          Returns the name of the class providing the method.
 java.lang.String getMethodName()
          Returns the name of the static method to invoke in the from-clause.
 java.util.List<Expression> getParameterExpressions()
          Returns a list of expressions that are parameters to the method.
 void setClassName(java.lang.String className)
          Sets the name of the class providing the method.
 void setMethodName(java.lang.String methodName)
          Sets the name of the static method to invoke in the from-clause.
 void setParameterExpressions(java.util.List<Expression> parameterExpressions)
          Sets a list of expressions that are parameters to the method.
 void toEPLStream(java.io.StringWriter writer, EPStatementFormatter formatter)
          Renders the stream in textual representation.
 void toEPLStreamOptions(java.io.StringWriter writer)
          Renders the stream in textual representation any stream options, if present.
 void toEPLStreamType(java.io.StringWriter writer)
          Renders the stream type under a non-complete textual representation for tool use
 
Methods inherited from class com.espertech.esper.client.soda.Stream
getStreamName, setStreamName, toEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvocationStream

public MethodInvocationStream()
Ctor.


MethodInvocationStream

public MethodInvocationStream(java.lang.String className,
                              java.lang.String methodName,
                              java.lang.String optStreamName)
Ctor.

Parameters:
className - is the name of the class providing the method
methodName - is the name of the public static method
optStreamName - is the optional as-name of the stream, or null if unnamed
Method Detail

create

public static MethodInvocationStream create(java.lang.String className,
                                            java.lang.String methodName)
Creates a new method-invocation-based stream without parameters.

Parameters:
className - is the name of the class providing the method
methodName - is the name of the public static method
Returns:
stream

create

public static MethodInvocationStream create(java.lang.String className,
                                            java.lang.String methodName,
                                            java.lang.String optStreamName)
Creates a new method-invocation-based stream without parameters.

Parameters:
className - is the name of the class providing the method
methodName - is the name of the public static method
optStreamName - is the optional as-name of the stream, or null if unnamed
Returns:
stream

getClassName

public java.lang.String getClassName()
Returns the name of the class providing the method.

Returns:
class name

setClassName

public void setClassName(java.lang.String className)
Sets the name of the class providing the method.

Parameters:
className - class name

getMethodName

public java.lang.String getMethodName()
Returns the name of the static method to invoke in the from-clause.

Returns:
method name

setMethodName

public void setMethodName(java.lang.String methodName)
Sets the name of the static method to invoke in the from-clause.

Parameters:
methodName - method name

getParameterExpressions

public java.util.List<Expression> getParameterExpressions()
Returns a list of expressions that are parameters to the method.

Returns:
list of parameter expressions

setParameterExpressions

public void setParameterExpressions(java.util.List<Expression> parameterExpressions)
Sets a list of expressions that are parameters to the method.

Parameters:
parameterExpressions - list of parameter expressions

addParameter

public MethodInvocationStream addParameter(Expression parameterExpression)
Adds a parameters to the method invocation.

Parameters:
parameterExpression - is the expression to add
Returns:
stream

toEPLStream

public void toEPLStream(java.io.StringWriter writer,
                        EPStatementFormatter formatter)
Description copied from class: Stream
Renders the stream in textual representation.

Specified by:
toEPLStream in class Stream
Parameters:
writer - to output to
formatter - for newline-whitespace formatting

toEPLStreamType

public void toEPLStreamType(java.io.StringWriter writer)
Description copied from class: Stream
Renders the stream type under a non-complete textual representation for tool use

Specified by:
toEPLStreamType in class Stream
Parameters:
writer - to output to

toEPLStreamOptions

public void toEPLStreamOptions(java.io.StringWriter writer)
Description copied from class: Stream
Renders the stream in textual representation any stream options, if present.

Specified by:
toEPLStreamOptions in class Stream
Parameters:
writer - to output to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com