2 * Copyright 2005 the original author or authors.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.wamblee.crawler.kiss.main;
20 * Access to system properties for the crawler.
22 public final class SystemProperties {
24 private static final String DEBUG_PROPERTY = "kiss.debug";
26 private static final String NO_PROGRAM_DETAILS = "kiss.nodetails";
28 private static final String DISABLE_RECORD = "kiss.norecord";
31 * Disabled constructor.
34 private SystemProperties() {
39 * Determines if the system is run in debug mode. When in debug mode, less
40 * extensive crawling is done.
42 * @return True iff we are running in debug mode.
44 public static boolean isDebugMode() {
45 return System.getProperties().getProperty(DEBUG_PROPERTY) != null;
49 * Determines if no program details are required.
51 * @return True iff no program details are required.
53 public static boolean isNoProgramDetailsRequired() {
54 return System.getProperties().getProperty(NO_PROGRAM_DETAILS) != null;
58 * Determines if recording is disabled.
60 * @return True iff no recording should be done.
62 public static boolean isRecordDisabled() {
63 return System.getProperties().getProperty(DISABLE_RECORD) != null;