com.poscoict.glueframework.scheduling.remote
Interface GlueJobEventSender

All Known Implementing Classes:
GlueHttpJobEventSender

public interface GlueJobEventSender

¿ø°Ý¿¡ À§Ä¡ÇÑ ½ºÄÉÁÙ·¯ ¼­¹ö·Î Job ±âµ¿ ¿äûÀ» º¸³»´Â Http Sender Ŭ·¡½ºÀÇ interface


Method Summary
 String sendJobEvent(GlueJobDefinition jobDef)
          TargetUrl¿¡ Á¤ÀÇµÈ ¼­¹ö·Î http request¸¦ º¸³½´Ù.
 String sendJobEvent(GlueJobDefinition jobDef, String targetUrl)
          targetUrl¿¡ Á¤ÀÇµÈ ¼­¹ö·Î http request¸¦ º¸³½´Ù.
 

Method Detail

sendJobEvent

String sendJobEvent(GlueJobDefinition jobDef)
TargetUrl¿¡ Á¤ÀÇµÈ ¼­¹ö·Î http request¸¦ º¸³½´Ù. JobDefinition Á¤º¸¸¦ ÃßÃâÇÏ¿© request¸¦ »ý¼ºÇÑ´Ù. ¼­¹ö ½ºÄÉÁÙ·¯¿¡¼­ Á¤»óÀûÀ¸·Î Á¢¼ö°¡ µÇ¸é "success"°¡ ¸®ÅϵȴÙ. (Scheduled JobÀÌ Á¤»óÀûÀ¸·Î ó¸®µÈ °ÍÀ» ÀǹÌÇÏ´Â °ÍÀÌ ¾Æ´Ï´Ù.) TargetUrlÀº ½Ã½ºÅÛ property¿¡ glue.scheduler.server.targeturlÀÇ °ªÀ» µî·ÏÇϰųª. ¶Ç´Â java option À¸·Î ´ÙÀ½À» Æ÷ÇÔ½ÃŲ´Ù. '-Dglue.scheduler.server.targeturl=127.0.0.1:8805/glue-scheduler'

Parameters:
jobDef -
Returns:
¼º°ø ½Ã "success"

sendJobEvent

String sendJobEvent(GlueJobDefinition jobDef,
                    String targetUrl)
targetUrl¿¡ Á¤ÀÇµÈ ¼­¹ö·Î http request¸¦ º¸³½´Ù. JobDefinition Á¤º¸¸¦ ÃßÃâÇÏ¿© request¸¦ »ý¼ºÇÑ´Ù. ¼­¹ö ½ºÄÉÁÙ·¯¿¡¼­ Á¤»óÀûÀ¸·Î Á¢¼ö°¡ µÇ¸é "success"°¡ ¸®ÅϵȴÙ. (Scheduled JobÀÌ Á¤»óÀûÀ¸·Î ó¸®µÈ °ÍÀ» ÀǹÌÇÏ´Â °ÍÀÌ ¾Æ´Ï´Ù.) /glue-scheduler ¿¡ ´ëÇؼ­´Â °íÁ¤°ªÀÌ´Ù.

Parameters:
jobDef -
targetUrl - : http://127.0.0.1:8805/glue-scheduler
Returns:
¼º°ø ½Ã "success"


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.