public class RegistryUtil extends BaseRegistryUtil
Modifier and Type | Class and Description |
---|---|
static class |
RegistryUtil.Configurable
Inner configuration holder class.
|
Modifier and Type | Field and Description |
---|---|
static String |
APP
Name of the registry's webapplication.
|
static String |
PARAM_ID
Value for the parameter name for the id-param.
|
registryLocation
Constructor and Description |
---|
RegistryUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
bind(ServiceDescriptor service)
Binds a service.
|
static ServiceDescriptor |
createLocalServiceDescription(ServiceDescriptor.Protocol protocol,
String serviceId,
String instanceId,
int port) |
static String |
createRegistryOperationUrl(Location loc,
String operation,
String parameters)
Helper methods that creates the url for given operation and parameters.
|
static String |
createRegistryOperationUrl(String operation,
String parameters)
Helper methods that creates the url for given operation and parameters.
|
static String |
describeRegistry()
Returns a string representing current state of the registry.
|
protected static String |
getRegistryBaseUrl()
Get registry url for internal use.
|
protected static String |
getRegistryBaseUrl(String host,
int port)
Get registry url for internal use.
|
static String |
getXMLServiceList()
Returns the list of services as xml-string.
|
static String |
getXMLServiceList(Location loc)
Returns the list of services from a specified location.
|
static boolean |
notifyBind(Location location,
ServiceDescriptor descriptor) |
static boolean |
notifyUnbind(Location location,
ServiceDescriptor descriptor) |
static String |
ping(Location location)
Pings a location.
|
static ServiceDescriptor |
resolve(ServiceDescriptor toResolve)
Resolves a service request.
|
static ServiceDescriptor |
resolve(ServiceDescriptor toResolve,
Location loc)
Resolves a service descriptor at a specified location.
|
static boolean |
unbind(ServiceDescriptor service)
Unbinds a service.
|
encode, getRegistryBaseUrl, getRegistryBaseUrl, getUrlContent, getUrlContent
public static final String PARAM_ID
public static final String APP
public static boolean bind(ServiceDescriptor service)
service
- public static String ping(Location location)
location
- location to ping.public static boolean notifyBind(Location location, ServiceDescriptor descriptor)
public static boolean notifyUnbind(Location location, ServiceDescriptor descriptor)
public static boolean unbind(ServiceDescriptor service)
service
- public static ServiceDescriptor resolve(ServiceDescriptor toResolve, Location loc)
toResolve
- loc
- public static String createRegistryOperationUrl(String operation, String parameters)
operation
- the operation which should be executed. For example BIND,UNBIND etc.parameters
- the parameters to the operation.public static String createRegistryOperationUrl(Location loc, String operation, String parameters)
loc
- location of the registry.operation
- the operation which should be executed. For example BIND,UNBIND etc.parameters
- the parameters to the operation.public static String getXMLServiceList()
public static String getXMLServiceList(Location loc)
public static ServiceDescriptor resolve(ServiceDescriptor toResolve)
toResolve
- parameter descriptor which contains the serviceid to be resolved.protected static String getRegistryBaseUrl()
protected static String getRegistryBaseUrl(String host, int port)
host
- registry host.port
- registry port.public static ServiceDescriptor createLocalServiceDescription(ServiceDescriptor.Protocol protocol, String serviceId, String instanceId, int port)
public static final String describeRegistry()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.