KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > remote > internal > RMIExporter


1 /*
2  * @(#)RMIExporter.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.jmx.remote.internal;
9
10 import java.rmi.NoSuchObjectException JavaDoc;
11 import java.rmi.Remote JavaDoc;
12 import java.rmi.RemoteException JavaDoc;
13 import java.rmi.server.RMIClientSocketFactory JavaDoc;
14 import java.rmi.server.RMIServerSocketFactory JavaDoc;
15 import java.rmi.server.UnicastRemoteObject JavaDoc;
16
17 /**
18  * <p>Unpublished interface controlling how the RMI Connector Server
19  * exports objects. The RMIServerImpl object and each
20  * RMIConnectionImpl object are exported using the exporter. The
21  * default exporter calls {@link
22  * UnicastRemoteObject#exportObject(Remote, int,
23  * RMIClientSocketFactory, RMIServerSocketFactory)} to export objects
24  * and {@link UnicastRemoteObject#unexportObject(Remote, boolean)} to
25  * unexport them. A replacement exporter can be specified via the
26  * {@link #EXPORTER_ATTRIBUTE} property in the environment Map passed
27  * to the RMI connector server.</p>
28  */

29 public interface RMIExporter {
30     public static final String JavaDoc EXPORTER_ATTRIBUTE =
31     "com.sun.jmx.remote.rmi.exporter";
32
33     public Remote JavaDoc exportObject(Remote JavaDoc obj,
34                    int port,
35                    RMIClientSocketFactory JavaDoc csf,
36                    RMIServerSocketFactory JavaDoc ssf)
37         throws RemoteException JavaDoc;
38
39     public boolean unexportObject(Remote JavaDoc obj, boolean force)
40         throws NoSuchObjectException JavaDoc;
41 }
42
Popular Tags