
public class GlueHttpJobEventSender extends Object implements GlueJobEventSender, InitializingBean
Bean Property - address : default java.net.InetAddress.getLocalHost().getHostAddress() - retryCount : default "2" - charset : default "UTF-8" 예제사용 예# 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)
GlueJobEventSendersendJobEvent in interface GlueJobEventSendertargetUri - : http://127.0.0.1:8805/glue-schedulerpublic String sendJobEvent(GlueJobDefinition jobDef)
sendJobEvent in interface GlueJobEventSenderjobDef - GlueException - - Request 송신 실패 시protected org.apache.commons.httpclient.NameValuePair[] makeRequestBody(GlueJobDefinition jobDef)
public String getCharset()
public void setCharset(String charset)
charset - the charset to setpublic void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface InitializingBeanExceptionCopyright © 2013–2021 POSCO ICT. All rights reserved.