com.poscoict.glueframework.scheduling.remote
Class GlueHttpJobEventSender
java.lang.Object
  
com.poscoict.glueframework.scheduling.remote.GlueHttpJobEventSender
- All Implemented Interfaces: 
 - GlueJobEventSender, InitializingBean
 
public class GlueHttpJobEventSender
- extends Object
- implements GlueJobEventSender, InitializingBean
  
GlueJobEventSender ±¸Çöü.
 ¿ø°Ý¿¡ À§Ä¡ÇÑ ½ºÄÉÁÙ·¯ ¼¹ö·Î Job ±âµ¿ ¿äûÀ» º¸³»´Â Http Sender Ŭ·¡½º.
 
 
 Bean Property
 
 - address : default java.net.InetAddress.getLocalHost().getHostAddress()
 
 - retryCount : default "2"
 
 - charset : default "EUC-KR"
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     
 
 
 »ç¿ë ¿¹# 2
 
     
         
     
 
 
 
 Âü°í : {pgm}-service.xml
 
     
     
             
             
             ...
         
     
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
HTTP_PREFIX
protected static final String HTTP_PREFIX
- See Also:
 - Constant Field Values
 
GlueHttpJobEventSender
public GlueHttpJobEventSender()
getAddress
public String getAddress()
 
 
setAddress
public void setAddress(String address)
 
 
getRetryCount
public int getRetryCount()
 
 
setRetryCount
public void setRetryCount(int retryCount)
 
 
sendJobEvent
public String sendJobEvent(GlueJobDefinition jobDef,
                           String targetUri)
- Description copied from interface: 
GlueJobEventSender 
- targetUrl¿¡ Á¤ÀÇµÈ ¼¹ö·Î http request¸¦ º¸³½´Ù. JobDefinition Á¤º¸¸¦ ÃßÃâÇÏ¿© request¸¦ »ý¼ºÇÑ´Ù. ¼¹ö ½ºÄÉÁÙ·¯¿¡¼ Á¤»óÀûÀ¸·Î Á¢¼ö°¡ µÇ¸é "success"°¡ ¸®ÅϵȴÙ. (Scheduled JobÀÌ
 Á¤»óÀûÀ¸·Î ó¸®µÈ °ÍÀ» ÀǹÌÇÏ´Â °ÍÀÌ ¾Æ´Ï´Ù.) /glue-scheduler ¿¡ ´ëÇØ¼´Â °íÁ¤°ªÀÌ´Ù.
- Specified by:
 sendJobEvent in interface GlueJobEventSender
 
targetUri - : http://127.0.0.1:8805/glue-scheduler
- Returns:
 - ¼º°ø ½Ã "success"
 
 
 
sendJobEvent
public String sendJobEvent(GlueJobDefinition jobDef)
- TargetUrl¿¡ Á¤ÀÇµÈ ¼¹ö·Î http request¸¦ º¸³½´Ù. JobDefinition Á¤º¸¸¦ ÃßÃâÇÏ¿© request¸¦ »ý¼ºÇÑ´Ù. ¼¹ö ½ºÄÉÁÙ·¯¿¡¼ Á¤»óÀûÀ¸·Î Á¢¼ö°¡ µÇ¸é "success"°¡ ¸®ÅϵȴÙ. (Scheduled JobÀÌ
 Á¤»óÀûÀ¸·Î ó¸®µÈ °ÍÀ» ÀǹÌÇÏ´Â °ÍÀÌ ¾Æ´Ï´Ù.)
- Specified by:
 sendJobEvent in interface GlueJobEventSender
 
- Parameters:
 jobDef - 
- Returns:
 - ¼º°ø ½Ã "success"
 - Throws:
 GlueException - - Request ¼Û½Å ½ÇÆÐ ½Ã
 
 
makeRequestBody
protected org.apache.commons.httpclient.NameValuePair[] makeRequestBody(GlueJobDefinition jobDef)
 
 
getCharset
public String getCharset()
 
- Returns:
 - the charset
 
 
setCharset
public void setCharset(String charset)
 
- Parameters:
 charset - the charset to set
 
afterPropertiesSet
public void afterPropertiesSet()
                        throws Exception
- Specified by:
 afterPropertiesSet in interface InitializingBean
 
- Throws:
 Exception
 
Copyright © 2013–2017 POSCO ICT. All rights reserved.