public class GlueUCubeManagerImpl extends Object implements InitializingBean, DisposableBean, PriorityOrdered, GlueUCubeManager
Bean Property - propertyFileName : (필수) - serviceBrokerNames : (필수) - period : (선택) default 0. ucubeManager 생성시, period값이 0이 아니면 ServiceBrokerChecker가 동작함. 예제사용 예# 1
GLUE_SEND GLUE_RECV
IEAIServiceBrokerHandler
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
GlueUCubeManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
int |
getOrder() |
int |
sendFile(String brokerName,
String interfaceID,
String filePath)
1개 file 송신.
|
int |
sendMessage(String brokerName,
String interfaceID,
String message)
1개의 message 송신.
|
int[] |
sendMessages(String brokerName,
String interfaceID,
List<String> messageList)
여러개의 message 송신.
|
void |
setPeriod(int period)
setter method.
|
void |
setPropertyFileName(String propertyFileName)
setter method.
|
void |
setServiceBrokerNames(List<String> serviceBrokerNames)
setter method.
|
public void setPropertyFileName(String propertyFileName)
propertyFileName
- - IEAIServiceBrokerHandler 초기화시 사용할 파일public void setServiceBrokerNames(List<String> serviceBrokerNames)
serviceBrokerNames
- - IEAIServiceBrokerHandler를 통해 start 시킬 Service Broker 명.public void setPeriod(int period)
period
- public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public int sendMessage(String brokerName, String interfaceID, String message)
sendMessage
in interface GlueUCubeManager
brokerName
- Service Broker 명interfaceID
- interface idmessage
- 보내고자 하는 messagepublic int[] sendMessages(String brokerName, String interfaceID, List<String> messageList)
sendMessages
in interface GlueUCubeManager
brokerName
- Service Broker 명interfaceID
- interface idmessageList
- 보내고자 하는 message 리스트public int sendFile(String brokerName, String interfaceID, String filePath)
sendFile
in interface GlueUCubeManager
brokerName
- Service Broker 명interfaceID
- interface idfilePath
- 보내고자 하는 file 정보(경로 & 파일명)Copyright © 2013–2021 POSCO ICT. All rights reserved.