public class MonitorAccessExporter extends Object implements net.jini.export.Exporter
ActivationMonitor instance so that it
only accepts calls from the local host.| Constructor and Description |
|---|
MonitorAccessExporter()
Creates an exporter with an underlying
JrmpExporter that
exports on the standard activation port (1098). |
MonitorAccessExporter(net.jini.export.Exporter exporter)
Creates an exporter with the specified underlying exporter.
|
MonitorAccessExporter(int port)
Creates an exporter with an underlying
JrmpExporter that
exports on the specified port. |
| Modifier and Type | Method and Description |
|---|---|
Remote |
export(Remote impl)
Wraps the specified remote object in an
ActivationMonitor
implementation that only accepts calls from the local host before
delegating to the specified remote object, exports the wrapper with
the underlying exporter, and returns the resulting proxy. |
boolean |
unexport(boolean force) |
public MonitorAccessExporter()
JrmpExporter that
exports on the standard activation port (1098).public MonitorAccessExporter(int port)
JrmpExporter that
exports on the specified port.port - the port on which to receive calls (if zero, an anonymous
port will be chosen)public MonitorAccessExporter(net.jini.export.Exporter exporter)
exporter - the underlying exporterpublic Remote export(Remote impl) throws ExportException
ActivationMonitor
implementation that only accepts calls from the local host before
delegating to the specified remote object, exports the wrapper with
the underlying exporter, and returns the resulting proxy. The wrapper
is strongly referenced by this exporter. For all
ActivationMonitor methods, the wrapper throws an
AccessControlException if the client is not calling from
the local host.export in interface net.jini.export.ExporterIllegalArgumentException - if impl does not
implement ActivationMonitorNullPointerExceptionIllegalStateExceptionExportExceptionpublic boolean unexport(boolean force)
unexport in interface net.jini.export.ExporterIllegalStateExceptionCopyright © 2016–2018. All rights reserved.