use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.
the class SnowBlossomNode method main.
public static void main(String[] args) throws Exception {
Globals.addCryptoProvider();
if (args.length != 1) {
logger.log(Level.SEVERE, "Incorrect syntax. Syntax: SnowBlossomNode <config_file>");
System.exit(-1);
}
ConfigFile config = new ConfigFile(args[0], "snowblossom_");
LogSetup.setup(config);
// LogSetup.listLoggers();
new SnowBlossomNode(config);
while (true) {
Thread.sleep(2500);
LogSetup.fixLevels();
// LogSetup.listLoggers();
}
}
use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.
the class RichList method main.
public static void main(String[] args) throws Exception {
Globals.addCryptoProvider();
if (args.length != 1) {
logger.log(Level.SEVERE, "Incorrect syntax. Syntax: RichList <config_file>");
System.exit(-1);
}
ConfigFile config = new ConfigFile(args[0], "snowblossom_");
LogSetup.setup(config);
new RichList(config).print(System.out);
}
use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.
the class PoolMiner method main.
public static void main(String[] args) throws Exception {
Globals.addCryptoProvider();
if (args.length != 1) {
logger.log(Level.SEVERE, "Incorrect syntax. Syntax: PoolMiner <config_file>");
System.exit(-1);
}
ConfigFile config = new ConfigFile(args[0], "snowblossom_");
LogSetup.setup(config);
PoolMiner miner = new PoolMiner(config);
while (true) {
Thread.sleep(15000);
miner.printStats();
}
}
use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.
the class Arktika method main.
public static void main(String[] args) throws Exception {
Globals.addCryptoProvider();
if (args.length != 1) {
logger.log(Level.SEVERE, "Incorrect syntax. Syntax: Arktika <config_file>");
System.exit(-1);
}
ConfigFile config = new ConfigFile(args[0], "snowblossom_");
LogSetup.setup(config);
Arktika miner = new Arktika(config);
while (!miner.isTerminated()) {
Thread.sleep(15000);
miner.printStats();
}
}
use of duckutil.ConfigFile in project snowblossom by snowblossomcoin.
the class SnowBlossomMiner method main.
public static void main(String[] args) throws Exception {
Globals.addCryptoProvider();
if (args.length != 1) {
logger.log(Level.SEVERE, "Incorrect syntax. Syntax: SnowBlossomMiner <config_file>");
System.exit(-1);
}
ConfigFile config = new ConfigFile(args[0], "snowblossom_");
LogSetup.setup(config);
SnowBlossomMiner miner = new SnowBlossomMiner(config);
while (true) {
Thread.sleep(45000);
miner.printStats();
}
}
Aggregations