Package pl.edu.icm.unity.engine.api
Interface EndpointManagement
public interface EndpointManagement
Management of endpoints
- Author:
- K. Benedyczak
-
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.base.endpoint.ResolvedEndpoint
deploy
(String typeId, String endpointName, String address, pl.edu.icm.unity.base.endpoint.EndpointConfiguration configuration) Deploys a new instance of an endpoint of id type, at address location.List<pl.edu.icm.unity.base.endpoint.ResolvedEndpoint>
pl.edu.icm.unity.base.endpoint.Endpoint
getEndpoint
(String name) List<pl.edu.icm.unity.base.endpoint.Endpoint>
List<pl.edu.icm.unity.base.endpoint.EndpointTypeDescription>
void
removeEndpoint
(String id) Removes endpoint with given namevoid
Removes a deployed endpointvoid
updateEndpoint
(String id, pl.edu.icm.unity.base.endpoint.EndpointConfiguration configuration) Updates a deployed endpoint configuration
-
Method Details
-
getEndpointTypes
List<pl.edu.icm.unity.base.endpoint.EndpointTypeDescription> getEndpointTypes() throws pl.edu.icm.unity.base.exceptions.EngineException- Returns:
- available endpoint types
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getDeployedEndpoints
List<pl.edu.icm.unity.base.endpoint.ResolvedEndpoint> getDeployedEndpoints() throws pl.edu.icm.unity.base.exceptions.EngineException- Returns:
- list of deployed endpoints
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
deploy
pl.edu.icm.unity.base.endpoint.ResolvedEndpoint deploy(String typeId, String endpointName, String address, pl.edu.icm.unity.base.endpoint.EndpointConfiguration configuration) throws pl.edu.icm.unity.base.exceptions.EngineException Deploys a new instance of an endpoint of id type, at address location. Address is a path in web app context for the servlet endpoints.- Parameters:
typeId
-endpointName
- identifier to be given to the endpointaddress
-configuration
-- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
undeploy
Removes a deployed endpoint- Parameters:
id
- endpoint instance id.- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
updateEndpoint
void updateEndpoint(String id, pl.edu.icm.unity.base.endpoint.EndpointConfiguration configuration) throws pl.edu.icm.unity.base.exceptions.EngineException Updates a deployed endpoint configuration- Parameters:
id
- mandatory id of a deployed endpointconfiguration
- updated configuration, can have null elements to leave the existing values unchanged.- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getEndpoints
- Returns:
- all endpoints from db
- Throws:
AuthorizationException
-
removeEndpoint
Removes endpoint with given name- Parameters:
id
- mandatory id of removed endpoint- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getEndpoint
- Parameters:
name
- endpoint name- Returns:
- Throws:
AuthorizationException
-
getDeployedEndpointInstances
- Returns:
- list of deployed endpoints
- Throws:
AuthorizationException
-