Class RemoteServiceAdminEvent
java.lang.Object
org.osgi.service.remoteserviceadmin.RemoteServiceAdminEvent
- Direct Known Subclasses:
RemoteServiceAdmin.RemoteServiceAdminEvent
Provides the event information for a Remote Service Admin event.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A fatal exporting error occurred.static final int
Add an export registration.static final int
Remove an export registration.static final int
Update an export registration.static final int
A problematic situation occurred, the export is still active.static final int
A fatal importing error occurred.static final int
Add an import registration.static final int
Remove an import registration.static final int
Update an import registration.static final int
A problematic situation occurred, the import is still active. -
Constructor Summary
ConstructorDescriptionRemoteServiceAdminEvent
(int type, Bundle source, ExportReference exportReference, Throwable exception) Create a Remote Service Admin Event for an export notification.RemoteServiceAdminEvent
(int type, Bundle source, ImportReference importReference, Throwable exception) Create a Remote Service Admin Event for an import notification. -
Method Summary
Modifier and TypeMethodDescriptionReturn the exception for this event.Return the Export Reference for this event.Return the Import Reference for this event.Return the bundle source of this event.int
getType()
Return the type of this event.
-
Field Details
-
IMPORT_REGISTRATION
public static final int IMPORT_REGISTRATIONAdd an import registration. The Remote Service Admin will send this event when it imports a service. When theRemoteServiceAdminListener
service is registered, the Remote Service Admin must notify the listener of all existing Import Registrations.- See Also:
-
EXPORT_REGISTRATION
public static final int EXPORT_REGISTRATIONAdd an export registration. The Remote Service Admin will send this event when it exports a service. When theRemoteServiceAdminListener
service is registered, the Remote Service Admin must notify the listener of all existing Export Registrations.- See Also:
-
EXPORT_UNREGISTRATION
public static final int EXPORT_UNREGISTRATIONRemove an export registration. The Remote Service Admin will send this event when it removes the export of a service.- See Also:
-
IMPORT_UNREGISTRATION
public static final int IMPORT_UNREGISTRATIONRemove an import registration. The Remote Service Admin will send this event when it removes the import of a service.- See Also:
-
IMPORT_ERROR
public static final int IMPORT_ERRORA fatal importing error occurred. The Import Registration has been closed.- See Also:
-
EXPORT_ERROR
public static final int EXPORT_ERRORA fatal exporting error occurred. The Export Registration has been closed.- See Also:
-
EXPORT_WARNING
public static final int EXPORT_WARNINGA problematic situation occurred, the export is still active.- See Also:
-
IMPORT_WARNING
public static final int IMPORT_WARNINGA problematic situation occurred, the import is still active.- See Also:
-
IMPORT_UPDATE
public static final int IMPORT_UPDATEUpdate an import registration. The Remote Service Admin will send this event when it updates a service.- Since:
- 1.1
- See Also:
-
EXPORT_UPDATE
public static final int EXPORT_UPDATEUpdate an export registration. The Remote Service Admin will send this event when it exports a service.- Since:
- 1.1
- See Also:
-
-
Constructor Details
-
RemoteServiceAdminEvent
public RemoteServiceAdminEvent(int type, Bundle source, ExportReference exportReference, Throwable exception) Create a Remote Service Admin Event for an export notification.- Parameters:
type
- The event type.source
- The source bundle, must not benull
.exportReference
- The exportReference, can not benull
.exception
- Any exceptions encountered, can benull
.
-
RemoteServiceAdminEvent
public RemoteServiceAdminEvent(int type, Bundle source, ImportReference importReference, Throwable exception) Create a Remote Service Admin Event for an import notification.- Parameters:
type
- The event type.source
- The source bundle, must not benull
.importReference
- The importReference, can not benull
.exception
- Any exceptions encountered, can benull
.
-
-
Method Details
-
getImportReference
Return the Import Reference for this event.- Returns:
- The Import Reference or
null
.
-
getExportReference
Return the Export Reference for this event.- Returns:
- The Export Reference or
null
.
-
getException
Return the exception for this event.- Returns:
- The exception or
null
.
-
getType
public int getType()Return the type of this event.- Returns:
- The type of this event.
-
getSource
Return the bundle source of this event.- Returns:
- The bundle source of this event.
-