Package org.distributeme.core.util
Class EventServiceRegistryUtil
java.lang.Object
org.distributeme.core.util.BaseRegistryUtil
org.distributeme.core.util.EventServiceRegistryUtil
Utility classes for requests to the registry via http.
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Field Summary
FieldsFields inherited from class org.distributeme.core.util.BaseRegistryUtil
registryLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringReturns the base url for this registry application.protected static StringgetRegistryBaseUrl(Location location) Returns the base url for this registry application.static final Stringlist2string(List<ServiceDescriptor> descriptors) Converts a list of service descriptors to a string.static final voidnotifyConsumerNotAvailable(ServiceDescriptor consumer) notifyConsumerNotAvailable.static final voidnotifyNotAvailable(org.distributeme.core.util.EventServiceRegistryUtil.Target as, ServiceDescriptor descriptor) Offers a possibility to mark a descriptor as unavailable.static final voidnotifySupplierNotAvailable(ServiceDescriptor supplier) notifySupplierNotAvailable.protected static final List<ServiceDescriptor> registerAtRegistryAs(String channelName, org.distributeme.core.util.EventServiceRegistryUtil.Target as, ServiceDescriptor descriptor) registerAtRegistryAs.static final List<ServiceDescriptor> registerConsumerAtRegistryAndGetSuppliers(String channelName, ServiceDescriptor myConsumer) registerConsumerAtRegistryAndGetSuppliers.static final List<ServiceDescriptor> registerSupplierAtRegistryAndGetConsumers(String channelName, ServiceDescriptor mySupplier) registerSupplierAtRegistryAndGetConsumers.static final List<ServiceDescriptor> string2list(String encodedString) Converts a list of string representations of service descriptors to a list of ServiceDescriptor objects.Methods inherited from class org.distributeme.core.util.BaseRegistryUtil
encode, getRegistryBaseUrl, getRegistryBaseUrl, getRegistryLocation, getUrlContent, getUrlContent
-
Field Details
-
APP
Web-Application name.- See Also:
-
-
Constructor Details
-
EventServiceRegistryUtil
public EventServiceRegistryUtil()
-
-
Method Details
-
list2string
Converts a list of service descriptors to a string. -
string2list
Converts a list of string representations of service descriptors to a list of ServiceDescriptor objects. -
registerAtRegistryAs
protected static final List<ServiceDescriptor> registerAtRegistryAs(String channelName, org.distributeme.core.util.EventServiceRegistryUtil.Target as, ServiceDescriptor descriptor) registerAtRegistryAs.
- Parameters:
channelName- aStringobject.as- aEventServiceRegistryUtil.Targetobject.descriptor- aServiceDescriptorobject.- Returns:
- a
Listobject.
-
registerConsumerAtRegistryAndGetSuppliers
public static final List<ServiceDescriptor> registerConsumerAtRegistryAndGetSuppliers(String channelName, ServiceDescriptor myConsumer) registerConsumerAtRegistryAndGetSuppliers.
- Parameters:
channelName- aStringobject.myConsumer- aServiceDescriptorobject.- Returns:
- a
Listobject.
-
registerSupplierAtRegistryAndGetConsumers
public static final List<ServiceDescriptor> registerSupplierAtRegistryAndGetConsumers(String channelName, ServiceDescriptor mySupplier) registerSupplierAtRegistryAndGetConsumers.
- Parameters:
channelName- aStringobject.mySupplier- aServiceDescriptorobject.- Returns:
- a
Listobject.
-
notifyConsumerNotAvailable
notifyConsumerNotAvailable.
- Parameters:
consumer- aServiceDescriptorobject.
-
notifySupplierNotAvailable
notifySupplierNotAvailable.
- Parameters:
supplier- aServiceDescriptorobject.
-
notifyNotAvailable
public static final void notifyNotAvailable(org.distributeme.core.util.EventServiceRegistryUtil.Target as, ServiceDescriptor descriptor) Offers a possibility to mark a descriptor as unavailable.- Parameters:
as- the type of descriptor, supplier or consumer.descriptor- aServiceDescriptorobject.
-
getRegistryBaseUrl
Returns the base url for this registry application. Globally configured host and port are used.- Returns:
- a
Stringobject.
-
getRegistryBaseUrl
Returns the base url for this registry application.
-