Class GenericServiceExporter
java.lang.Object
com.gigaspaces.grid.GenericServiceExporter
Exports a
Remote service and registers it with the XAP lookup service via Jini's
standard export/JoinManager mechanism - the same mechanism GSC/GSM/GSA use, where it's
inherited for free from org.jini.rio.jsb.ServiceBeanAdapter. That base class is coupled
to the Rio service-bean/Cybernode deployment model though, so it only helps components that are
themselves deployed as a Rio service bean. This is for the other case: a standalone process
(GSA-managed or not) that wants to export a remote service and be discoverable without going
through a GSC.-
Method Summary
Modifier and TypeMethodDescriptionstatic GenericServiceExporterexport(Remote service, String groupsCsv, String locatorsCsv, ServiceIDListener serviceIdListener) Exportsserviceand registers it with the lookup service(s) identified by the given comma-separatedgroupsCsv/locatorsCsv(either may be null/blank).voidDeregisters and unexports the service.
-
Method Details
-
export
public static GenericServiceExporter export(Remote service, String groupsCsv, String locatorsCsv, ServiceIDListener serviceIdListener) throws IOException, ConfigurationException Exportsserviceand registers it with the lookup service(s) identified by the given comma-separatedgroupsCsv/locatorsCsv(either may be null/blank).- Throws:
IOExceptionConfigurationException
-
terminate
public void terminate()Deregisters and unexports the service.
-