org.tranche.scripts
Class InjectDataIntoTrancheNetwork

java.lang.Object
  extended by org.tranche.scripts.InjectDataIntoTrancheNetwork

public class InjectDataIntoTrancheNetwork
extends java.lang.Object

Injects data from a data drive to Tranche network.

Author:
Bryan E. Smith

Constructor Summary
InjectDataIntoTrancheNetwork()
           
 
Method Summary
static void main(java.lang.String[] args)
          Injects data from a data drive to Tranche network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectDataIntoTrancheNetwork

public InjectDataIntoTrancheNetwork()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

Injects data from a data drive to Tranche network. Expects DataBlock-format Tranche data chunks.

Will put chunks on random servers. Will report any injections, up to three copies.

Parameters:
args - Expecting following runtime arguments in this order:
  1. Path to your network configuration file
  2. Path to data directory with chunks to add
  3. Path to user file (zip, encrypted)
  4. Passphrase for user file
  5. Path to output file
  6. Path to file to log upload exceptions
  7. Path to file for replication failures

The following are optional arguments, appearing after the aforementioned required parameters:

  • ban:tranche_url To ban a specific server. E.g., ban:tranche://141.214.182.211:443
  • use:tranche_url To limit use to 1+ servers. E.g., use:tranche://141.214.182.211:443 use:tranche://141.214.182.211:443 will cause the script to only use those two servers.
  • ddc:/path/to/additional/data/dir To add additional data directories. ddc is a reference to DataDirectoryConfiguration
Throws:
java.lang.Exception


This code is free for use both commercially and non-commercially as stated in the project's license