Package adams.scripting.command.flow
Class ListFlows
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,RemoteCommand,RemoteCommandWithErrorMessage,RemoteCommandWithResponse,Serializable
public class ListFlows extends AbstractCommandWithResponse
Sends a list of registered running flows back.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOL_ANNOTATIONthe index of the annotation column.static intCOL_IDthe index of the ID column.static intCOL_PATHthe index of the flow file column.static intCOL_PAUSEDthe index of the paused column.static intCOL_ROOTthe index of the root actor name column.static intCOL_STOPPEDthe index of the stopped column.protected SpreadSheetm_Flowsthe flows.-
Fields inherited from class adams.scripting.command.AbstractCommandWithResponse
m_ErrorMessage, m_ResponseConnection
-
Fields inherited from class adams.scripting.command.AbstractCommand
m_RemoteScriptingEngineHandler, m_Request
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.scripting.command.RemoteCommand
KEY_COMMAND, KEY_TYPE, VALUE_REQUEST, VALUE_RESPONSE
-
-
Constructor Summary
Constructors Constructor Description ListFlows()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getRequestPayload()Always zero-length array.Object[]getRequestPayloadObjects()Returns the objects that represent the request payload.byte[]getResponsePayload()Returns the payload of the response, if any.Object[]getResponsePayloadObjects()Returns the objects that represent the response payload.StringglobalInfo()Returns a string describing the object.protected voidinitialize()Initializes the members.protected SpreadSheetnewSheet()Creates an empty spreadsheet of the correct format.protected voidprepareResponsePayload()Hook method for preparing the response payload,voidsetRequestPayload(byte[] value)Ignored.voidsetResponsePayload(byte[] value)Sets the payload for the response.-
Methods inherited from class adams.scripting.command.AbstractCommandWithResponse
afterSendResponse, assembleResponse, assembleResponseHeader, beforeSendResponse, defineOptions, doHandleRequest, getDefaultResponseConnection, getErrorMessage, getResponseConnection, handleResponse, hasErrorMessage, parse, responseConnectionTipText, setResponseConnection, toString
-
Methods inherited from class adams.scripting.command.AbstractCommand
afterSendRequest, assembleRequest, assembleRequestHeader, beforeSendRequest, getRemoteScriptingEngineHandler, handleRequest, isRequest, prepareRequestPayload, setRemoteScriptingEngineHandler, setRequest
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.scripting.command.RemoteCommand
afterSendRequest, assembleRequest, beforeSendRequest, getRemoteScriptingEngineHandler, handleRequest, isRequest, setRemoteScriptingEngineHandler, setRequest
-
-
-
-
Field Detail
-
COL_ID
public static final int COL_ID
the index of the ID column.- See Also:
- Constant Field Values
-
COL_PAUSED
public static final int COL_PAUSED
the index of the paused column.- See Also:
- Constant Field Values
-
COL_STOPPED
public static final int COL_STOPPED
the index of the stopped column.- See Also:
- Constant Field Values
-
COL_ROOT
public static final int COL_ROOT
the index of the root actor name column.- See Also:
- Constant Field Values
-
COL_ANNOTATION
public static final int COL_ANNOTATION
the index of the annotation column.- See Also:
- Constant Field Values
-
COL_PATH
public static final int COL_PATH
the index of the flow file column.- See Also:
- Constant Field Values
-
m_Flows
protected SpreadSheet m_Flows
the flows.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractCommand
-
newSheet
protected SpreadSheet newSheet()
Creates an empty spreadsheet of the correct format.- Returns:
- the template
-
setRequestPayload
public void setRequestPayload(byte[] value)
Ignored.- Parameters:
value- the payload
-
getRequestPayload
public byte[] getRequestPayload()
Always zero-length array.- Returns:
- the payload
-
getRequestPayloadObjects
public Object[] getRequestPayloadObjects()
Returns the objects that represent the request payload.- Returns:
- the objects
-
setResponsePayload
public void setResponsePayload(byte[] value)
Sets the payload for the response.- Parameters:
value- the payload
-
getResponsePayload
public byte[] getResponsePayload()
Returns the payload of the response, if any.- Returns:
- the payload
-
prepareResponsePayload
protected void prepareResponsePayload()
Hook method for preparing the response payload,- Overrides:
prepareResponsePayloadin classAbstractCommandWithResponse
-
getResponsePayloadObjects
public Object[] getResponsePayloadObjects()
Returns the objects that represent the response payload.- Returns:
- the objects
-
-