JavaTM Platform
Standard Ed. 6

javax.management.remote.rmi
클래스 RMIIIOPServerImpl

java.lang.Object 
  상위를 확장 javax.management.remote.rmi.RMIServerImpl 
      상위를 확장 javax.management.remote.rmi.RMIIIOPServerImpl
모든 구현된 인터페이스:
Closeable , Remote , RMIServer


public class RMIIIOPServerImpl
extends RMIServerImpl

IIOP 로부터 export 되어 IIOP 로부터 export 된 RMI 객체로서 클라이언트 접속을 작성하는 RMIServerImpl 입니다. 사용자 코드는, 반드시 이 클래스를 직접 참조하지 않습니다.

도입된 버젼:
1.5
관련 항목:
RMIServerImpl

생성자 의 개요
RMIIIOPServerImpl (Map <String ,? > env)
          새로운 RMIServerImpl 를 작성합니다.
 
메소드의 개요
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)
          IIOP 로부터 export 된 RMI 객체로서 새로운 클라이언트 접속을 작성합니다.
 Remote toStub ()
          IIOP Stub를 돌려줍니다.
 
클래스 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
 

생성자 의 상세

RMIIIOPServerImpl

public RMIIIOPServerImpl(Map <String ,? > env)
                  throws IOException 

새로운 RMIServerImpl 를 작성합니다.

파라미터:
env - 새로운 RMIServerImpl 의 속성을 포함한다 환경. 이 파라미터가 null 의 경우, 빈 상태(empty)의 맵을 지정했을 경우와 같은 것이 된다
예외:
IOException - RMI 객체를 작성할 수 없는 경우
메소드의 상세

export

protected void export()
               throws IOException 
클래스 RMIServerImpl 의 기술:

이 RMI 객체를 export 합니다.

정의:
클래스 RMIServerImpl 내의 export
예외:
IOException - 이 RMI 객체를 export 할 수 없는 경우

getProtocol

protected String  getProtocol()
클래스 RMIServerImpl 의 기술:

이 객체의 프로토콜 캐릭터 라인을 돌려줍니다. 반환되는 캐릭터 라인은, RMI/JRMP 의 경우는 rmi, RMI/IIOP 의 경우는 iiop 가 됩니다.

정의:
클래스 RMIServerImpl 내의 getProtocol
반환값:
이 객체의 프로토콜 캐릭터 라인

toStub

public Remote  toStub()
              throws IOException 

IIOP Stub를 돌려줍니다.

Stub는, 아직 ORB 에 접속되어 있지 않은 것이 있습니다. Stub를 직렬화하려면 , ORB 에 접속할 필요가 있습니다.

정의:
클래스 RMIServerImpl 내의 toStub
반환값:
IIOP Stub
예외:
IOException - Stub를 작성할 수 없는 경우. 예를 들어, RMIIIOPServerImpl 가 아직 export되어 있지 않은 경우 등

makeClient

protected RMIConnection  makeClient(String  connectionId,
                                   Subject  subject)
                            throws IOException 

IIOP 로부터 export 된 RMI 객체로서 새로운 클라이언트 접속을 작성합니다.

정의:
클래스 RMIServerImpl 내의 makeClient
파라미터:
connectionId - 새로운 접속의 ID. 이 연결기 서버에 의해 유효화 된 모든 접속은, 각각 다른 ID 를 가진다. 이 파라미터가 null 의 경우의 동작은 부정
subject - 인증 끝난 비인증자. null 도 가능
반환값:
새롭게 작성된 RMIConnection
예외:
IOException - 새로운 클라이언트 객체를 작성 또는 export 할 수 없는 경우

closeClient

protected void closeClient(RMIConnection  client)
                    throws IOException 
클래스 RMIServerImpl 의 기술:

makeClient 로 작성된 클라이언트 접속을 종료합니다.

정의:
클래스 RMIServerImpl 내의 closeClient
파라미터:
client - 이전에 makeClient 에 의해 반환된,closeClient 메소드가 아직 1 회도 불려 가지 않은 접속. client 가 null 의 경우를 포함해, 어떠한 조건 위반이 있었을 경우, 동작은 부정이 된다
예외:
IOException - 클라이언트 접속을 종료할 수 없는 경우

closeServer

protected void closeServer()
                    throws IOException 

RMIServerImpl.close() 에 의해 불려 갑니다. 이 객체를 안 export 하는 것으로써, 연결기 서버를 종료합니다. 이 메소드의 종료후, 연결기 서버는 새로운 접속을 일절 받아들이지 않게 됩니다.

정의:
클래스 RMIServerImpl 내의 closeServer
예외:
IOException - 연결기 서버의 종료에 실패했을 경우

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.