RMIConnectionImpl
RMIConnectionImpl (RMIConnection의 구현)
RMIConnectionImpl은 RMIConnection 인터페이스의 구현이에요. RMIConnection, Unreferenced를 구현하며 Closeable, AutoCloseable, Remote를 구현해요. 사용자 코드는 보통 이 클래스를 직접 참조하지 않아요. Java 1.5부터 제공돼요.
본문
생성자
RMIConnectionImpl(RMIServerImpl rmiServer, String connectionId, ClassLoader defaultClassLoader, Subject subject, Map<String, ?> env)— 새RMIConnection을 생성해요.
메서드
주요 메서드는 MBeanServerConnection의 메서드를 처리해요:
void addNotificationListener(ObjectName name, ObjectName listener, MarshalledObject filter, MarshalledObject handback, Subject delegationSubject)—MBeanServerConnection.addNotificationListener(ObjectName, ObjectName, NotificationFilter, Object)메서드를 처리해요.Integer[] addNotificationListeners(ObjectName[] names, MarshalledObject[] filters, Subject[] delegationSubjects)—MBeanServerConnection.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object)메서드를 처리해요.void close()— 이 연결을 닫아요.
이외에도 createMBean, getAttribute, setAttribute, invoke, getMBeanInfo, queryNames, queryMBeans, getConnectionId 등 다양한 메서드가 제공돼요.
이 클래스는 Object를 확장해요. 연결은 서버 측에서 클라이언트의 MBeanServer 요청을 받아 실제 MBeanServer 구현에 전달하는 역할을 해요.