001// Copyright(c) 2015 POSCO ICT
002// Change history
003// 2015-07-10 / 1.1.0 / 
004package com.posco.glue.cm;
005
006import com.posco.mes.reuse.common.logging.PosLogWriterIF;
007import com.posco.mes.reuse.common.logging.PosLogger;
008import com.poscoict.app.job.GlueSimpleJob;
009
010/**
011 * Main 클래스(POSCO GSI 탄소강표준모델에 한정). mle 라이브러리와의 의존 관계가 있음.
012 * 
013 * <pre>
014 * java [-option] com.posco.glue.cm.PoscoDefaultSchedulerJob [args..] 
015 * 형태로 PoscoDefaultSchedulerJob 클래스를 실행한다.
016 * 
017 * [args..] 부분의 첫번째는 history id, 두번째는 실행유형, 세번째부터는 사용자 data로 구성한다. 
018 * <xmp>
019 * java [-option] com.posco.glue.cm.PoscoDefaultSchedulerJob -1 ServiceName=job001-service@S userKey=userData@S
020 * java [-option] com.posco.glue.cm.PoscoDefaultSchedulerJob -1 className=sample.job.SamplePgm@S userKey=userData@S
021 * </xmp>
022 * </pre>
023 */
024public class PoscoDefaultSchedulerJob extends GlueSimpleJob
025{
026    public static void main( String args[] )
027    {
028        PosLogger.developerLog( PosLogWriterIF.INFO, "PosLogger.developerLog(PosLogWriterIF.INFO, message, classRef)", PoscoDefaultSchedulerJob.class );
029        PosLogger.developerLog( PosLogWriterIF.DEBUG, "PosLogger.developerLog(PosLogWriterIF.DEBUG, message, classRef)", PoscoDefaultSchedulerJob.class );
030        PosLogger.developerLog( PosLogWriterIF.WARN, "PosLogger.developerLog(PosLogWriterIF.WARN, message, classRef)", PoscoDefaultSchedulerJob.class );
031        PosLogger.developerLog( PosLogWriterIF.FATAL, "PosLogger.developerLog(PosLogWriterIF.FATAL, message, classRef)", PoscoDefaultSchedulerJob.class );
032        PosLogger.developerLog( PosLogWriterIF.ERROR, "PosLogger.developerLog(PosLogWriterIF.ERROR, message, classRef)", PoscoDefaultSchedulerJob.class );
033
034        GlueSimpleJob.main( args );
035    }
036}