|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.Stream
com.espertech.esper.client.soda.MethodInvocationStream
public class MethodInvocationStream
An stream that polls from a method.
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 |
---|
public MethodInvocationStream()
public MethodInvocationStream(java.lang.String className, java.lang.String methodName, java.lang.String optStreamName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodoptStreamName
- is the optional as-name of the stream, or null if unnamedMethod Detail |
---|
public static MethodInvocationStream create(java.lang.String className, java.lang.String methodName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static method
public static MethodInvocationStream create(java.lang.String className, java.lang.String methodName, java.lang.String optStreamName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static methodoptStreamName
- is the optional as-name of the stream, or null if unnamed
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- class namepublic java.lang.String getMethodName()
public void setMethodName(java.lang.String methodName)
methodName
- method namepublic java.util.List<Expression> getParameterExpressions()
public void setParameterExpressions(java.util.List<Expression> parameterExpressions)
parameterExpressions
- list of parameter expressionspublic MethodInvocationStream addParameter(Expression parameterExpression)
parameterExpression
- is the expression to add
public void toEPLStream(java.io.StringWriter writer, EPStatementFormatter formatter)
Stream
toEPLStream
in class Stream
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLStreamType(java.io.StringWriter writer)
Stream
toEPLStreamType
in class Stream
writer
- to output topublic void toEPLStreamOptions(java.io.StringWriter writer)
Stream
toEPLStreamOptions
in class Stream
writer
- to output to
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |