public class GlueHttpJobEventSender extends Object implements GlueJobEventSender, org.springframework.beans.factory.InitializingBean
Bean Property - address : default java.net.InetAddress.getLocalHost().getHostAddress() - retryCount : default "2" - charset : default "EUC-KR" ¿¹Á¦»ç¿ë ¿¹# 1 »ç¿ë ¿¹# 2 Âü°í : {pgm}-service.xml ...
Modifier and Type | Field and Description |
---|---|
protected static String |
HTTP_PREFIX |
Constructor and Description |
---|
GlueHttpJobEventSender() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
getAddress() |
String |
getCharset() |
int |
getRetryCount() |
protected org.apache.commons.httpclient.NameValuePair[] |
makeRequestBody(GlueJobDefinition jobDef) |
String |
sendJobEvent(GlueJobDefinition jobDef)
TargetUrl¿¡ Á¤ÀÇµÈ ¼¹ö·Î http request¸¦ º¸³½´Ù.
|
String |
sendJobEvent(GlueJobDefinition jobDef,
String targetUri)
targetUrl¿¡ Á¤ÀÇµÈ ¼¹ö·Î http request¸¦ º¸³½´Ù.
|
void |
setAddress(String address) |
void |
setCharset(String charset) |
void |
setRetryCount(int retryCount) |
protected static final String HTTP_PREFIX
public String getAddress()
public void setAddress(String address)
public int getRetryCount()
public void setRetryCount(int retryCount)
public String sendJobEvent(GlueJobDefinition jobDef, String targetUri)
GlueJobEventSender
sendJobEvent
in interface GlueJobEventSender
targetUri
- : http://127.0.0.1:8805/glue-schedulerpublic String sendJobEvent(GlueJobDefinition jobDef)
sendJobEvent
in interface GlueJobEventSender
jobDef
- GlueException
- - Request ¼Û½Å ½ÇÆÐ ½Ãprotected org.apache.commons.httpclient.NameValuePair[] makeRequestBody(GlueJobDefinition jobDef)
public String getCharset()
public void setCharset(String charset)
charset
- the charset to setCopyright © 2013–2020 POSCO ICT. All rights reserved.