FileDocCategorySizeDatePackage
ViewLogInterval.javaAPI DocGlassfish v2 API2718Fri May 04 22:34:58 BST 2007com.sun.enterprise.tools.common.util

ViewLogInterval

public class ViewLogInterval extends Object

Fields Summary
private static int
INTERVAL
private static int
minInterval
Constructors Summary
Methods Summary
public static intgetLogInterval()

	   return INTERVAL;
	
public static voidsetLogInterval(int val)


	    
	   setLogInterval(""+val); // NOI18N
	
public static voidsetLogInterval(java.lang.String val)

	   Reporter.info(""); //NOI18N
	   if ( (val == null) || val.length() <=0)
		return;
	   try {
		int ret = Integer.parseInt(val);
		if (ret < 0)
		   return;
		INTERVAL = (ret < minInterval)? minInterval : ret;
		Reporter.info("setLogInterval(): " + INTERVAL); //NOI18N
	   }catch (NumberFormatException e){}