|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.management.remote.rmi.RMIServerImpl
javax.management.remote.rmi.RMIJRMPServerImpl
public class RMIJRMPServerImpl
JRMP ·ÎºÎÅÍ export µÇ¾î JRMP ·ÎºÎÅÍ export µÈ RMI °´Ã¼·Î¼ Ŭ¶óÀÌ¾ðÆ® Á¢¼ÓÀ» ÀÛ¼ºÇÏ´Â RMIServer °´Ã¼ÀÔ´Ï´Ù. »ç¿ëÀÚ
ÄÚµå´Â ¹Ýµå½Ã ÀÌ Å¬·¡½º¸¦ Á÷Á¢ ÂüÁ¶ÇÏÁö ¾Ê½À´Ï´Ù.
RMIServerImpl | »ý¼ºÀÚ °³¿ä | |
|---|---|
RMIJRMPServerImpl (int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf,
Map <String,
? > env)
ÁöÁ¤µÈ ¼ÒÄÏ ÆÑÅ丮¸¦ »ç¿ëÇØ, ÁöÁ¤µÈ Æ÷Æ®»ó¿¡¼ export µÇ´Â »õ·Î¿î RMIServer °´Ã¼¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
protected void |
closeClient (RMIConnection client)
makeClient ·Î ÀÛ¼ºµÈ Ŭ¶óÀÌ¾ðÆ® Á¢¼ÓÀ» Á¾·áÇÕ´Ï´Ù. |
protected void |
closeServer ()
RMIServerImpl.close() ¿¡ ÀÇÇØ È£ÃâÇÕ´Ï´Ù. |
protected void |
export ()
ÀÌ RMI °´Ã¼¸¦ export ÇÕ´Ï´Ù. |
protected String |
getProtocol ()
ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÅäÄÝ Ä³¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
protected RMIConnection |
makeClient (String connectionId,
Subject subject)
JRMP ·ÎºÎÅÍ export µÈ RMI °´Ã¼·Î¼ »õ·Î¿î Ŭ¶óÀÌ¾ðÆ® Á¢¼ÓÀ» ÀÛ¼ºÇÕ´Ï´Ù. |
Remote |
toStub ()
ÀÌ RMIServer °´Ã¼ÀÇ Á÷·ÄÈ °¡´É ½ºÅÓÀ» ¸®ÅÏÇÕ´Ï´Ù. |
| Ŭ·¡½º javax.management.remote.rmi. RMIServerImpl ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clientClosed,
close,
getDefaultClassLoader,
getMBeanServer,
getVersion,
newClient,
setDefaultClassLoader,
setMBeanServer |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public RMIJRMPServerImpl(int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf,
Map <String,
? > env)
throws IOException
ÁöÁ¤µÈ ¼ÒÄÏ ÆÑÅ丮¸¦ »ç¿ëÇØ, ÁöÁ¤µÈ Æ÷Æ®»ó¿¡¼ export µÇ´Â »õ·Î¿î RMIServer °´Ã¼¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
port - ÀÌ °´Ã¼¿Í ÀÌ °´Ã¼¿¡ ÀÇÇØ ÀÛ¼ºµÇ´Â RMIConnectionImpl °´Ã¼°¡ export µÇ´Â Æ÷Æ®. 0 Àº »ç¿ë °¡´ÉÇÑ ÀÓÀÇÀÇ Æ÷Æ®¸¦ ³ªÅ¸³»´Âcsf - ÀÛ¼ºµÈ RMI °´Ã¼ÀÇ Å¬¶óÀÌ¾ðÆ® ¼ÒÄÏ ÆÑÅ丮. nullµµ °¡´Éssf - ÀÛ¼ºµÈ RMI °´Ã¼ÀÇ ¼¹ö ¼ÒÄÏ ÆÑÅ丮. nullµµ °¡´Éenv - ȯ°æ ¸Ê. nullµµ °¡´É
IOException - RMIServer °´Ã¼¸¦ ÀÛ¼ºÇÒ ¼ö ¾ø´Â °æ¿ì
IllegalArgumentException - portÀÌ À߸øµÈ °ª
ÀÇ °æ¿ì| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
protected void export()
throws IOException
RMIServerImpl
±â¼ú: ÀÌ RMI °´Ã¼¸¦ export ÇÕ´Ï´Ù.
RMIServerImpl ³»ÀÇ export IOException - ÀÌ RMI °´Ã¼¸¦ export ÇÒ ¼ö ¾ø´Â °æ¿ìprotected String getProtocol()
RMIServerImpl
±â¼ú: ÀÌ °´Ã¼ÀÇ ÇÁ·ÎÅäÄÝ Ä³¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. ¸®ÅϵÈ
ij¸¯ÅÍ ¶óÀÎÀº RMI/JRMPÀÎ °æ¿ì´Â rmi, RMI/IIOPÀÎ °æ¿ì´Â iiop°¡ µË´Ï´Ù.
RMIServerImpl ³»ÀÇ getProtocol
public Remote toStub()
throws IOException
ÀÌ RMIServer °´Ã¼ÀÇ Á÷·ÄÈ °¡´É ½ºÅÓÀ» ¸®ÅÏÇÕ´Ï´Ù.
RMIServerImpl ³»ÀÇ toStub IOException - ½ºÅÓÀ» ÃëµæÇÒ ¼ö ¾ø´Â °æ¿ì. ¿¹¸¦ µé¾î
RMIJRMPServerImpl°¡ ¾ÆÁ÷ exportµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì µî
protected RMIConnection makeClient(String connectionId,
Subject subject)
throws IOException
JRMP ·ÎºÎÅÍ export µÈ RMI °´Ã¼·Î¼ »õ·Î¿î Ŭ¶óÀÌ¾ðÆ® Á¢¼ÓÀ» ÀÛ¼ºÇÕ´Ï´Ù. RMIJRMPServerImpl »ý¼ºÀÚ
À¸·Î ÁöÁ¤µÈ Æ÷Æ® ¶Ç´Â ¼ÒÄÏ ÆÑÅ丮Áß ÇÑÂÊÀÌ, »õ·Î¿î RMIConnection °´Ã¼ÀÇ Æ÷Æ® ¶Ç´Â ¼ÒÄÏ ÆÑÅ丮°¡ µË´Ï´Ù.
RMIServerImpl ³»ÀÇ makeClient connectionId - »õ·Î¿î Á¢¼ÓÀÇ ID. ÀÌ Ä¿³ØÅÍ ¼¹ö¿¡ ÀÇÇØ À¯È¿È µÈ ¸ðµç Á¢¼ÓÀº °¢°¢ ´Ù¸¥ ID¸¦ °¡Áø´Ù. ÀÌ ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìÀÇ µ¿ÀÛÀº ºÎÁ¤subject - ÀÎÁõ ³¡³ ºñÀÎÁõÀÚ. nullµµ °¡´É
RMIConnection
IOException - »õ·Î¿î RMIConnection °´Ã¼¸¦ ÀÛ¼º ¶Ç´Â export ÇÒ ¼ö ¾ø´Â °æ¿ì
protected void closeClient(RMIConnection client)
throws IOException
RMIServerImpl
±â¼ú: makeClient ·Î ÀÛ¼ºµÈ Ŭ¶óÀÌ¾ðÆ® Á¢¼ÓÀ» Á¾·áÇÕ´Ï´Ù.
RMIServerImpl ³»ÀÇ closeClient client - ÀÌÀü¿¡ makeClient¿¡ ÀÇÇØ ¸®ÅϵÈ, closeClient ¸Þ¼µå°¡ ¾ÆÁ÷ 1ȸ
µµ ºÒ·Á°¡
Áö ¾ÊÀº Á¢¼Ó. clientÀÌ nullÀÎ °æ¿ì¸¦ Æ÷ÇÔÇØ, ¾î¶°ÇÑ Á¶°Ç À§¹ÝÀÌ ÀÖ¾úÀ» °æ¿ì, µ¿ÀÛÀº ºÎÁ¤ÀÌ µÈ´Ù
IOException - Ŭ¶óÀÌ¾ðÆ® Á¢¼ÓÀ» Á¾·áÇÒ ¼ö ¾ø´Â °æ¿ì
protected void closeServer()
throws IOException
RMIServerImpl.close() ¿¡ ÀÇÇØ È£ÃâÇÕ´Ï´Ù. ÀÌ °´Ã¼¸¦ ¾È export ÇÏ´Â °ÍÀ¸·Î½á, Ä¿³ØÅÍ ¼¹ö¸¦ Á¾·áÇÕ´Ï´Ù. ÀÌ ¸Þ¼µåÀÇ Á¾·áÈÄ, Ä¿³ØÅÍ ¼¹ö´Â »õ·Î¿î Á¢¼ÓÀ» ÀÏÀý ¹Þ¾ÆµéÀÌÁö ¾Ê°Ô µË´Ï´Ù.
RMIServerImpl ³»ÀÇ closeServer IOException - Ä¿³ØÅÍ ¼¹öÀÇ Á¾·á¿¡ ½ÇÆÐÇßÀ» °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.