Commit c8a9dea4 authored by legoc's avatar legoc
Browse files

Some renamings

parent d46dab7d
......@@ -118,8 +118,8 @@ public:
private:
Subscriber();
void init(application::Instance &instance, const std::string &publisherName, const std::string &instanceName);
static std::unique_ptr<Subscriber> createSubscriber(application::Instance & app, const std::string &publisherName, const std::string &instanceName);
void init(application::Instance &app, const std::string &publisherName, const std::string &appName);
static std::unique_ptr<Subscriber> createSubscriber(application::Instance & app, const std::string &publisherName, const std::string &appName);
static std::string createConnectPublisherRequest(int id, const std::string& publisherName);
std::string m_publisherName;
......
......@@ -132,7 +132,7 @@ Subscriber::Subscriber() {
Subscriber::~Subscriber() {
}
void Subscriber::init(application::Instance & app, const std::string& publisherName, const std::string& instanceName) {
void Subscriber::init(application::Instance & app, const std::string& publisherName, const std::string& appName) {
m_publisherName = publisherName;
m_appName = app.getName();
......@@ -153,10 +153,10 @@ void Subscriber::init(application::Instance & app, const std::string& publisherN
m_impl->init(m_appId, m_appEndpoint, app.getStatusEndpoint(), publisherPort, synchronizerPort, numberOfSubscribers);
}
std::unique_ptr<Subscriber> Subscriber::createSubscriber(application::Instance & app, const std::string &publisherName, const std::string &instanceName) {
std::unique_ptr<Subscriber> Subscriber::createSubscriber(application::Instance & app, const std::string &publisherName, const std::string &appName) {
std::unique_ptr<Subscriber> subscriber = std::unique_ptr<Subscriber>(new Subscriber());
subscriber->init(app, publisherName, instanceName);
subscriber->init(app, publisherName, appName);
return subscriber;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment