com.poscoict.glueframework.ucube4
Class GlueUCubeManagerImpl

java.lang.Object
  extended by com.poscoict.glueframework.ucube4.GlueUCubeManagerImpl
All Implemented Interfaces:
GlueUCubeManager, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class GlueUCubeManagerImpl
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.core.PriorityOrdered, GlueUCubeManager

u-CUBE 4 ¿ë Manager. ucube-apapter-{version}.jar ¸¦ ÇÊ¿ä·ÎÇÔ. com.poscoict.eai.adapter.handler.IEAIServiceBrokerHandler Ŭ·¡½º°¡ »ç¿ëµÊ.

 Bean Property
 
 - propertyFileName : (Çʼö)
 
 - serviceBrokerNames : (Çʼö)
 
 - period : (¼±ÅÃ)
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 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:
IEAIServiceBrokerHandler

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
GlueUCubeManagerImpl()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueUCubeManagerImpl

public GlueUCubeManagerImpl()
Method Detail

setPropertyFileName

public void setPropertyFileName(String propertyFileName)
setter method.

Parameters:
propertyFileName - - IEAIServiceBrokerHandler ÃʱâÈ­½Ã »ç¿ëÇÒ ÆÄÀÏ

setServiceBrokerNames

public void setServiceBrokerNames(List<String> serviceBrokerNames)
setter method.

Parameters:
serviceBrokerNames - - IEAIServiceBrokerHandler¸¦ ÅëÇØ start ½Ãų Service Broker ¸í.

setPeriod

public void setPeriod(int period)
setter method.

Parameters:
period -

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

sendMessage

public int sendMessage(String brokerName,
                       String interfaceID,
                       String message)
1°³ÀÇ message ¼Û½Å.

Specified by:
sendMessage in interface GlueUCubeManager
Parameters:
brokerName - Service Broker ¸í
interfaceID - interface id
message - º¸³»°íÀÚ ÇÏ´Â message
Returns:
-1 ¶Ç´Â IEAIServiceBrokerHandler.sendMessage(brokerName, interfaceID, message, false) ÀÇ °ª

sendMessages

public int[] sendMessages(String brokerName,
                          String interfaceID,
                          List<String> messageList)
¿©·¯°³ÀÇ message ¼Û½Å.

Specified by:
sendMessages in interface GlueUCubeManager
Parameters:
brokerName - Service Broker ¸í
interfaceID - interface id
messageList - º¸³»°íÀÚ ÇÏ´Â message ¸®½ºÆ®
Returns:
-1 ¶Ç´Â IEAIServiceBrokerHandler.sendMessage(brokerName, interfaceID, message, true) ÀÇ °ª array

sendFile

public int sendFile(String brokerName,
                    String interfaceID,
                    String filePath)
1°³ file ¼Û½Å.

Specified by:
sendFile in interface GlueUCubeManager
Parameters:
brokerName - Service Broker ¸í
interfaceID - interface id
filePath - º¸³»°íÀÚ ÇÏ´Â file Á¤º¸(°æ·Î & ÆÄÀϸí)
Returns:
-1 ¶Ç´Â IEAIServiceBrokerHandler.sendFile( brokerName, interfaceID, filePath ) ÀÇ °ª


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.