Class GlueUCubeManagerImpl
java.lang.Object
com.poscoict.glueframework.ucube4.GlueUCubeManagerImpl
- All Implemented Interfaces:
GlueUCubeManager
,DisposableBean
,InitializingBean
,Ordered
,PriorityOrdered
public class GlueUCubeManagerImpl
extends Object
implements InitializingBean, DisposableBean, PriorityOrdered, GlueUCubeManager
u-CUBE 4 용 Manager. ucube-apapter-{version}.jar 를 필요로함. com.poscoict.eai.adapter.handler.IEAIServiceBrokerHandler 클래스가 사용됨.
Bean Property
- propertyFileName : (필수)
- serviceBrokerNames : (필수)
- period : (선택) default 0. ucubeManager 생성시, period값이 0이 아니면 ServiceBrokerChecker가 동작함.
예제
사용 예# 1
<bean id="ucubeManager" class="com.poscoict.glueframework.ucube4.GlueUCubeManagerImpl">
<property name="propertyFileName" value="${CONFIG_PATH}/ucube.properties"/>
<property name="serviceBrokerNames">
<list>
<value>GLUE_SEND</value>
<value>GLUE_RECV</value>
</list>
</property>
<property name="period" value="100"/>
</bean>
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
int
getOrder()
int
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.
-
Constructor Details
-
GlueUCubeManagerImpl
public GlueUCubeManagerImpl()
-
-
Method Details
-
setPropertyFileName
setter method.- Parameters:
propertyFileName
- IEAIServiceBrokerHandler 초기화시 사용할 파일
-
setServiceBrokerNames
setter method.- Parameters:
serviceBrokerNames
- IEAIServiceBrokerHandler를 통해 start 시킬 Service Broker 명.
-
setPeriod
public void setPeriod(int period) setter method.- Parameters:
period
-
-
destroy
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
getOrder
public int getOrder() -
sendMessage
1개의 message 송신.- Specified by:
sendMessage
in interfaceGlueUCubeManager
- Parameters:
brokerName
- Service Broker 명interfaceID
- interface idmessage
- 보내고자 하는 message- Returns:
- -1 또는 IEAIServiceBrokerHandler.sendMessage(brokerName, interfaceID, message, false) 의 값
-
sendMessages
여러개의 message 송신.- Specified by:
sendMessages
in interfaceGlueUCubeManager
- Parameters:
brokerName
- Service Broker 명interfaceID
- interface idmessageList
- 보내고자 하는 message 리스트- Returns:
- -1 또는 IEAIServiceBrokerHandler.sendMessage(brokerName, interfaceID, message, true) 의 값 array
-
sendFile
1개 file 송신.- Specified by:
sendFile
in interfaceGlueUCubeManager
- Parameters:
brokerName
- Service Broker 명interfaceID
- interface idfilePath
- 보내고자 하는 file 정보(경로 & 파일명)- Returns:
- -1 또는 IEAIServiceBrokerHandler.sendFile( brokerName, interfaceID, filePath ) 의 값
-