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
Constructors -
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 exceptionsbooleancheckLicense(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 StringCreate a URI string of baseURI's from a list of urisReturn an XML description of a StreamBase entityvoidDrain a StreamBase container or if empty the entire Servervoidenqueue(long timeoutMS, StreamProperties props, Collection<String> tuples) Enqueue a list of CSV encoded tuples using connectionless XMLRPCvoidfastForwardTime(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.ByteStringReturn 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 commandbooleanisHA()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)voidmodifyApplication(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 StreamBaseExceptionprocessExceptions(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 containervoidrestartOperators(long timeoutMS, List<String> operatorNames) Restart the given Operators on the StreamBase server.voidResume a paused StreamBase container of if empty the whole ServervoidresumeOperators(long timeoutMS, List<String> operatorsNames) Resume the given Operators on the StreamBase servervoidsetConnectionID(com.streambase.sb.util.ByteString _connectionid) Set the Connection IDvoidsetDynamicVariable(long timeoutMS, com.streambase.sb.util.Path dynamicVariablePath, Object value) Set the value of the given dynamic variable to the given value.voidsetOperatorProperty(long timeoutMS, String operatorName, String propertyName, String value) On the given Operator, set the given property to the given value.voidsetRuntimeParam(long timeoutMS, String paramName, String paramValue, String operator) set the given runtime paramShutdown a StreamBase container or if empty the whole servervoidshutdownOperators(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.voidSuspend (pause) a StreamBase container or operatorvoidsuspendOperators(long timeoutMS, List<String> operatorNames) Suspend the given Operators on the StreamBase ServerTypecheck (validate) the given StreamBase Application.voidunsubscribe(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:AdminAre we in HA mode -
getByteOrder
Description copied from interface:AdminWhat is the byte order of the server?- Specified by:
getByteOrderin 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:AdminTypecheck (validate) the given StreamBase Application. Return a list of StreamProperties for that Application- Specified by:
typecheckin 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:AdminShutdown a StreamBase container or if empty the whole server- Specified by:
shutdownin 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:AdminShut down the given Operators on the StreamBase server.- Specified by:
shutdownOperatorsin 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:AdminRestart the given Operators on the StreamBase server. The Operators must currently be shut down.- Specified by:
restartOperatorsin 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:AdminSuspend the given Operators on the StreamBase Server- Specified by:
suspendOperatorsin 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:
suspendin 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:AdminResume the given Operators on the StreamBase server- Specified by:
resumeOperatorsin 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:AdminResume a paused StreamBase container of if empty the whole Server- Specified by:
resumein interfaceAdmin- Parameters:
timeoutMS- the timeout in milliseconds to wait for the command to completecontainerName- optional containerName- Throws:
StreamBaseException
-
describe
Description copied from interface:AdminReturn an XML description of a StreamBase entity- Specified by:
describein 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:AdminReturn true if a license for the specified feature is available and false otherwise.- Specified by:
checkLicensein 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:AdminReturn the StreamProperties for the given name.- Specified by:
getStreamPropertiesin interfaceAdmin- Parameters:
timeoutMS- the timeout in milliseconds to wait for the command to completestreamName- the stream name to lookupstrategy- theCaptureTransformStrategyto 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:AdminReturn the StreamProperties for the given name. UsesCaptureTransformStrategy.FLATTEN- Specified by:
getStreamPropertiesin 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:AdminReturn the StreamProperties for the given hash- Specified by:
getStreamPropertiesByHashin 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:AdminReturn an array of entity names for the given entity type- Specified by:
listEntitiesin 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:AdminReturn the Schema object for the given hash value- Specified by:
getSchemaByHashin 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:AdminReturn the Schema object for the given name- Specified by:
getSchemaByNamein 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:AdminDrain a StreamBase container or if empty the entire Server- Specified by:
drainin 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:AdminFor the given Operator, return its set of properties and their values.- Specified by:
getOperatorPropertiesin 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:AdminReturn the value of the given property on the given Operator.- Specified by:
getOperatorPropertyin 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:AdminOn the given Operator, set the given property to the given value.- Specified by:
setOperatorPropertyin 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:AdminReturn the status of each Operator present in the StreamBase server.- Specified by:
operatorStatusin 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:AdminReturn the status of the StreamBase Server- Specified by:
statusin 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:AdminSubscribe to an output stream.- Specified by:
subscribein interfaceAdmin- Parameters:
timeoutMS- the timeout in milliseconds to wait for the command to completesubscription- aSubscriptionEntrydescribing the desired subscription. Contains theStreamPropertiesof 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:AdminUnSubscribe to an output stream.- Specified by:
unsubscribein 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:AdminReturn an array of client connections- Specified by:
listConnectionsin 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:Adminrun an internal command- Specified by:
internalCommandin 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:AdminEnqueue a list of CSV encoded tuples using connectionless XMLRPC- Specified by:
enqueuein 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:Adminset the given runtime param- Specified by:
setRuntimeParamin 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:AdminAdd the given application to the given container in the StreamBaseServer- Specified by:
addContainerin 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:AdminAdd 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:
addDeployin 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:AdminRestart the given container- Specified by:
restartContainerin 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:AdminRemove the given container in the StreamBaseServer- Specified by:
removeContainerin 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:AdminModify the given container- Specified by:
modifyContainerin 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:AdminKill the connection with the given connectionId- Specified by:
killConnectionin 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:AdminKill all of the connections on the server- Specified by:
killAllConnectionsin 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:AdminManage 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:
manageJdbcConnectionsin interfaceAdmin- Parameters:
timeoutMS- the timeout in milliseconds to wait for the command to completeargs- a list that must contain at least one command string (closeorcount), 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:AdminSet the Connection ID- Specified by:
setConnectionIDin interfaceAdmin
-
getConnectionID
public com.streambase.sb.util.ByteString getConnectionID()Description copied from interface:AdminReturn the connection id (which may be null)- Specified by:
getConnectionIDin 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:AdminReturn the current value of the dynamic variables in the given module, as a Tuple of field name to Java value.- Specified by:
getDynamicVariablesin 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:AdminSet the value of the given dynamic variable to the given value.- Specified by:
setDynamicVariablein 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:AdminNumber 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:
fastForwardTimein 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:AdminGet evaluation cache content- Specified by:
getEvalCacheContentin 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:AdminGet target time- Specified by:
getTargetTimein 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:
getDynamicVariableFieldin 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:AdminReturn rows from the table.- Specified by:
readTablein 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:AdminClear evaluation cache- Specified by:
clearEvalCachein 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:AdminGet mapper cache content- Specified by:
getMapperCacheContentin 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:AdminReturn a map of id and names for the given container id.- Specified by:
getNamesForContainerin interfaceAdmin- Returns:
- a map of id and names for the given container id
- Throws:
StreamBaseException
-