|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.client.soda.Stream
net.esper.client.soda.MethodInvocationStream
public class MethodInvocationStream
An stream that polls from a method.
Constructor Summary | |
---|---|
MethodInvocationStream(String className,
String methodName,
String optStreamName)
Ctor. |
Method Summary | |
---|---|
MethodInvocationStream |
addParameter(Expression parameterExpression)
Adds a parameters to the method invocation. |
static MethodInvocationStream |
create(String className,
String methodName)
Creates a new method-invocation-based stream without parameters. |
static MethodInvocationStream |
create(String className,
String methodName,
String optStreamName)
Creates a new method-invocation-based stream without parameters. |
String |
getClassName()
Returns the name of the class providing the method. |
String |
getMethodName()
Returns the name of the static method to invoke in the from-clause. |
List<Expression> |
getParameterExpressions()
Returns a list of expressions that are parameters to the method. |
void |
setClassName(String className)
Sets the name of the class providing the method. |
void |
setMethodName(String methodName)
Sets the name of the static method to invoke in the from-clause. |
void |
setParameterExpressions(List<Expression> parameterExpressions)
Sets a list of expressions that are parameters to the method. |
void |
toEQLStream(StringWriter writer)
Renders the stream in textual representation. |
Methods inherited from class net.esper.client.soda.Stream |
---|
getStreamName, setStreamName, toEQL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodInvocationStream(String className, String methodName, 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(String className, String methodName)
className
- is the name of the class providing the methodmethodName
- is the name of the public static method
public static MethodInvocationStream create(String className, String methodName, 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 String getClassName()
public void setClassName(String className)
className
- class namepublic String getMethodName()
public void setMethodName(String methodName)
methodName
- method namepublic List<Expression> getParameterExpressions()
public void setParameterExpressions(List<Expression> parameterExpressions)
parameterExpressions
- list of parameter expressionspublic MethodInvocationStream addParameter(Expression parameterExpression)
parameterExpression
- is the expression to add
public void toEQLStream(StringWriter writer)
Stream
toEQLStream
in class Stream
writer
- to output to
|
© 2007 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 |