RMIConnectionImpl_Stub
RMIConnectionImpl_Stub (RMIConnectionImpl 원격 스텁)
RMIConnectionImpl_Stub은 RMIConnectionImpl의 원격 스텁(stub)이에요. RemoteStub을 확장하며 RMIConnection, Closeable, AutoCloseable, Remote, Serializable을 구현해요. final 클래스예요.
본문
생성자
RMIConnectionImpl_Stub(RemoteRef ref)— 생성자예요. 매개변수ref는 원격 참조예요.
메서드
주요 메서드로 addNotificationListener, addNotificationListeners, close, createMBean, getAttribute, setAttribute, invoke, getMBeanInfo, queryNames, queryMBeans, getConnectionId 등이 있어요. 각 메서드는 MBeanServerConnection의 해당 메서드를 처리하며, RMI 스텁이므로 매개변수는 마샬된 형태로 전달돼요.
RemoteObject에 선언된 ref 필드와 RemoteStub에 선언된 setRef 메서드, RemoteObject에 선언된 equals, getRef, hashCode, toString, toStub 메서드를 상속받아요.
이 스텁은 RMI 통신에서 클라이언트 측에서 원격 RMIConnectionImpl 서버 객체를 호출하기 위해 사용돼요.