public class GlueUCubeManagerImpl extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.core.PriorityOrdered, GlueUCubeManager
Bean Property - propertyFileName : (필수) - serviceBrokerNames : (필수) - period : (선택) default 0. ucubeManager 생성시, period값이 0이 아니면 ServiceBrokerChecker가 동작함. 예제사용 예# 1
GLUE_SEND GLUE_RECV
IEAIServiceBrokerHandler
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 org.springframework.beans.factory.DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
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 © 2023–2024 POSCO DX. All rights reserved.