/** * main() has some simple utility methods. * * @param argv Command line parameters. * @exception Exception if the filesystem does not exist. */ public static void main(String[] argv) throws Exception { StringUtils.startupShutdownMessage(SecondaryNameNode.class, argv, LOG); Configuration tconf = new Configuration(); if (argv.length >= 1) { SecondaryNameNode secondary = new SecondaryNameNode(tconf); int ret = secondary.processArgs(argv); System.exit(ret); } // Create a never ending deamon Daemon checkpointThread = new Daemon(new SecondaryNameNode(tconf)); checkpointThread.start(); }
void init() { pendingReplications = new HashMap<Block, PendingBlockInfo>(); timedOutItems = new ArrayList<Block>(); this.timerThread = new Daemon(new PendingReplicationMonitor()); timerThread.start(); }
void start() { daemon.start(); }