3#ifndef STREAMBASE_NMCLIENT_H
4#define STREAMBASE_NMCLIENT_H
6#include "StreamBase.hpp"
8#include "Exceptions.hpp"
10#include "StreamProperties.hpp"
11#include "StreamBaseURI.hpp"
12#include "StreamBaseConstants.hpp"
13#include "ClientSettings.hpp"
46 std::string
shutdown(
const std::string &name) ;
64 void resume(
const std::string &name) ;
76 void setOperatorProperty(
const std::string &operatorName,
const std::string &propertyName,
const std::string &value) ;
83 void takeException() ;
98 std::vector<std::string>
addContainer(
const std::string &containerName,
const std::string &applicationText,
const std::vector<std::string> &options);
106 std::vector<std::string>
addDeploy(
const std::string &applicationText,
107 const std::vector<std::string> &options = std::vector<std::string>());
115 const std::vector<std::string> &options = std::vector<std::string>());
122 std::vector<std::string>
modifyContainer(
const std::string &containerName,
const std::vector<std::string> &options);
128 void listConnections(std::vector<std::string>& result,
const std::vector<std::string> &option = std::vector<std::string>());
132 void killConnection(
const std::string &connectionId, std::vector<std::string> &status);
144 void setRuntimeParam(
const std::string ¶mName,
const std::string ¶mValue,
145 const std::string &operatorName =
"");
161 void drain(
const std::string &containerName) ;
167 return _clientSettings;
178 std::vector<StreamBaseURI> _uris;
179 std::shared_ptr<sb_internal::Admin> _admin;
This class loads all the environment variables used by the C++ client API.
Definition: ClientSettings.hpp:20
The StreamBase Admin Client API.
Definition: StreamBaseAdminClient.hpp:23
void killAllConnections(std::vector< std::string > &status)
Kill all connected clients.
virtual ~StreamBaseAdminClient()
Destroys a session.
sb::ClientSettings & getSettings()
Get the settings for the client.
Definition: StreamBaseAdminClient.hpp:166
void killConnection(const std::string &connectionId, std::vector< std::string > &status)
Kill the connection with the given connectionId.
void setLeadershipStatus(LeadershipStatus leadershipStatus)
Set the leadership status of the server.
LeadershipStatus getLeadershipStatus()
Get the leadership status of the server.
void restartContainer(const std::string &name)
Restarts a container.
std::string shutdown()
Shuts down the application/sbd.
std::vector< std::string > manageJdbcConnections(const std::vector< std::string > &options)
Manage JDBC connections.
std::vector< std::string > addContainer(const std::string &containerName, const std::string &applicationText, const std::vector< std::string > &options)
Add an application to the given container.
std::vector< std::string > addDeploy(const std::string &applicationText, const std::vector< std::string > &options=std::vector< std::string >())
Add a deploy file to the server.
std::vector< std::string > removeContainer(const std::string &containerName, const std::vector< std::string > &options=std::vector< std::string >())
Remove a container.
void modifyApplication(const std::string &application)
Adds an application to the default container.
void listConnections(std::vector< std::string > &result, const std::vector< std::string > &option=std::vector< std::string >())
Lists all Connections to the StreamBaseServer.
void resume(const std::string &name)
Resumes a container or a Java Operator.
void getOperatorProperties(const std::string &operatorName, std::vector< std::string > &result)
For the given Operator, return its set of properties and their values.
void restartOperators(std::vector< std::string > &operatorNames)
Restarts one or more Operators in an application.
void drain(const std::string &containerName)
Drains the application: waits until there are no more tuples at all in the application and then shuts...
StreamBaseAdminClient(const std::vector< StreamBaseURI > &uris=StreamBaseURI::vectorFromEnvironment())
Creates a StreamBase client and establishes a connection to a remote server.
void suspendOperators(std::vector< std::string > &operatorNames)
Suspends Java operators in an application.
std::string shutdown(const std::string &name)
Shuts down a container or a Java Operator.
void resumeOperators(std::vector< std::string > &operatorNames)
Resumes Java operators in an application.
void shutdownOperators(std::vector< std::string > &operatorNames)
Shuts down Java operators in an application.
std::vector< std::string > modifyContainer(const std::string &containerName, const std::vector< std::string > &options)
Modify the given container.
void suspend(const std::string &name)
Suspends a container or a Java Operator.
std::string getOperatorProperty(const std::string &operatorName, const std::string &propertyName)
Return the value of the given property on the given Operator.
void setOperatorProperty(const std::string &operatorName, const std::string &propertyName, const std::string &value)
On the given Operator, set the given property to the given value.
StreamBaseAdminClient(const StreamBaseURI &uri)
Creates a StreamBase client and establishes a connection to a remote server.
StreamBaseAdminClient(const std::vector< StreamBaseURI > &uris, sb::ClientSettings &settings)
Creates a StreamBase client and establishes a connection to a remote server.
A URI for a StreamBase client connection.
Definition: StreamBaseURI.hpp:36