tle.framework.component.impl
Class ComponentBase

java.lang.Object
  extended bytle.framework.component.impl.ComponentBase
All Implemented Interfaces:
Component
Direct Known Subclasses:
DefaultAAManager, DefaultRequestAnalyzer, DefaultRequestProcessor, DefaultUICreator, NullAAManager, TLEController

public abstract class ComponentBase
extends java.lang.Object
implements Component

Component ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÒ Å¬·¡½º°¡ º£À̽º Ŭ·¡½º·Î »ç¿ëÇÒ ¼ö ÀÖ´Â Ãß»ó Ŭ·¡½º. ¶óÀÌÇÁ »çÀÌŬ°ú °ü·ÃµÈ ¸Þ¼Òµå È£Ãâ½Ã ÄÄÆ÷³ÍÆ®ÀÇ »óÅ ÀüÀ̸¦ ó¸®ÇØÁØ´Ù.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Field Summary
protected  ComponentState componentState
           
protected  ComponentConfig config
           
 
Constructor Summary
ComponentBase()
          ÄÄÆ÷³ÍÆ®ÀÇ »óŸ¦ "NOT_CREATED" »óÅ¿¡¼­ "CREATED"·Î º¯°æÇÑ´Ù.
 
Method Summary
 void close()
          resuming() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÀϽÃÁ¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ À籸µ¿ÇÑ´Ù.
protected  void closing()
          ±¸µ¿ÁßÀÎ ÄÄÆ÷³ÍÆ®¸¦ Á¾·áÇÑ´Ù.
 java.lang.String getDescription()
          init()¿¡¼­ Àü´Þ¹ÞÀº ComponentConfigÀÇ getDescription() ¸Þ¼ÒµåÀÇ °á°ú °ªÀ» ¸®ÅÏÇÑ´Ù.
 java.lang.String getID()
          initing() ¸Þ¼Òµå·Î Àü´Þ¹ÞÀº ComponentConfig.getID() ¸Þ¼ÒµåÀÇ °ªÀ» ¸®ÅÏÇÑ´Ù.
 java.lang.String getState()
           
 void init(ComponentConfig config)
          initing() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÄÄÆ÷³ÍÆ®¸¦ ÃʱâÈ­ÇÑ´Ù.
protected  void initing(ComponentConfig config)
          ÄÄÆ÷³ÍÆ®¸¦ ÃʱâÈ­ÇÑ´Ù.
 boolean isClosed()
          ÄÄÆ÷³ÍÆ®°¡ Á¾·áµÊ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isClosing()
          ÄÄÆ÷³ÍÆ®°¡ Á¾·áÁß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isCreated()
          ÄÄÆ÷³ÍÆ®°¡ »ý¼ºµÈ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isErrorOccured()
          ÄÄÆ÷³ÍÆ®°¡ ¿¡·¯Ã³¸®Áß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isInited()
          ÄÄÆ÷³ÍÆ®°¡ ÃʱâÈ­µÊ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isIniting()
          ÄÄÆ÷³ÍÆ®°¡ ÃʱâÈ­Áß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isResuming()
          ÄÄÆ÷³ÍÆ®°¡ Àç°èÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isRunning()
          ÄÄÆ÷³ÍÆ®°¡ ½ÇÇàÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isStarting()
          ÄÄÆ÷³ÍÆ®°¡ ½ÃÀÛÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isStopped()
          ÄÄÆ÷³ÍÆ®°¡ Á¤ÁöµÊ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isStopping()
          ÄÄÆ÷³ÍÆ®°¡ Á¤ÁöÁß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isSuspended()
          ÄÄÆ÷³ÍÆ®°¡ Áö¿¬µÈ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isSuspending()
          ÄÄÆ÷³ÍÆ®°¡ Áö¿¬ÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 void resume()
          resuming() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÀϽÃÁ¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ À籸µ¿ÇÑ´Ù.
protected  void resuming()
          ÀϽà Á¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ ´Ù½Ã ±¸µ¿ÇÑ´Ù.
 void start()
          starting() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÄÄÆ÷³ÍÆ®¸¦ ±¸µ¿ÇÑ´Ù.
protected  void starting()
          ÄÄÆ÷³ÍÆ®¸¦ ±¸µ¿ÇÑ´Ù.
 void stop()
          resuming() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÀϽÃÁ¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ À籸µ¿ÇÑ´Ù.
protected  void stopping()
          ±¸µ¿ÁßÀÎ ÄÄÆ÷³ÍÆ®¸¦ Á¤ÁöÇÑ´Ù.
 void suspend()
          suspending() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÄÄÆ÷³ÍÆ®¸¦ ÀϽà Á¤ÁöÇÑ´Ù.
protected  void suspending()
          ÄÄÆ÷³ÍÆ®¸¦ ÀϽà Á¤ÁöÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentState

protected ComponentState componentState

config

protected ComponentConfig config
Constructor Detail

ComponentBase

public ComponentBase()
ÄÄÆ÷³ÍÆ®ÀÇ »óŸ¦ "NOT_CREATED" »óÅ¿¡¼­ "CREATED"·Î º¯°æÇÑ´Ù.

Method Detail

getID

public java.lang.String getID()
initing() ¸Þ¼Òµå·Î Àü´Þ¹ÞÀº ComponentConfig.getID() ¸Þ¼ÒµåÀÇ °ªÀ» ¸®ÅÏÇÑ´Ù.

Specified by:
getID in interface Component
Returns:
See Also:
Component.getID()

initing

protected void initing(ComponentConfig config)
                throws ComponentException
ÄÄÆ÷³ÍÆ®¸¦ ÃʱâÈ­ÇÑ´Ù.

ÇÏÀ§ Ŭ·¡½º¸¦ ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵ùÇÏ¿© ÄÄÆ÷³ÍÆ® ÃʱâÈ­¸¦ ¼öÇàÇÑ´Ù.

Parameters:
config - ÄÄÆ÷³ÍÆ® ÃʱâÈ­ ¼³Á¤ Á¤º¸¸¦ ´ã°í ÀÖ´Â °´Ã¼
Throws:
ComponentException

init

public final void init(ComponentConfig config)
                throws ComponentException
initing() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÄÄÆ÷³ÍÆ®¸¦ ÃʱâÈ­ÇÑ´Ù.

ó¸® ¼ø¼­´Â ["INITING" »óÅ ÀüÀÌ -> initing() È£Ãâ -> "INITED" »óÅ ÀüÀÌ] ÀÌ´Ù. protected ÇʵåÀÎ config¿¡ ÀÎÀÚ·Î Àü´Þ¹ÞÀº config¸¦ ÇÒ´çÇÑ´Ù.

Specified by:
init in interface Component
Parameters:
config - ÄÄÆ÷³ÍÆ®ÀÇ ¼³Á¤ Á¤º¸¸¦ ´ã°í ÀÖ´Ù.
Throws:
ComponentException
See Also:
tle.framework.component.Component#init()

starting

protected void starting()
                 throws ComponentException
ÄÄÆ÷³ÍÆ®¸¦ ±¸µ¿ÇÑ´Ù.

ÇÏÀ§ Ŭ·¡½º¸¦ ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵ùÇÏ¿© ÄÄÆ÷³ÍÆ® ±¸µ¿ ÀÛ¾÷À» ¼öÇàÇÑ´Ù. ÀÌ ¸Þ¼Òµå¸¦ ±¸ÇöÇÒ ¶§ ÁÖÀÇÇÒ Á¡Àº starting() ¸Þ¼Òµå°¡ ºü¸¥ ½Ã°£¾È¿¡ ¸®ÅÏÇØ¾ß ÇÑ´Ù´Â Á¡ÀÌ´Ù. ¸¸¾à ÄÄÆ÷³ÍÆ®°¡ ¼­¹ö¼ÒÄÏ ¸®½º³Ê¿Í °°ÀÌ ·çÇÁ¸¦ ÇÊ¿ä·Î ÇÒ °æ¿ì starting() ¸Þ¼Òµå°¡ ¾Æ´Ñ º°µµÀÇ ¾²·¹µå¿¡¼­ ·çÇÁÀÛ¾÷À» ¼öÇàÇØ¾ß ÇÑ´Ù.

Throws:
ComponentException

start

public final void start()
                 throws ComponentException
starting() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÄÄÆ÷³ÍÆ®¸¦ ±¸µ¿ÇÑ´Ù.

ó¸® ¼ø¼­´Â ["STARTING" »óÅ ÀüÀÌ -> initing() È£Ãâ -> "RUNNING" »óÅ ÀüÀÌ] ÀÌ´Ù.

Specified by:
start in interface Component
Throws:
ComponentException
See Also:
Component.start()

suspending

protected void suspending()
                   throws ComponentException
ÄÄÆ÷³ÍÆ®¸¦ ÀϽà Á¤ÁöÇÑ´Ù.

ÇÏÀ§ Ŭ·¡½º¸¦ ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵ùÇÏ¿© ÄÄÆ÷³ÍÆ®ÀÇ ÀϽà ÀÛ¾÷À» ó¸®ÇÑ´Ù.

Throws:
ComponentException

suspend

public final void suspend()
                   throws ComponentException
suspending() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÄÄÆ÷³ÍÆ®¸¦ ÀϽà Á¤ÁöÇÑ´Ù.

ó¸® ¼ø¼­´Â ["SUSPENDING" »óÅ ÀüÀÌ -> suspending() È£Ãâ -> "SUSPENDED" »óÅ ÀüÀÌ] ÀÌ´Ù.

Specified by:
suspend in interface Component
Throws:
ComponentException
See Also:
Component.suspend()

resuming

protected void resuming()
                 throws ComponentException
ÀϽà Á¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ ´Ù½Ã ±¸µ¿ÇÑ´Ù.

ÇÏÀ§ Ŭ·¡½º¸¦ ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵ùÇÏ¿© ÄÄÆ÷³ÍÆ®ÀÇ À籸µ¿ ÀÛ¾÷À» ¼öÇàÇÑ´Ù.

Throws:
ComponentException

resume

public final void resume()
                  throws ComponentException
resuming() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÀϽÃÁ¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ À籸µ¿ÇÑ´Ù.

ó¸® ¼ø¼­´Â ["SUSPENDING" »óÅ ÀüÀÌ -> suspending() È£Ãâ -> "SUSPENDED" »óÅ ÀüÀÌ] ÀÌ´Ù.

Specified by:
resume in interface Component
Throws:
ComponentException
See Also:
Component.resume()

stopping

protected void stopping()
                 throws ComponentException
±¸µ¿ÁßÀÎ ÄÄÆ÷³ÍÆ®¸¦ Á¤ÁöÇÑ´Ù.

ÇÏÀ§ Ŭ·¡½º´Â ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵ùÇÏ¿© ÄÄÆ÷³ÍÆ®ÀÇ Á¤Áö ÀÛ¾÷À» ¼öÇàÇÑ´Ù.

Throws:
ComponentException

stop

public final void stop()
                throws ComponentException
resuming() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÀϽÃÁ¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ À籸µ¿ÇÑ´Ù.

ó¸® ¼ø¼­´Â ["STOPPING" »óÅ ÀüÀÌ -> stop() È£Ãâ -> "STOPPED" »óÅ ÀüÀÌ] ÀÌ´Ù.

Specified by:
stop in interface Component
Throws:
ComponentException
See Also:
Component.stop()

closing

protected void closing()
                throws ComponentException
±¸µ¿ÁßÀÎ ÄÄÆ÷³ÍÆ®¸¦ Á¾·áÇÑ´Ù.

ÇÏÀ§ Ŭ·¡½º´Â ÀÌ ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵ùÇÏ¿© ÄÄÆ÷³ÍÆ®ÀÇ Á¾·á ÀÛ¾÷À» ¼öÇàÇÑ´Ù.

Throws:
ComponentException

close

public final void close()
                 throws ComponentException
resuming() ¸Þ¼Òµå¸¦ È£ÃâÇÏ¿© ÀϽÃÁ¤ÁöµÈ ÄÄÆ÷³ÍÆ®¸¦ À籸µ¿ÇÑ´Ù.

ó¸® ¼ø¼­´Â ["CLOSING" »óÅ ÀüÀÌ -> stop() È£Ãâ -> "CLOSED" »óÅ ÀüÀÌ] ÀÌ´Ù.

Specified by:
close in interface Component
Throws:
ComponentException
See Also:
Component.close()

getDescription

public java.lang.String getDescription()
init()¿¡¼­ Àü´Þ¹ÞÀº ComponentConfigÀÇ getDescription() ¸Þ¼ÒµåÀÇ °á°ú °ªÀ» ¸®ÅÏÇÑ´Ù.

See Also:
ComponentMBean.getDescription()

getState

public final java.lang.String getState()

isCreated

public boolean isCreated()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ »ý¼ºµÈ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isCreated in interface Component
Returns:

isClosed

public boolean isClosed()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Á¾·áµÊ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isClosed in interface Component
Returns:

isClosing

public boolean isClosing()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Á¾·áÁß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isClosing in interface Component
Returns:

isErrorOccured

public boolean isErrorOccured()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ ¿¡·¯Ã³¸®Áß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isErrorOccured in interface Component
Returns:

isInited

public boolean isInited()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ ÃʱâÈ­µÊ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isInited in interface Component
Returns:

isIniting

public boolean isIniting()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ ÃʱâÈ­Áß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isIniting in interface Component
Returns:

isResuming

public boolean isResuming()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Àç°èÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isResuming in interface Component
Returns:

isRunning

public boolean isRunning()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ ½ÇÇàÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isRunning in interface Component
Returns:

isStarting

public boolean isStarting()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ ½ÃÀÛÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isStarting in interface Component
Returns:

isStopped

public boolean isStopped()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Á¤ÁöµÊ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isStopped in interface Component
Returns:

isStopping

public boolean isStopping()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Á¤ÁöÁß »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isStopping in interface Component
Returns:

isSuspended

public boolean isSuspended()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Áö¿¬µÈ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isSuspended in interface Component
Returns:

isSuspending

public boolean isSuspending()
Description copied from interface: Component
ÄÄÆ÷³ÍÆ®°¡ Áö¿¬ÁßÀÎ »óÅÂÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
isSuspending in interface Component
Returns: