me.edwards.des
Class Launcher

java.lang.Object
  extended by me.edwards.des.Launcher

public class Launcher
extends java.lang.Object

Handles the Launch of a Node from the command line. This class loads all necessary logging configurations and initializes all loggers and working directories for a Decentralized Election System Miner Node. After a Node is successfully initialized, created, and launched, this class handles the console input for the Node.

Created on: Dec 21, 2015 at 10:11:56 AM

Author:
Matthew Edwards
See Also:
main(String[])

Field Summary
static java.lang.String DIR
          Default directory for DES
static java.util.logging.Logger GLOBAL
          The Global logger for DES (Used by Launcher and utilities)
 
Constructor Summary
Launcher()
           
  FlagUsageDescription -count -count (BlockChain File) Tabulates the results of the specified BlockChain after loading it from file.
Method Summary
static void main(java.lang.String[] args)
          This method is called on the application Launch.

List of command line arguments:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL

public static final java.util.logging.Logger GLOBAL
The Global logger for DES (Used by Launcher and utilities)


DIR

public static java.lang.String DIR
Default directory for DES

Constructor Detail

Launcher

public Launcher()
Method Detail

main

public static void main(java.lang.String[] args)
This method is called on the application Launch.

List of command line arguments:
Flag Usage Description
-count -count (BlockChain File) Tabulates the results of the specified BlockChain after loading it from file. If no BlockChain is specified, the default BlockChain is used.
-demo -demo Starts the Node in demonstration mode.
-dir -dir <Directory> Sets the working directory of the Node.
-gen -gen Generates a Genesis Block and saves it to "generated_blockchain.block" in the working directory.
-genids -genids <Number of IDs> (Directory) Generates key databases for demonstration purposes.
-name -name <Name> Sets the human-readable name of the Node.
-peer -peer <Peer> Adds an initial peer to the Node which will be contacted during the Bootstrapping process.
-port -port <Port> Sets the port to be used by the Node.
-submit -submit (Time in seconds) Adds a Submitter to the Node for demonstration purposes. If a time is specified, it will submit the available number of Ballots within that timeframe.

Parameters:
args -