This module is the main controller code for running clients that sit in this directory.
Created on 19 August 2013 @author: Charlie Lewis
This class is responsible for validating clients and controlling the orchestration between clients the Hemlock metadata/data store.
Imports the client specific as a python module.
Parameters: |
|
---|---|
Returns: | returns string name of client credential file and instance of the client class |
Connects to the Hemlock couchbase server.
Parameters: |
|
---|---|
Returns: | returns an instance of the couchbase connection |
Gets the arguments from the command line.
Parameters: | debug – instance of Hemlock_Debugger |
---|---|
Returns: | returns list of arguments |
Gets the credentials for connecting the client and the credentials for connecting to the Hemlock server.
Parameters: |
|
---|---|
Returns: | returns two dictionaries of the client and server credentials |
Processes the arguments passed in to ensure that the right ones are supplied before trying to execute against them.
Parameters: |
|
---|---|
Returns: | returns client system uuid, the client technology to use, and the number of splits (defaults to -1 if not supplied) |
Sends data to the Hemlock couchbase server that is recieved from the client system.
Parameters: |
|
---|
Callback for hstream_odd, should only happen if something failed.
Parameters: | data – data that failed |
---|
Spawns asyncronous workers when calling an hstream_odd client.
Parameters: | debug – instance of Hemlock_Debugger |
---|
Sends data to the Hemlock couchbase server that is recieved from the client system.
Parameters: |
|
---|
Verifies that the system supplied exists in the Hemlock system.
Parameters: |
|
---|
This module is used for running a debugger across all modules in Hemlock.
Create on 28 August 2013 @author: Charlie Lewis
This class is responsible for printing out debug statements as well as write them to file.
Prints and logs all debug statements.
Parameters: |
|
---|
This module gets all needed credentials in preparation for getting data from clients and into Hemlock’s metadata/data store.
Created on 26 August 2013 @author: Charlie Lewis
This class is responsible for pulling out the credentials from the Hemlock server for both the client system and the Hemlock metadata/data store.
Retrieves the credentials for both the client system as well as the Hemlock server that are stored in the Hemlock MySQL server.
Parameters: |
|
---|---|
Returns: | returns two dictionaries for the client system and Hemlock server credentials |
Connects to the Hemlock MySQL server to get an instance for retrieving credentials.
Parameters: |
|
---|---|
Returns: | returns an instance of the mysql connection |