/* StormSimulator.java * * Copyright (c) 2003, Hermanni Hyytiälä * * This file is part of Storm. * * Storm is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Storm is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * Public License for more details. * * You should have received a copy of the GNU Lesser General * Public License along with Storm; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * */ /* * Written by Hermanni Hyytiälä */ package org.nongnu.storm.simulator; import java.io.File; import java.lang.String; import org.apache.log4j.Logger; import org.apache.log4j.Level; import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.BasicConfigurator; public class StormSimulator implements Runnable{ private static final Logger LOG = Logger.getLogger(StormSimulator.class.getName()); public StormSimulator() { Thread thread = new Thread(this); thread.setPriority(Thread.NORM_PRIORITY); thread.start(); } public void run(){ // LOG.info("Simulate nothing yet!!!"); } public static void main(String[] args){ if (new File("log4j.properties").isFile()) { PropertyConfigurator.configure("log4j.properties"); } else { BasicConfigurator.configure(); LOG.setLevel(Level.DEBUG); } new StormSimulator(); } }