com.poscoict.glueframework.scheduling.activity
Class GlueJobCall
java.lang.Object
com.poscoict.glueframework.biz.activity.GlueActivity<GlueContext>
com.poscoict.glueframework.scheduling.activity.GlueJobCall
public class GlueJobCall
- extends GlueActivity<GlueContext>
¿ø°Ý¿¡ À§Ä¡ÇÑ ½ºÄÉÁÙ·¯ ¼¹ö(com.poscoict.glueframework.scheduling.server.GlueSchedulerHttpServer)·Î Job ±âµ¿À» ¿äûÇÏ´Â ActivityÀÌ´Ù.
Activity Property
- sender : (Çʼö) applicationContext.xml(1)ÀÇ eventSender id.
- job-name : (Çʼö) applicationContext.xml(2)ÀÇ JOB(PosJobDetail) À̸§À» °®´Â Context Key
- server-address : (Çʼö) scheduler server ip, port¸¦ °®´Â Context Key
http://{server-address}/glue-scheduler ÀÇ url »ý¼º.
- job-log-no : (¼±ÅÃ) request id¸¦ °®´Â Context Key
GLUE_SCH_FIRED_TRIGGER_HISTORYÀÇ REQUEST_ID¿¡ ÇØ´çÇÏ´Â °ªÀ¸·Î
Job ¼öÇà½ÇÀûÀÌ DB¿¡ loggingµÇ´Â °æ¿ìÀÇ Key.
- job-params : (¼±ÅÃ) job parameter( name=ctxName[|name=ctxName] ).
- result-key : (¼±ÅÃ) Context¿¡ ´ã±â´Â Job È£Ãâ ¿©ºÎ. Job ±âµ¿ ¼º°ø½Ã SUCCESS °ªÀÌ ´ã±è.
[ default ] : {job-name}_result
¿¹Á¦
»ç¿ë ¿¹# 1
»ç¿ë ¿¹#2
»ç¿ë ¿¹#3
Âü°í : applicationContext.xml
Methods inherited from class com.poscoict.glueframework.biz.activity.GlueActivity |
commitTransaction, commitTransaction, getDao, getEventList, getName, getProperty, getPropertyNames, getTransition, rollbackTransaction, rollbackTransaction, setEventList, setName, setProperty, setTransition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlueJobCall
public GlueJobCall()
runActivity
public String runActivity(GlueContext ctx)
- Description copied from class:
GlueActivity
- Sub Class¿¡¼ ¹Ýµå½Ã ±¸ÇöÇÏ¿©¾ß ÇÏ´Â Abstract Method À̸ç ÀÌ Method´Â F/W¿¡¼ È£ÃâÇÑ´Ù. °á°ú °ªÀº GlueContext¿¡ ´ã¾Æ¼ ´ÙÀ½ Activity ¶Ç´Â F/W¿¡ Àü´ÞÇÏ°Ô µÈ´Ù. ÇÊ¿äÇÑ ¸ðµç Data´Â
GlueContext¿¡¼ È£ÃâÇÏ¿© »ç¿ëÇÏ°Ô µÈ´Ù.
- Specified by:
runActivity
in class GlueActivity<GlueContext>
- Parameters:
ctx
- GlueContext
- Returns:
- String Á¤»óÀûÀ̸é "success"¸¦ Return ÇÏ°í ºñÁ¤»ó 󸮸¦ ¿øÇϸé "failure"¸¦ Return ÇÑ´Ù.
¿¹)
==> return "success"À̸é BizLogic Activity ¸¦ ½ÇÇàÇÔ.
Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.