com.poscoict.glueframework.ucube
Class GlueUCubeManagerImpl

java.lang.Object
  extended by com.poscoict.glueframework.ucube.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 3¿ë Manager. seadapter.jar ¸¦ ÇÊ¿ä·Î ÇÔ. com.posdata.eai.adapter.EAIHandler Ŭ·¡½º°¡ »ç¿ëµÊ.

 Bean Property
 
 - configFile : (Çʼö)
 
 - option : (¼±ÅÃ) default : active
     zombie, active
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <bean id="ucubeManager" class="com.poscoict.glueframework.ucube.GlueUCubeManagerImpl">
         <property name="configFile" value="${CONFIG_PATH}/SEND.xml"/>
     </bean>
 
 
 »ç¿ë ¿¹# 2
 
     <bean id="ucubeManager" class="com.poscoict.glueframework.ucube.GlueUCubeManagerImpl">
         <property name="configFile" value="${CONFIG_PATH}/SEND.xml"/>
         <property name="option" value="zombie"/>
     </bean>
 

See Also:
EAIHandler

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 dummy, String interfaceID, String filePath)
          1°³ file ¼Û½Å.
 int sendMessage(String dummy, String interfaceID, String tc)
          1°³ÀÇ message ¼Û½Å.
 int[] sendMessages(String dummy, String interfaceID, List<String> tcList)
          ¿©·¯°³ÀÇ message ¼Û½Å.
 void setConfigFile(String configFile)
          setter method.
 void setOption(String option)
          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

setConfigFile

public void setConfigFile(String configFile)
setter method.

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

setOption

public void setOption(String option)
setter method.

Parameters:
option - - active ¶Ç´Â zombie

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 dummy,
                       String interfaceID,
                       String tc)
1°³ÀÇ message ¼Û½Å.

Specified by:
sendMessage in interface GlueUCubeManager
Parameters:
dummy - ¹Ì»ç¿ë
interfaceID - interface id
tc - º¸³»°íÀÚ ÇÏ´Â message
Returns:
-1 ¶Ç´Â EAIHandler.sendTC(interfaceID, tc, 0) ÀÇ °ª

sendMessages

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

Specified by:
sendMessages in interface GlueUCubeManager
Parameters:
dummy -
interfaceID - interface id
tcList - º¸³»°íÀÚ ÇÏ´Â message ¸®½ºÆ®
Returns:
-1 ¶Ç´Â EAIHandler.sendTC(interfaceID, tc, 0) ÀÇ °ª array

sendFile

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

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


Copyright © 2013–2018 POSCO ICT. All rights reserved.