|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.standalone.AbstractStandalone
adams.flow.standalone.Rserve
public class Rserve
Establishes a connection to the Rserve server.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The name of the actor. default: Rserve
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-host <java.lang.String> (property: host) The host the Rserve server is running on. default: localhost
-port <int> (property: port) The port the Rserve server is listening on. default: 6311 minimum: 0 maximum: 65535
| Field Summary | |
|---|---|
protected org.rosuda.REngine.Rserve.RConnection |
m_Connection
the connection in use. |
protected String |
m_Host
the Rserve host. |
protected int |
m_Port
the Rserve port. |
protected boolean |
m_Shutdown
whether we need to shutdown the server. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_ScopeHandler, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
Rserve()
|
|
| Method Summary | |
|---|---|
void |
closeConnection(org.rosuda.REngine.Rserve.RConnection conn)
Closes the connection to Rserve properly. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Connects to Rserve and feeds it the script. |
String |
getHost()
Returns the Rserve host. |
int |
getPort()
Returns the Rserve port. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Overall description of this flow. |
String |
hostTipText()
Returns the tip text for this property. |
org.rosuda.REngine.Rserve.RConnection |
newConnection()
Returns a new connection to the Rserve server. |
String |
portTipText()
Returns the tip text for this property. |
void |
setHost(String value)
Sets the Rserve host. |
void |
setPort(int value)
Sets the Rserve port. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
protected String m_Host
protected int m_Port
protected org.rosuda.REngine.Rserve.RConnection m_Connection
protected boolean m_Shutdown
| Constructor Detail |
|---|
public Rserve()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic void setHost(String value)
value - the hostpublic String getHost()
public String hostTipText()
public void setPort(int value)
value - the portpublic int getPort()
public String portTipText()
public String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in interface ActorgetQuickInfo in class AbstractActorpublic org.rosuda.REngine.Rserve.RConnection newConnection()
public void closeConnection(org.rosuda.REngine.Rserve.RConnection conn)
conn - the connection to closeprotected String doExecute()
doExecute in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||