Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2013-2014 by Cisco Systems, Inc. All rights reserved.
 
 package com.cisco.oss.foundation.directory;
 
The service registration lifecycle management interface. This interface is intended for the service provider to register/update/unregister a ProvidedServiceInstance.

Author(s):
zuxiang
public interface RegistrationManager {

Register a new ProvidedServiceInstance. Register a new ProvidedServiceInstance to Service Directory.

Parameters:
serviceInstance The ProvidedServiceInstance.
Throws:
com.cisco.oss.foundation.directory.exception.ServiceException
	public void registerService(ProvidedServiceInstance serviceInstancethrows ServiceException;

Register a new ProviderServiceInstance with ServiceInstanceHealth. It registers a new ProviderServiceInstance and attaches a ServiceInstanceHealth callback. Directory server will invoke ServiceInstanceHealth periodically to update the OperationalStatus of the ProviderServiceInstance on behalf of the Service Provider.

Parameters:
serviceInstance The ProvidedServiceInstance.
registryHealth The ServiceInstanceHealth.
Throws:
com.cisco.oss.foundation.directory.exception.ServiceException
	public void registerService(ProvidedServiceInstance serviceInstanceServiceInstanceHealth registryHealththrows ServiceException;

Update the OperationalStatus of the ProvidedServiceInstance. It is a convenient method to update the OperationalStatus of the ProvidedServiceInstance.

Parameters:
serviceName The name of the service.
providerId The providerId of the ProvidedServiceInstance.
status The OperationalStatus of the ProvidedServiceInstance.
Throws:
com.cisco.oss.foundation.directory.exception.ServiceException
	public void updateServiceOperationalStatus(String serviceNameString providerIdOperationalStatus statusthrows ServiceException;

Update the URI of the ProvidedServiceInstance. It is a convenient method to update the URI of the ProvidedServiceInstance.

Parameters:
serviceName The name of the service.
providerId The providerId of the ProvidedServiceInstance.
uri The URI of the ProvidedServiceInstance.
Throws:
com.cisco.oss.foundation.directory.exception.ServiceException
	public void updateServiceUri(String serviceNameString providerIdString urithrows ServiceException;


Update the ProvidedServiceInstance. Update the existing ProvidedServiceInstance. For the referenced metadata Map in the ProvidedServiceInstance, it will not update it when it is null.

Parameters:
serviceInstance The ProvidedServiceInstance.
Throws:
com.cisco.oss.foundation.directory.exception.ServiceException
	public void updateService(ProvidedServiceInstance serviceInstancethrows ServiceException;

Unregister the ProvidedServiceInstance. Unregister the existing ProvidedServiceInstance in the directory server.

Parameters:
serviceName The name of the Service.
providerId The providerId of ProvidedServiceInstance.
Throws:
com.cisco.oss.foundation.directory.exception.ServiceException
	public void unregisterService(String serviceNameString providerIdthrows ServiceException;
New to GrepCode? Check out our FAQ X