org.softamis.cluster4spring
Interface ServicePublisher

All Known Implementing Classes:
AbstractServicePublisher, DefaultServicePublisher, GenericServicePublisher, RmiServicePublisher

public interface ServicePublisher

Interface that should be implemented by appropriate remote service publisher. Service publisher is used to simplify working with "autodiscoverable" services. Typically, ServicePublisher collectes information about all AutoDiscoverdServiceExporters that are registered in Spring context, gathers information about services exported by exporters and publishes information about them using appropriate services publishing mechanism.

Author:
Andrew Sazonov
See Also:
ServicePublisher, ExporterAcceptor

Field Summary
static java.lang.String SERVER_TYPE_DELIMITER
           
 
Method Summary
 java.lang.String getServiceGroup()
          Name of services group which could be published via particular publisher if appropriate Exporter acceptor is used.
 void publishServices()
          Collects and publishes all applicable services for auto-discovering
 void unPublishServices()
          Removes information about own published services from auto-discovering context.
 

Field Detail

SERVER_TYPE_DELIMITER

static final java.lang.String SERVER_TYPE_DELIMITER
See Also:
Constant Field Values
Method Detail

getServiceGroup

java.lang.String getServiceGroup()
Name of services group which could be published via particular publisher if appropriate Exporter acceptor is used.

Returns:
group name
See Also:
GroupBasedExporterAcceptor

publishServices

void publishServices()
Collects and publishes all applicable services for auto-discovering


unPublishServices

void unPublishServices()
Removes information about own published services from auto-discovering context.