public class EventServiceRegistryUtil extends BaseRegistryUtil
Modifier and Type | Field and Description |
---|---|
static String |
APP
Web-Application name.
|
registryLocation
Constructor and Description |
---|
EventServiceRegistryUtil() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getRegistryBaseUrl()
Returns the base url for this registry application.
|
protected static String |
getRegistryBaseUrl(String host,
int port)
Returns the base url for this registry application.
|
static String |
list2string(List<ServiceDescriptor> descriptors)
Converts a list of service descriptors to a string.
|
static void |
notifyConsumerNotAvailable(ServiceDescriptor consumer) |
static void |
notifyNotAvailable(org.distributeme.core.util.EventServiceRegistryUtil.Target as,
ServiceDescriptor descriptor)
Offers a possibility to mark a descriptor as unavailable.
|
static void |
notifySupplierNotAvailable(ServiceDescriptor supplier) |
protected static List<ServiceDescriptor> |
registerAtRegistryAs(String channelName,
org.distributeme.core.util.EventServiceRegistryUtil.Target as,
ServiceDescriptor descriptor) |
static List<ServiceDescriptor> |
registerConsumerAtRegistryAndGetSuppliers(String channelName,
ServiceDescriptor myConsumer) |
static List<ServiceDescriptor> |
registerSupplierAtRegistryAndGetConsumers(String channelName,
ServiceDescriptor mySupplier) |
static List<ServiceDescriptor> |
string2list(String encodedString)
Converts a list of string representations of service descriptors to a list of ServiceDescriptor objects.
|
encode, getRegistryBaseUrl, getRegistryBaseUrl, getUrlContent, getUrlContent
public static final String APP
public static final String list2string(List<ServiceDescriptor> descriptors)
descriptors
- public static final List<ServiceDescriptor> string2list(String encodedString)
encodedString
- protected static final List<ServiceDescriptor> registerAtRegistryAs(String channelName, org.distributeme.core.util.EventServiceRegistryUtil.Target as, ServiceDescriptor descriptor)
public static final List<ServiceDescriptor> registerConsumerAtRegistryAndGetSuppliers(String channelName, ServiceDescriptor myConsumer)
public static final List<ServiceDescriptor> registerSupplierAtRegistryAndGetConsumers(String channelName, ServiceDescriptor mySupplier)
public static final void notifyConsumerNotAvailable(ServiceDescriptor consumer)
public static final void notifySupplierNotAvailable(ServiceDescriptor supplier)
public static final void notifyNotAvailable(org.distributeme.core.util.EventServiceRegistryUtil.Target as, ServiceDescriptor descriptor)
as
- the type of descriptor, supplier or consumer.descriptor
- protected static String getRegistryBaseUrl()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.