RMIJRMPServerImpl

RMIJRMPServerImpl (JRMP로 export되는 RMIServer)

RMIJRMPServerImpl은 JRMP를 통해 export되고 JRMP를 통해 export되는 RMI 객체로서 클라이언트 연결을 만드는 RMIServer 객체예요. RMIServerImpl을 확장하며 Closeable, AutoCloseable, Remote, RMIServer을 구현해요. 사용자 코드는 보통 이 클래스를 직접 참조하지 않아요. Java 1.5부터 제공돼요. 관련 클래스로 RMIServerImpl이 있어요.

출처: Java API Reference

본문

생성자

  • RMIJRMPServerImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String, ?> env) — 주어진 소켓 팩토리를 사용해 주어진 포트에 export될 새 RMIServer 객체를 생성해요.

메서드

  • protected void closeClient(RMIConnection client)makeClient가 만든 클라이언트 연결을 닫아요.
  • protected void closeServer()RMIServerImpl.close()이 이 객체를 unexport해 커넥터 서버를 닫도록 호출해요.
  • protected void export() — 이 RMI 객체를 export해요.
  • protected String getProtocol() — 이 객체의 프로토콜 문자열을 반환해요.
  • protected RMIConnection makeClient(String connectionId, Subject subject) — JRMP를 통해 export되는 RMI 객체로서 새 클라이언트 연결을 만들어요.

이 커넥터 서버는 JRMP(Java Remote Method Protocol)를 통해 원격 클라이언트의 연결을 받아 JMX 요청을 처리하는 데 사용돼요.

더 알아보기 (Learn more)

Java 공식 API