Package com.streambase.sb.client
Class HAAdmin
java.lang.Object
com.streambase.sb.client.HAAdmin
- All Implemented Interfaces:
Admin
Interface describes the admin commands that pass from the
client to the stream base server.
Currently, the lowest implementation layer uses XMLRPC for the protocol.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
addContainer
(long timeoutMS, String containerName, byte[] application, List<String> containerStreamMappings) Add the given application to the given container in the StreamBaseServerString[]
Add the given deploy file to the server.addExceptions
(List<Throwable> exceptions, Throwable current) add the given exception to the list of exceptionsboolean
checkLicense
(long timeoutMS, String featureName) Return true if a license for the specified feature is available and false otherwise.clearEvalCache
(long timeoutMS, String containerName) Clear evaluation cachestatic String
Create a URI string of baseURI's from a list of urisReturn an XML description of a StreamBase entityvoid
Drain a StreamBase container or if empty the entire Servervoid
enqueue
(long timeoutMS, StreamProperties props, Collection<String> tuples) Enqueue a list of CSV encoded tuples using connectionless XMLRPCvoid
fastForwardTime
(long timeout, Object value) Number of milliseconds to jump forward in time.getByteOrder
(long timeoutMS) What is the byte order of the server?com.streambase.sb.util.ByteString
Return the connection id (which may be null)getDynamicVariableField
(long timeoutMS, com.streambase.sb.util.Path dynamicVariablePath) getDynamicVariables
(long timeoutMS, com.streambase.sb.util.Path modulePath) Return the current value of the dynamic variables in the given module, as a Tuple of field name to Java value.getEvalCacheContent
(long timeout, String containerName) Get evaluation cache contentgetMapperCacheContent
(long timeoutMS, String containerName) Get mapper cache contentgetNamesForContainer
(long timeoutMS, int id) Return a map of id and names for the given container id.String[]
getOperatorProperties
(long timeoutMS, String operatorName) For the given Operator, return its set of properties and their values.getOperatorProperty
(long timeoutMS, String operatorName, String propertyName) Return the value of the given property on the given Operator.getSchemaByHash
(long timeoutMS, byte[] hash) Return the Schema object for the given hash valuegetSchemaByName
(long timeoutMS, String schemaName) Return the Schema object for the given namegetStreamProperties
(long timeoutMS, String streamName) Return the StreamProperties for the given name.getStreamProperties
(long timeoutMS, String streamName, CaptureTransformStrategy strategy) Return the StreamProperties for the given name.getStreamPropertiesByHash
(long timeoutMS, byte[] hash) Return the StreamProperties for the given hashgetTargetTime
(long timeout) Get target timeString[]
internalCommand
(long timeoutMS, String... args) run an internal commandboolean
isHA()
Are we in HA modeString[]
killAllConnections
(long timeoutMS) Kill all of the connections on the serverString[]
killConnection
(long timeoutMS, byte[] connectionId) Kill the connection with the given connectionIdString[]
listConnections
(long timeoutMS, StreamBaseAdminClient.ListConnectionArgument... args) Return an array of client connectionsString[]
listEntities
(long timeoutMS, String entityType, int flags, CaptureTransformStrategy strategy) Return an array of entity names for the given entity typeString[]
manageJdbcConnections
(long timeoutMS, List<String> args) Manage jdbc connections: count [name]Count the open JDBC connections to the named data source (or all data sources if ommitted) close [name]Close any open JDBC connections to the named data source (or all data sources if ommitted)void
modifyApplication
(long timeoutMS, byte[] application) Modify the StreamBase Server with the given StreamBase application.String[]
modifyContainer
(long timeoutMS, String containerName, List<String> args) Modify the given containerString[]
operatorStatus
(long timeoutMS, String containerName) Return the status of each Operator present in the StreamBase server.static StreamBaseException
processExceptions
(String message, List<Throwable> exceptions, String baseUri, Class<?> exceptionsCheck) Look through the exceptions; if we have one that isn't an XMLRPCException then throw that one otherwise bundle them all up into a list exception.Return rows from the table.String[]
removeContainer
(long timeoutMS, String containerName, List<String> args) Remove the given container in the StreamBaseServerString[]
restartContainer
(long timeoutMS, String containerName) Restart the given containervoid
restartOperators
(long timeoutMS, List<String> operatorNames) Restart the given Operators on the StreamBase server.void
Resume a paused StreamBase container of if empty the whole Servervoid
resumeOperators
(long timeoutMS, List<String> operatorsNames) Resume the given Operators on the StreamBase servervoid
setConnectionID
(com.streambase.sb.util.ByteString _connectionid) Set the Connection IDvoid
setDynamicVariable
(long timeoutMS, com.streambase.sb.util.Path dynamicVariablePath, Object value) Set the value of the given dynamic variable to the given value.void
setOperatorProperty
(long timeoutMS, String operatorName, String propertyName, String value) On the given Operator, set the given property to the given value.void
setRuntimeParam
(long timeoutMS, String paramName, String paramValue, String operator) set the given runtime paramShutdown a StreamBase container or if empty the whole servervoid
shutdownOperators
(long timeoutMS, List<String> operatorNames) Shut down the given Operators on the StreamBase server.String[]
status
(long timeoutMS, boolean verbose) Return the status of the StreamBase Serversubscribe
(long timeoutMS, SubscriptionEntry subscription, List<TupleConnections.StreamTupleConnection> connections) Subscribe to an output stream.void
Suspend (pause) a StreamBase container or operatorvoid
suspendOperators
(long timeoutMS, List<String> operatorNames) Suspend the given Operators on the StreamBase ServerTypecheck (validate) the given StreamBase Application.void
unsubscribe
(long timeoutMS, StreamProperties props, String logicalstream, List<TupleConnections.StreamTupleConnection> connections) UnSubscribe to an output stream.
-
Constructor Details
-
HAAdmin
HAAdmin(List<StreamBaseURI> uris) throws StreamBaseException Constructor- Parameters:
uris
- server URIs- Throws:
StreamBaseException
- error creating admin
-
-
Method Details
-
isHA
public boolean isHA()Description copied from interface:Admin
Are we in HA mode -
getByteOrder
Description copied from interface:Admin
What is the byte order of the server?- Specified by:
getByteOrder
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to complete- Returns:
- byte order of the server
- Throws:
StreamBaseException
-
modifyApplication
Modify the StreamBase Server with the given StreamBase application.- Parameters:
timeoutMS
- timeout in millisecondsapplication
- the application- Throws:
StreamBaseException
- thrown on typecheck and other errors
-
typecheck
public StreamProperties[] typecheck(long timeoutMS, String application, boolean full) throws StreamBaseException Description copied from interface:Admin
Typecheck (validate) the given StreamBase Application. Return a list of StreamProperties for that Application- Specified by:
typecheck
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeapplication
- contents of an application. Text sbapp or ssql.full
- do a full typecheck- Returns:
- array of StreamProperties for the StreamBase application
- Throws:
StreamBaseException
- on network or typecheck error
-
shutdown
Description copied from interface:Admin
Shutdown a StreamBase container or if empty the whole server- Specified by:
shutdown
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- optional containerName- Returns:
- message describing the shutdown outcome
- Throws:
StreamBaseException
- thrown on network or other errors
-
shutdownOperators
public void shutdownOperators(long timeoutMS, List<String> operatorNames) throws StreamBaseException Description copied from interface:Admin
Shut down the given Operators on the StreamBase server.- Specified by:
shutdownOperators
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorNames
- The Operators to shut down- Throws:
StreamBaseException
- throws on network or other errors
-
restartOperators
Description copied from interface:Admin
Restart the given Operators on the StreamBase server. The Operators must currently be shut down.- Specified by:
restartOperators
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorNames
- The Operators to shut down- Throws:
StreamBaseException
- throws on network or other errors
-
suspendOperators
Description copied from interface:Admin
Suspend the given Operators on the StreamBase Server- Specified by:
suspendOperators
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorNames
- the operators to suspend- Throws:
StreamBaseException
- thrown on network or other errors
-
suspend
Suspend (pause) a StreamBase container or operator- Specified by:
suspend
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completename
- container or operator name- Throws:
StreamBaseException
- thrown on network or other errors
-
resumeOperators
Description copied from interface:Admin
Resume the given Operators on the StreamBase server- Specified by:
resumeOperators
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorsNames
- the operators to suspend- Throws:
StreamBaseException
-
resume
Description copied from interface:Admin
Resume a paused StreamBase container of if empty the whole Server- Specified by:
resume
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- optional containerName- Throws:
StreamBaseException
-
describe
Description copied from interface:Admin
Return an XML description of a StreamBase entity- Specified by:
describe
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeentityName
- the name of the entity to describe- Returns:
- an XML description of a StreamBase entity
- Throws:
StreamBaseException
- thrown on network or other errors
-
checkLicense
Description copied from interface:Admin
Return true if a license for the specified feature is available and false otherwise.- Specified by:
checkLicense
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completefeatureName
- the name of the licensed feature- Returns:
- true if a license for the specified feature is available and false otherwise
- Throws:
StreamBaseException
- thrown on network or other errors
-
getStreamProperties
public StreamProperties getStreamProperties(long timeoutMS, String streamName, CaptureTransformStrategy strategy) throws StreamBaseException Description copied from interface:Admin
Return the StreamProperties for the given name.- Specified by:
getStreamProperties
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completestreamName
- the stream name to lookupstrategy
- theCaptureTransformStrategy
to use if the target stream has capture fields.- Returns:
- The StreamProperties object for the given name
- Throws:
StreamBaseException
- thrown on network or other errors
-
getStreamProperties
public StreamProperties getStreamProperties(long timeoutMS, String streamName) throws StreamBaseException Description copied from interface:Admin
Return the StreamProperties for the given name. UsesCaptureTransformStrategy.FLATTEN
- Specified by:
getStreamProperties
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completestreamName
- the stream name to lookup- Returns:
- The StreamProperties object for the given name
- Throws:
StreamBaseException
- thrown on network or other errors
-
getStreamPropertiesByHash
public StreamProperties getStreamPropertiesByHash(long timeoutMS, byte[] hash) throws StreamBaseException Description copied from interface:Admin
Return the StreamProperties for the given hash- Specified by:
getStreamPropertiesByHash
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completehash
- The Hash to lookup- Returns:
- The StreamProperties object for the given name
- Throws:
StreamBaseException
- thrown on network or other errors
-
listEntities
public String[] listEntities(long timeoutMS, String entityType, int flags, CaptureTransformStrategy strategy) throws StreamBaseException Description copied from interface:Admin
Return an array of entity names for the given entity type- Specified by:
listEntities
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeentityType
- the entity type to do the lookupflags
- FULLY_QUALIFIED_NAMES and INCLUDE_MODULES flagsstrategy
- the capture transform strategy- Returns:
- an array of entity names for the given entity type
- Throws:
StreamBaseException
- thrown on network or other errors
-
getSchemaByHash
Description copied from interface:Admin
Return the Schema object for the given hash value- Specified by:
getSchemaByHash
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completehash
- a byte array that contains a hash value- Returns:
- The Schema object associated with the given hash value
- Throws:
StreamBaseException
- thrown on network or other errors
-
getSchemaByName
Description copied from interface:Admin
Return the Schema object for the given name- Specified by:
getSchemaByName
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeschemaName
- the name of the Schema to lookup- Returns:
- the Schema for the given name
- Throws:
StreamBaseException
- thrown on network or other errors
-
drain
Description copied from interface:Admin
Drain a StreamBase container or if empty the entire Server- Specified by:
drain
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- optional containerName- Throws:
StreamBaseException
- thrown on network or other errors
-
getOperatorProperties
public String[] getOperatorProperties(long timeoutMS, String operatorName) throws StreamBaseException Description copied from interface:Admin
For the given Operator, return its set of properties and their values.- Specified by:
getOperatorProperties
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorName
- The operator whose properties are retrieved.- Returns:
- set of operator properties and values
- Throws:
StreamBaseException
-
getOperatorProperty
public String getOperatorProperty(long timeoutMS, String operatorName, String propertyName) throws StreamBaseException Description copied from interface:Admin
Return the value of the given property on the given Operator.- Specified by:
getOperatorProperty
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorName
- The operator whose property value is retrieved.propertyName
- The property whose value is retrieved.- Returns:
- set of operator properties and values
- Throws:
StreamBaseException
-
setOperatorProperty
public void setOperatorProperty(long timeoutMS, String operatorName, String propertyName, String value) throws StreamBaseException Description copied from interface:Admin
On the given Operator, set the given property to the given value.- Specified by:
setOperatorProperty
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeoperatorName
- The operator whose property value is set.propertyName
- The property whose value is set.value
- The value set.- Throws:
StreamBaseException
-
operatorStatus
Description copied from interface:Admin
Return the status of each Operator present in the StreamBase server.- Specified by:
operatorStatus
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- name of the container- Returns:
- An array of Strings, each String hold the status of an Operator present in the server.
- Throws:
StreamBaseException
-
status
Description copied from interface:Admin
Return the status of the StreamBase Server- Specified by:
status
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeverbose
- return a verbose status- Returns:
- the status
- Throws:
StreamBaseException
- thrown on network and other errors
-
subscribe
public SubscriptionEntry subscribe(long timeoutMS, SubscriptionEntry subscription, List<TupleConnections.StreamTupleConnection> connections) throws StreamBaseException Description copied from interface:Admin
Subscribe to an output stream.- Specified by:
subscribe
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completesubscription
- aSubscriptionEntry
describing the desired subscription. Contains theStreamProperties
of the desired stream, an optional predicate, and an optional logical stream to associate with the predicate.connections
- the list of tupleconnections on which to subscribe to- Returns:
- a subscription entry
- Throws:
StreamBaseException
- server errors, or network errors.
-
unsubscribe
public void unsubscribe(long timeoutMS, StreamProperties props, String logicalstream, List<TupleConnections.StreamTupleConnection> connections) throws StreamBaseException Description copied from interface:Admin
UnSubscribe to an output stream.- Specified by:
unsubscribe
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeprops
- the streamlogicalstream
- name of the logical streamconnections
- the list of tupleconnections on which to subscribe to- Throws:
StreamBaseException
- server errors, or network errors.
-
listConnections
public String[] listConnections(long timeoutMS, StreamBaseAdminClient.ListConnectionArgument... args) throws StreamBaseException Description copied from interface:Admin
Return an array of client connections- Specified by:
listConnections
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeargs
- arguments for the command- Returns:
- an array of client connections
- Throws:
StreamBaseException
- thrown on network or other errors
-
internalCommand
Description copied from interface:Admin
run an internal command- Specified by:
internalCommand
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeargs
- the arguments for the command- Returns:
- the results of the command
- Throws:
StreamBaseException
- thrown on network or other errors
-
enqueue
public void enqueue(long timeoutMS, StreamProperties props, Collection<String> tuples) throws StreamBaseException Description copied from interface:Admin
Enqueue a list of CSV encoded tuples using connectionless XMLRPC- Specified by:
enqueue
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeprops
- StreamProperties for streamtuples
- list of tuples- Throws:
StreamBaseException
-
setRuntimeParam
public void setRuntimeParam(long timeoutMS, String paramName, String paramValue, String operator) throws StreamBaseException Description copied from interface:Admin
set the given runtime param- Specified by:
setRuntimeParam
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeparamName
- the name of the paramparamValue
- the value of the commandoperator
- the operator for the param- Throws:
StreamBaseException
-
addContainer
public String[] addContainer(long timeoutMS, String containerName, byte[] application, List<String> containerStreamMappings) throws StreamBaseException Description copied from interface:Admin
Add the given application to the given container in the StreamBaseServer- Specified by:
addContainer
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- the containerNameapplication
- contents of an application. Text sbapp, ssql or binary contents of a jar filecontainerStreamMappings
- stream mappings between containers. Each member of the list should contain a mapping. For example: newContainer.newStream=oldContainer.oldStream- Returns:
- results if any
- Throws:
StreamBaseException
- thrown on typecheck and other errors
-
addDeploy
public String[] addDeploy(long timeoutMS, byte[] deploy, List<String> args) throws StreamBaseException Description copied from interface:Admin
Add the given deploy file to the server. This will add all containers and all container connections defined in the deploy file. At that point, they are treated as any other container or container connection, and may be manipulated by modifyContainer and removeContainer. The given bytes may either be UTF-8 XML that conforms to the deploy file xsd, or a StreamBase Archive that was produced by running the sbargen command on an XML deploy file.- Specified by:
addDeploy
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completedeploy
- contents of deploy file. XML text or binary contents of an sbar file made from a deploy file.args
- command arguments- Returns:
- results if any
- Throws:
StreamBaseException
- thrown on typecheck and other errors
-
restartContainer
Description copied from interface:Admin
Restart the given container- Specified by:
restartContainer
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- the name of the container to restart- Returns:
- results if any
- Throws:
StreamBaseException
-
removeContainer
public String[] removeContainer(long timeoutMS, String containerName, List<String> args) throws StreamBaseException Description copied from interface:Admin
Remove the given container in the StreamBaseServer- Specified by:
removeContainer
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completecontainerName
- the containerNameargs
- command arguments- Returns:
- results if any
- Throws:
StreamBaseException
- thrown on typecheck and other errors
-
modifyContainer
public String[] modifyContainer(long timeoutMS, String containerName, List<String> args) throws StreamBaseException Description copied from interface:Admin
Modify the given container- Specified by:
modifyContainer
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeargs
- list of arguments- Returns:
- results if any
- Throws:
StreamBaseException
-
killConnection
Description copied from interface:Admin
Kill the connection with the given connectionId- Specified by:
killConnection
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to complete- Returns:
- status of kill command
- Throws:
StreamBaseException
-
killAllConnections
Description copied from interface:Admin
Kill all of the connections on the server- Specified by:
killAllConnections
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to complete- Returns:
- status of kill command
- Throws:
StreamBaseException
-
manageJdbcConnections
Description copied from interface:Admin
Manage jdbc connections:- count [name]
- Count the open JDBC connections to the named data source (or all data sources if ommitted)
- close [name]
- Close any open JDBC connections to the named data source (or all data sources if ommitted)
- Specified by:
manageJdbcConnections
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completeargs
- a list that must contain at least one command string (close
orcount
), and may contain an optional second argument string (the name of a data source). When no argument string is given, the command will apply to all data sources.- Returns:
- for
close
, one string containing the number of connections closed forcount
, one string containing the number of open connections - Throws:
StreamBaseException
- throw on network or other errors
-
addExceptions
add the given exception to the list of exceptions- Parameters:
exceptions
- list of possibly exceptions (possibly null)current
- exception to add- Returns:
- list of exceptions
-
processExceptions
public static StreamBaseException processExceptions(String message, List<Throwable> exceptions, String baseUri, Class<?> exceptionsCheck) Look through the exceptions; if we have one that isn't an XMLRPCException then throw that one otherwise bundle them all up into a list exception.- Parameters:
message
- the message to use when throwing a new exceptionexceptions
- the list of exceptions from the callbaseUri
- base URIexceptionsCheck
- the list of exceptions to check against- Returns:
- a meaningful exception
-
setConnectionID
public void setConnectionID(com.streambase.sb.util.ByteString _connectionid) Description copied from interface:Admin
Set the Connection ID- Specified by:
setConnectionID
in interfaceAdmin
-
getConnectionID
public com.streambase.sb.util.ByteString getConnectionID()Description copied from interface:Admin
Return the connection id (which may be null)- Specified by:
getConnectionID
in interfaceAdmin
- Returns:
- connection id (which may be null)
-
createBaseURIString
Create a URI string of baseURI's from a list of uris- Parameters:
uris
- URI list to convert- Returns:
- a base URI string
-
getDynamicVariables
public Tuple getDynamicVariables(long timeoutMS, com.streambase.sb.util.Path modulePath) throws StreamBaseException Description copied from interface:Admin
Return the current value of the dynamic variables in the given module, as a Tuple of field name to Java value.- Specified by:
getDynamicVariables
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completemodulePath
- the path to the module- Returns:
- a Tuple of all the module's dynamic variables. The field names are the names of the dynamic variables, and the values are their current values.
- Throws:
StreamBaseException
- on nonexistence of the path, network, if the module contains no dynamic variables, or other errors.
-
setDynamicVariable
public void setDynamicVariable(long timeoutMS, com.streambase.sb.util.Path dynamicVariablePath, Object value) throws StreamBaseException Description copied from interface:Admin
Set the value of the given dynamic variable to the given value.- Specified by:
setDynamicVariable
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to completedynamicVariablePath
- the path to the dynamic variablevalue
- the value to set the variable to- Throws:
StreamBaseException
-
fastForwardTime
Description copied from interface:Admin
Number of milliseconds to jump forward in time. Note that if you specify a negative number for msecs, the behavior could vary depending on the TimeService implementation. (no guaranteed what could happen!)- Specified by:
fastForwardTime
in interfaceAdmin
- Parameters:
timeout
- Timeout in milliseconds to wait for completionvalue
- number of milliseconds to jump forward in time- Throws:
StreamBaseException
- Error forwarding time
-
getEvalCacheContent
Description copied from interface:Admin
Get evaluation cache content- Specified by:
getEvalCacheContent
in interfaceAdmin
- Parameters:
timeout
- Timeout in milliseconds to wait for completioncontainerName
- Container name- Returns:
- Cache contents
- Throws:
StreamBaseException
- Error reading cache
-
getTargetTime
Description copied from interface:Admin
Get target time- Specified by:
getTargetTime
in interfaceAdmin
- Parameters:
timeout
- Timeout in milliseconds to wait for completion- Returns:
- Target time
- Throws:
StreamBaseException
- Error getting time
-
getDynamicVariableField
public Schema.Field getDynamicVariableField(long timeoutMS, com.streambase.sb.util.Path dynamicVariablePath) throws StreamBaseException - Specified by:
getDynamicVariableField
in interfaceAdmin
- Parameters:
timeoutMS
- the timeout in milliseconds to wait for the command to complete- Returns:
- a dynamic variable field
- Throws:
StreamBaseException
-
readTable
public List<Tuple> readTable(long timeoutMS, String tablePath, int rowLimit, String predicate) throws StreamBaseException Description copied from interface:Admin
Return rows from the table.- Specified by:
readTable
in interfaceAdmin
- Parameters:
timeoutMS
- timeout in millisecondstablePath
- Path to the table.rowLimit
- Limit on number of rows to return, or -1 for all rows.- Returns:
- A list of rows from the table.
- Throws:
StreamBaseException
- If the connection is not valid or the server cannot be contacted.
-
clearEvalCache
Description copied from interface:Admin
Clear evaluation cache- Specified by:
clearEvalCache
in interfaceAdmin
- Parameters:
timeoutMS
- Timeout in milliseconds to wait for completioncontainerName
- Container name- Returns:
- Cache contents
- Throws:
StreamBaseException
- Error clearing cache
-
getMapperCacheContent
public String getMapperCacheContent(long timeoutMS, String containerName) throws StreamBaseException Description copied from interface:Admin
Get mapper cache content- Specified by:
getMapperCacheContent
in interfaceAdmin
- Parameters:
timeoutMS
- Timeout in milliseconds to wait for completioncontainerName
- Container name- Returns:
- Cache contents
- Throws:
StreamBaseException
- Error reading cache
-
getNamesForContainer
Description copied from interface:Admin
Return a map of id and names for the given container id.- Specified by:
getNamesForContainer
in interfaceAdmin
- Returns:
- a map of id and names for the given container id
- Throws:
StreamBaseException
-