-k DAFNESTATELAB_JDAT -kn test -kr 10 -ms 192.168.198.20 -mp 11211
```
### usage
this application has been made to transfer data from a memcached server to an influx server, but there are 2 different way to do so.
`using a configuration file.`
In the project folder you can find a "configurationFile.txt" this file contain all the necessary data to retrive and optimize the process of transiction between the 2 server, and in order to use such file you should use a command line like this:
But if you don't have all this information all you don't want to use a configuration file, you can just use a key and a rate instead.
With just a key and a publishing rate the program will know just what data you want to pubish and at wich rate, in order to do so you should use a command line like this
parser.add_argument("-n","--name",required=False,help="if you're not using a configuration file, use this parameter to chose the name of the measurement")
parser.add_argument("-is","--influxServer",required=True,help="the address of the influx server")
parser.add_argument("-id","--influxDatabase",required=True,help="the name of the database you want to log in")
parser.add_argument("-ip","--influxPort",required=False,default=8086,help="the port associated with the server address")
parser.add_argument("-ms","--memcachedServer",required=True,help="the address of the memcached server")
parser.add_argument("-mp","--memcachedPort",required=False,default=11211,help="the port of the memcached server")
parser.add_argument("-k","--key",required=False,help="the key needed to find the data in the memcached DB")
parser.add_argument("-po","--port",help="the port associated with the server address")
parser.add_argument("-r","--rate",required=False,default=5,help="specify the seconds between 2 different push in the influx db, use this option only if you're not using a configuration file")
parser.add_argument("-kn","--keyName",required=False,help="if you're not using a configuration file, use this parameter to chose the name of the measurement")
parser.add_argument("-kr","--keyRate",required=False,default=5,help="when the program is not working with a configuration file, specify the seconds between 2 different push in the influx db")
parser.add_argument("-fr","--fileRate",required=False,default=0.1,help="when using a configuration file, specify the sleep time of the loop that check when and wich one of the key must be pushed")