|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softamis.cluster4spring.support.context.AbstractServicePublisher<EC> org.softamis.cluster4spring.support.context.GenericServicePublisher<EC>
public class GenericServicePublisher<EC extends AutoDiscoveredServiceExporter>
Generic implementation of ServicePublisher
which uses ProvidingRegistry
as distributed storage of services locations.
Field Summary | |
---|---|
protected org.softamis.net.registry.ProvidingRegistry<java.lang.String,ServiceMoniker> |
fServicesRegistry
Registry used to publish information about auto-discoverable services |
Fields inherited from class org.softamis.cluster4spring.support.context.AbstractServicePublisher |
---|
fAutodiscoveredExporterClass, fAutodiscoveredServicesInfo, fBeanName, fCacheAutoDiscoveredServicesInfo, fContext, fExporterAcceptor, fProtocolName, fServerID, fServerType, fServiceGroup |
Fields inherited from interface org.softamis.cluster4spring.ServicePublisher |
---|
SERVER_TYPE_DELIMITER |
Constructor Summary | |
---|---|
GenericServicePublisher()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Called by Spring as part of bean lifecycle. |
protected void |
doRegisterServiceInServicesRegistry(java.lang.String aServiceKey,
ServiceMoniker aMoniker)
Notifies underlying services registry that information about service should be published |
protected void |
doUnregisterServiceInServicesRegistry(java.lang.String aServiceKey)
Notifies that service under given key should be unregistered in underlying services registry |
org.softamis.net.registry.ProvidingRegistry<java.lang.String,ServiceMoniker> |
getServicesRegistry()
Returns registry used to publish information about auto-discoverable services |
void |
setServicesRegistry(org.softamis.net.registry.ProvidingRegistry<java.lang.String,ServiceMoniker> aServicesRegistry)
Sets registry used to publish information about auto-discoverable services |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.softamis.net.registry.ProvidingRegistry<java.lang.String,ServiceMoniker> fServicesRegistry
Constructor Detail |
---|
public GenericServicePublisher()
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
AbstractServicePublisher
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractServicePublisher<EC extends AutoDiscoveredServiceExporter>
java.lang.Exception
AbstractServicePublisher.createServicesGroup()
,
AbstractServicePublisher.createDefaultExporterAcceptor()
protected void doUnregisterServiceInServicesRegistry(java.lang.String aServiceKey)
AbstractServicePublisher
doUnregisterServiceInServicesRegistry
in class AbstractServicePublisher<EC extends AutoDiscoveredServiceExporter>
aServiceKey
- key for service that should be unregisteredprotected void doRegisterServiceInServicesRegistry(java.lang.String aServiceKey, ServiceMoniker aMoniker)
AbstractServicePublisher
doRegisterServiceInServicesRegistry
in class AbstractServicePublisher<EC extends AutoDiscoveredServiceExporter>
aServiceKey
- key for serviceaMoniker
- service informationpublic org.softamis.net.registry.ProvidingRegistry<java.lang.String,ServiceMoniker> getServicesRegistry()
public void setServicesRegistry(org.softamis.net.registry.ProvidingRegistry<java.lang.String,ServiceMoniker> aServicesRegistry)
aServicesRegistry
- registry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |