JavaTM 2 Platform
Standard Ed. 5.0

org.omg.PortableServer
Ŭ·¡½º Servant

java.lang.Object 
  »óÀ§¸¦ È®Àå org.omg.PortableServer.Servant
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
BindingIteratorPOA, DynamicImplementation, NamingContextExtPOA, NamingContextPOA, ServantActivatorPOA, ServantLocatorPOA

public abstract class Servant
extends Object

³×ÀÌƼºêÀÎ Servant ÇüÀ» Á¤ÀÇÇÕ´Ï´Ù. Java ¿¡¼­´Â Servant ÇüÀº Java org.omg.PortableServer.Servant Ŭ·¡½º¿¡ ¸Ê µË´Ï´Ù. ÀÌ Å¬·¡½º´Â ¸ðµç POA ¼­¹øÆ® ±¸ÇöÀÇ base class·Î¼­ ±â´ÉÇØ, ¾îÇø®ÄÉÀÌ¼Ç ÇÁ·Î±×·¡¸Ó°¡ È£ÃâÇÒ ¼ö ÀÖ´Â ¸î°³ÀÇ ¸Þ¼­µå ¿Ü¿¡ POA ±× ÀÚü¿¡ ÀÇÇØ ºÒ·Á°¡ ¼­¹øÆ®ÀÇ µ¿ÀÛÀ» Á¦¾îÇϱâ À§Çؼ­ »ç¿ëÀÚ°¡ ¿À¹ö¶óÀ̵å(override) ÇÒ ¼ö ÀÖ´Â ¸Þ¼­µåµµ Á¦°øÇÕ´Ï´Ù. IDL - Java °£ÀÇ »ç¾ç (CORBA V2. 3.1) ptc/00-01-08.pdf¿¡ ÁØ°ÅÇÏ°í ÀÖ½À´Ï´Ù.


»ý¼ºÀÚ °³¿ä
Servant ()
           
 
¸Þ¼­µå °³¿ä
abstract  String [] _all_interfaces (POA  poa, byte[] objectId)
          ORB°¡ ¼­¹øÆ®·ÎºÎÅÍ ¿ÏÀüÇÑ ÇüÅ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.
 POA _default_POA ()
          ¼­¹øÆ®°¡ °ü·ÃµÈ ORB ÀνºÅϽº·ÎºÎÅÍ ·çÆ® POA¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Delegate _get_delegate ()
          ORB º¥´õ °íÀ¯ÀÇ PortableServer::Servant ±¸ÇöÀ» ÃëµæÇÕ´Ï´Ù.
 Object _get_interface_def ()
          Servant¿¡ ÀÇÇØ ±¸ÇöµÈ CORBA::Object ½ÇÇà½ÃÀÇ ÇüŸ¦ Á¤ÀÇÇÏ´Â CORBA::Object·Î ¼­ InterfaceDef °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean _is_a (String  repository_id)
          ÁöÁ¤µÈ repository_id ÀÌ, _all_interfaces()¿¡ ÀÇÇØ ¸®ÅÏµÈ ¸®½ºÆ®¿¡ Æ÷ÇԵǾî ÀÖ´ÂÁö, ±×·¸Áö ¾ÊÀ¸¸é ¹ü¿ëÀÇ CORBA °´Ã¼ÀÇ repository_idÀÎÁö¸¦ È®ÀÎÇÕ´Ï´Ù.
 boolean _non_existent ()
          Object Á¸À縦 È®ÀÎÇÕ´Ï´Ù.
 byte[] _object_id ()
          °øÅëÀÇ ¸Þ¼­µå¸¦ °£´ÜÇÏ°Ô ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù (PortableServer::Current::get_object_id¸¦ È£ÃâÇÏ´Â °Í°ú °°´Ù).
 ORB _orb ()
          Servant¿¡ ÇöÀç °ü·ÃµÈ ORB ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù (°£ÀÌ ¸Þ¼­µå).
 POA _poa ()
          °øÅëÀÇ ¸Þ¼­µå¸¦ °£´ÜÇÏ°Ô ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù (PortableServer::Current:get_POA¿Í °°´Ù).
 void _set_delegate (Delegate  delegate)
          À§Å¹À» °³ÀÔ½ÃÄÑ ORB À̽ļºÀ» Áö¿øÇϴ Ŭ·¡½º¸¦ ¸Þ¼­µå¿¡ Á¦°øÇÏ´Â °ÍÀ¸·Î½á, Java ORB À̽ļºÀÌ ÀÖ´Â ÀÎÅÍÆäÀ̽º¸¦ Áö¿ø ÇÕ´Ï´Ù.
 Object _this_object ()
          ¼­¹øÆ®°¡ ±× ¿ä±¸¿¡ ´ëÇؼ­ »ý¼ºÇÏ°í Àִ Ÿ°ÙÀÇ CORBA °´Ã¼ÀÇ °´Ã¼ ÂüÁ¶¸¦ ÃëµæÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 Object _this_object (ORB  orb)
          ¼­¹øÆ®°¡ ±× ¿ä±¸¿¡ ´ëÇؼ­ »ý¼ºÇÏ°í Àִ Ÿ°ÙÀÇ CORBA °´Ã¼ÀÇ °´Ã¼ ÂüÁ¶¸¦ ÃëµæÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

Servant

public Servant()
¸Þ¼­µåÀÇ »ó¼¼

_get_delegate

public final Delegate  _get_delegate()
ORB º¥´õ °íÀ¯ÀÇ PortableServer::Servant ±¸ÇöÀ» ÃëµæÇÕ´Ï´Ù.

¹Ýȯ°ª:
_delegate ORB º¥´õ °íÀ¯ÀÇ PortableServer::Servant ±¸Çö

_set_delegate

public final void _set_delegate(Delegate  delegate)
À§Å¹À» °³ÀÔ½ÃÄÑ ORB À̽ļºÀ» Áö¿øÇϴ Ŭ·¡½º¸¦ ¸Þ¼­µå¿¡ Á¦°øÇÏ´Â °ÍÀ¸·Î½á, Java ORB À̽ļºÀÌ ÀÖ´Â ÀÎÅÍÆäÀ̽º¸¦ Áö¿ø ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
delegate - ORB º¥´õ °íÀ¯ÀÇ PortableServer::Servant ±¸Çö

_this_object

public final Object  _this_object()
¼­¹øÆ®°¡ ±× ¿ä±¸¿¡ ´ëÇؼ­ »ý¼ºÇÏ°í Àִ Ÿ°ÙÀÇ CORBA °´Ã¼ÀÇ °´Ã¼ ÂüÁ¶¸¦ ÃëµæÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

¹Ýȯ°ª:
this_object ¿ä±¸¿¡ °ü·ÃµÈ °´Ã¼ ÂüÁ¶

_this_object

public final Object  _this_object(ORB  orb)
¼­¹øÆ®°¡ ±× ¿ä±¸¿¡ ´ëÇؼ­ »ý¼ºÇÏ°í Àִ Ÿ°ÙÀÇ CORBA °´Ã¼ÀÇ °´Ã¼ ÂüÁ¶¸¦ ÃëµæÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
orb - ¼­¹øÆ®°¡ °ü·ÃµÈ ORB
¹Ýȯ°ª:
_this_object ¿ä±¸¿¡ °ü·ÃµÈ ÂüÁ¶

_orb

public final ORB  _orb()
Servant¿¡ ÇöÀç °ü·ÃµÈ ORB ÀνºÅϽº¸¦ ¸®ÅÏÇÕ´Ï´Ù (°£ÀÌ ¸Þ¼­µå).

¹Ýȯ°ª:
orb Servant¿¡ ÇöÀç °ü·ÃµÈ ORB ÀνºÅϽº

_poa

public final POA  _poa()
°øÅëÀÇ ¸Þ¼­µå¸¦ °£´ÜÇÏ°Ô ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù (PortableServer::Current:get_POA¿Í °°´Ù).

¹Ýȯ°ª:
poa ¼­¹øÆ®°¡ °ü·ÃµÈ POA

_object_id

public final byte[] _object_id()
°øÅëÀÇ ¸Þ¼­µå¸¦ °£´ÜÇÏ°Ô ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù (PortableServer::Current::get_object_id¸¦ È£ÃâÇÏ´Â °Í°ú °°´Ù).

¹Ýȯ°ª:
object_id ÀÌ ¼­¹øÆ®°¡ °ü·ÃµÈ Object ID

_default_POA

public POA  _default_POA()
¼­¹øÆ®°¡ °ü·ÃµÈ ORB ÀνºÅϽº·ÎºÎÅÍ ·çÆ® POA¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¼­ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼­µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ´Ù¸¥ POA¸¦ µ¹·ÁÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù.

¹Ýȯ°ª:
default_POA Servant¿¡ °ü·ÃµÈ POA

_is_a

public boolean _is_a(String  repository_id)
ÁöÁ¤µÈ repository_id ÀÌ, _all_interfaces()¿¡ ÀÇÇØ ¸®ÅÏµÈ ¸®½ºÆ®¿¡ Æ÷ÇԵǾî ÀÖ´ÂÁö, ±×·¸Áö ¾ÊÀ¸¸é ¹ü¿ëÀÇ CORBA °´Ã¼ÀÇ repository_idÀÎÁö¸¦ È®ÀÎÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
repository_id - ¸®Æ÷ÁöÅ͸®(repository) ¸®½ºÆ®¿¡ Á¸ÀçÇÏ´Â °Í, ¶Ç´Â ¹ü¿ë CORBA °´Ã¼ÀÇ ID ÀÎ °ÍÀ» È®ÀÎÇÏ´Â repository_id
¹Ýȯ°ª:
is_a ÁöÁ¤µÈ repository_id°¡ ¸®Æ÷ÁöÅ͸®(repository) ¸®½ºÆ®¿¡ Æ÷ÇԵǾî ÀÖ´ÂÁö, ¹ü¿ëÀÇ CORBA °´Ã¼¿Í °°Àº°¡¸¦ ³ªÅ¸³»´Â boolean

_non_existent

public boolean _non_existent()
Object Á¸À縦 È®ÀÎÇÕ´Ï´Ù. Servant´Â ÆÄ»ý ¼­¹øÆ®¿¡ ÀÇÇØ ¿À¹ö¶óÀ̵å(override) ÇÒ ¼ö ÀÖ´Â _non_existent() µðÆúÆ® ±¸ÇöÀ» Á¦°øÇÕ´Ï´Ù.

¹Ýȯ°ª:
non_existent ÇØ´ç °´Ã¼°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â true, Á¸ÀçÇÏ´Â °æ¿ì´Â false

_get_interface_def

public Object  _get_interface_def()
Servant¿¡ ÀÇÇØ ±¸ÇöµÈ CORBA::Object ½ÇÇà½ÃÀÇ ÇüŸ¦ Á¤ÀÇÇÏ´Â CORBA::Object·Î ¼­ InterfaceDef °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. _get_interface_def È£ÃâÃø¿¡¼­´Â ±× °á°ú¸¦ InterfaceDef¿¡ ³×·Î¿ì º¯È¯ÇÏ°í ³ª¼­ »ç¿ëÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

_get_interface_def() µðÆúÆ®ÀÇ ±¸ÇöÀº µðÆúÆ®ÀÇ µ¿ÀÛÀÌ ÀûÀýÇÏÁö ¾ÊÀº °æ¿ì¿¡ ÆÄ»ý ¼­¹øÆ®¿¡ ÀÇÇØ ¿À¹ö¶óÀ̵å(override) ÇÒ ¼ö ÀÖ½À´Ï´Ù. CORBA 2.3. 1 »ç¾çÀÇ ¼½¼Ç 11.3. 1¿¡ Á¤Àǵǰí ÀÖµµ·Ï, _get_interface_def() µðÆúÆ®ÀÇ µ¿ÀÛÀº Á¤Àû ¼­¹øÆ®ÀÇ ÃÖ»óÁ¤µµÀÇ ÆÄ»ý ÀÎÅÍÆäÀ̽º ¶Ç´Â µ¿Àû ¼­¹øÆ®·ÎºÎÅÍ ²¨³»Áø ÃÖ»óÁ¤µµÀÇ ÆÄ»ý ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇØ InterfaceDef¸¦ ¾ò´Â °ÍÀÔ´Ï´Ù. ÀÌ µ¿ÀÛÀº, Servant¸¦ ±¸ÇöÇÏ´Â Delegate¿¡ ÀÇÇØ Áö¿ø µÇ°í ÀÖÀ» ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

¹Ýȯ°ª:
get_interface_def Servant¿¡ ÀÇÇØ ±¸ÇöµÈ CORBA::Object ½ÇÇà½ÃÀÇ ÇüŸ¦ Á¤ÀÇÇÏ´Â CORBA::Object·Î¼­ÀÇ InterfaceDef °´Ã¼

_all_interfaces

public abstract String [] _all_interfaces(POA  poa,
                                         byte[] objectId)
ORB°¡ ¼­¹øÆ®·ÎºÎÅÍ ¿ÏÀüÇÑ ÇüÅ Á¤º¸¸¦ ÃëµæÇϱâ À§Çؼ­ »ç¿ëÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
poa - ¼­¹øÆ®°¡ °ü·ÃµÈ POA
objectId - ÀÌ ¼­¹øÆ®°¡ °ü·ÃµÈ °´Ã¼¿¡ ´ëÀÀÇÏ´Â ID
¹Ýȯ°ª:
ÀÌ °´Ã¼ÀÇ ÇüÅ Á¤º¸ÀÇ ¸®½ºÆ®

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.