public class GlueServerHandler
extends org.apache.mina.common.IoHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_IDLE_TIME
디폴트 세션 Idle 시간 (단위, 초)
|
protected static String |
PARAM_HEADER
Job Parameter Header
|
Constructor and Description |
---|
GlueServerHandler() |
GlueServerHandler(GlueJobEventReceiver jobEventReceiver) |
Modifier and Type | Method and Description |
---|---|
protected GlueJobDefinition |
createJobDefinition(GlueHttpRequestMessage message)
GlueHttpRequestMessage로부터 Job Definition을 생성한다. - JobName, RequestId, ClientIp - Job Parameters 정보 설정
|
void |
exceptionCaught(org.apache.mina.common.IoSession session,
Throwable cause) |
void |
messageReceived(org.apache.mina.common.IoSession session,
Object message)
GlueGlueSchedulerHttpServer가 메시지(HttpRequest)를 받을 때 호출되는 callback 메소드.
|
void |
sessionIdle(org.apache.mina.common.IoSession session,
org.apache.mina.common.IdleStatus status) |
void |
sessionOpened(org.apache.mina.common.IoSession session)
세션 오픈 시 callback 메소드.
|
public static final int DEFAULT_IDLE_TIME
protected static final String PARAM_HEADER
public GlueServerHandler()
public GlueServerHandler(GlueJobEventReceiver jobEventReceiver)
public void sessionOpened(org.apache.mina.common.IoSession session)
sessionOpened
in interface org.apache.mina.common.IoHandler
sessionOpened
in class org.apache.mina.common.IoHandlerAdapter
session
- IoSessionprotected GlueJobDefinition createJobDefinition(GlueHttpRequestMessage message)
message
- GlueHttpRequestMessagepublic void messageReceived(org.apache.mina.common.IoSession session, Object message)
messageReceived
in interface org.apache.mina.common.IoHandler
messageReceived
in class org.apache.mina.common.IoHandlerAdapter
session
- IoSessionmessage
- GlueHttpRequestMessagepublic void sessionIdle(org.apache.mina.common.IoSession session, org.apache.mina.common.IdleStatus status)
sessionIdle
in interface org.apache.mina.common.IoHandler
sessionIdle
in class org.apache.mina.common.IoHandlerAdapter
public void exceptionCaught(org.apache.mina.common.IoSession session, Throwable cause)
exceptionCaught
in interface org.apache.mina.common.IoHandler
exceptionCaught
in class org.apache.mina.common.IoHandlerAdapter
Copyright © 2023–2024 POSCO DX. All rights reserved.