001 // Copyright(c) 2013 POSCO ICT 002 // Change history 003 // 2013-03-22 / 4.0.5 / Á¶Ã¢Èñ º¯È¯ 004 package com.poscoict.app.job; 005 006 /** 007 * Scheduling °ü·Ã Constants Ŭ·¡½º 008 */ 009 public interface GlueSchedulerConstants 010 { 011 public static enum SchedulerType 012 { 013 QUARTZ_JOB_SCHEDULER, SPRING_SCHEDULER; 014 } 015 016 public static final String QUARTZ_SCHEDULER_CONFIG = "quartz_scheduler.xml"; 017 public static final String SPRING_SCHEDULER_CONFIG = "spring_scheduler.xml"; 018 019 public static final String JOB_START_TIME = "_job_start_time_"; 020 public static final String JOB_END_TIME = "_job_end_time_"; 021 public static final String REQUEST_ID = "request_id"; 022 public static final String JOB_NAME = "job_name"; 023 public static final String TRIGGER_NAME = "trigger_name"; 024 public static final String CLIENT_IP = "client_ip"; 025 public static final String PARAM_PREFIX = "jobParam-"; 026 public static final String EVENT_JOB = "_event_job_"; 027 public static final String USER_ID = "_user_id_"; 028 029 public static final String SCHEDULER_SERVER_DEFAULT_ADDRESS = "127.0.0.1"; 030 /** GlueScheduler HttpServer Version */ 031 public static final String SCHEDULER_SERVER_VERSION = "GlueScheduler HttpServer 1.1"; 032 /** Default HTTP port */ 033 public static final int SCHEDULER_SERVER_DEFAULT_PORT = 8805; 034 /** Default Local Address */ 035 036 public static final String QUARTZ_SCHEDULER_BEAN_ID = "scheduler"; 037 038 /** HTTP response codes */ 039 public static final int HTTP_STATUS_SUCCESS = 200; 040 041 public static final int HTTP_STATUS_NOT_FOUND = 404; 042 043 public static final int HTTP_STATUS_INTERNAL_SERVER_ERROR = 500; 044 045 /** JobÀÌ Á¤»óÀûÀ¸·Î ¼öÇàÇÑ °æ¿ìÀÇ ¸®ÅÏÄÚµå */ 046 public static final int STATUS_JOB_SUCCESS = 700; 047 048 /** JobÀÌ ¼öÇàµÇÁö ¸øÇÑ °æ¿ìÀÇ ¸®ÅÏÄÚµå */ 049 public static final int STATUS_JOB_ERROR = 800; 050 }