Interface IComponentService
-
- All Known Subinterfaces:
IBasicManagementService,IManagementService
public interface IComponentServiceThe Interface IComponentService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentIdaddPdp(PdpComponentInformation component)Adds a pdp.ComponentIdaddPep(PepComponentInformation component)Adds a pep.ComponentIdaddPip(PipComponentInformation component)Adds a pip.ComponentIdaddPxp(PxpComponentInformation component)Adds a pxp.voiddeletePep(ComponentId componentId)Delete a pep component from the databasevoiddeletePip(ComponentId componentId)Delete a pip component from the databasevoiddeletePxp(ComponentId componentId)Delete a pxp component from the databaseMap<ComponentId,HealthStatus>getAllComponentStates(SolutionId solutionId)Gets the all component states.PdpComponentInformationgetPdp()Returns the registered PDP.PepComponentInformationgetPep(ComponentId id)Lookup PEP byComponentId.PipComponentInformationgetPip(ComponentId id)Lookup PIP byComponentId.HealthStatusgetPipState(ComponentId componentId)Get the pip component statePxpComponentInformationgetPxp(ComponentId id)Lookup PXP byComponentId.HealthStatusgetPxpState(ComponentId componentId)Get the pxp component stateSet<PepComponentInformation>lookupPep(SolutionId solutionId)Lookup all PEPs of a certain solution.Set<PipComponentInformation>lookupPip(SolutionId solutionId, MethodInterfaceDescription query)Lookup all PIPs of a certain solution.Set<PxpComponentInformation>lookupPxp(SolutionId solutionId, MethodInterfaceDescription query)Lookup all PXPs of a certain solution.booleanpdpExists(ComponentId componentId)pdp component existsbooleanpepExists(ComponentId componentId)Pep component existsbooleanpipExists(ComponentId componentId)Pip component existsbooleanpxpExists(ComponentId componentId)Pxp component existsComponentIdupdatePdp(PdpComponentInformation component)Adds a pdp.ComponentIdupdatePep(PepComponentInformation component)Adds a pep.ComponentIdupdatePip(PipComponentInformation component)Adds a pip.ComponentIdupdatePxp(PxpComponentInformation component)Adds a pxp.
-
-
-
Method Detail
-
addPdp
ComponentId addPdp(PdpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException
Adds a pdp.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureConflictingResourceException- if there is already a pdp componentResourceUpdateException- if the pdp component could not be registeredInvalidEntityException- if the pdp component is not validNoSuchEntityException
-
addPep
ComponentId addPep(PepComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException
Adds a pep.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureConflictingResourceException- if there is already a pep component with the id givenResourceUpdateException- the resource update exceptionInvalidEntityException- if the pep component is not validNoSuchEntityException
-
addPip
ComponentId addPip(PipComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException
Adds a pip.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureConflictingResourceException- if there is already a pip component with the id givenResourceUpdateException- the resource update exceptionInvalidEntityException- if the pip component is not validNoSuchEntityException
-
addPxp
ComponentId addPxp(PxpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException
Adds a pxp.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureConflictingResourceException- if there is already a pxp component with the id givenResourceUpdateException- the resource update exceptionInvalidEntityException- if the pxp component is not validNoSuchEntityException
-
pdpExists
boolean pdpExists(ComponentId componentId) throws IOException, InvalidEntityException
pdp component exists- Parameters:
componentId-- Returns:
- true if the pdp exists, false otherwise
- Throws:
IOExceptionInvalidEntityException- if the component id is not valid
-
pepExists
boolean pepExists(ComponentId componentId) throws IOException, InvalidEntityException
Pep component exists- Parameters:
componentId-- Returns:
- true if the pep exists, false otherwise
- Throws:
IOExceptionInvalidEntityException- if the component id is not valid
-
pipExists
boolean pipExists(ComponentId componentId) throws IOException, InvalidEntityException
Pip component exists- Parameters:
componentId-- Returns:
- true if the pip exists, false otherwise
- Throws:
IOExceptionInvalidEntityException- if the component id is not valid
-
pxpExists
boolean pxpExists(ComponentId componentId) throws IOException, InvalidEntityException
Pxp component exists- Parameters:
componentId-- Returns:
- true if the pxp exists, false otherwise
- Throws:
IOExceptionInvalidEntityException- if the component id is not valid
-
getPdp
PdpComponentInformation getPdp() throws IOException, NoSuchEntityException
Returns the registered PDP.- Returns:
- the PDP
- Throws:
IOException- communication failureNoSuchEntityException- the no such element exception
-
getPep
PepComponentInformation getPep(ComponentId id) throws IOException, InvalidEntityException, NoSuchEntityException
Lookup PEP byComponentId.- Parameters:
id- the id- Returns:
- the component
- Throws:
IOException- communication failureNoSuchEntityException- if no pep component with the id given existsInvalidEntityException- if the component id is not valid
-
getPip
PipComponentInformation getPip(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException
Lookup PIP byComponentId.- Parameters:
id- the id- Returns:
- the component
- Throws:
IOException- communication failureNoSuchEntityException- if no pip component with the id given existsInvalidEntityException- if the component id is not valid
-
getPxp
PxpComponentInformation getPxp(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException
Lookup PXP byComponentId.- Parameters:
id- the id- Returns:
- the component
- Throws:
IOException- communication failureNoSuchEntityException- if no pxp component with the id given existsInvalidEntityException- if the component id is not valid
-
getPipState
HealthStatus getPipState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException
Get the pip component state- Parameters:
componentId-- Returns:
- HealthStatus of the PIP
- Throws:
IOException- Signals that an I/O exception has occurred.NoSuchEntityException- if there is no pip component with the id givenInvalidEntityException- if the component id is not valid
-
getPxpState
HealthStatus getPxpState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException
Get the pxp component state- Parameters:
componentId-- Returns:
- HealthStatus of the PXP
- Throws:
IOException- Signals that an I/O exception has occurred.NoSuchEntityException- if there is no pxp component with the id givenInvalidEntityException- if the component id is not valid
-
getAllComponentStates
Map<ComponentId,HealthStatus> getAllComponentStates(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException
Gets the all component states.- Parameters:
solutionId- the solution id- Returns:
- the all component states
- Throws:
IOException- Signals that an I/O exception has occurred.InvalidEntityException- the invalid entity exceptionNoSuchEntityException
-
lookupPep
Set<PepComponentInformation> lookupPep(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException
Lookup all PEPs of a certain solution.- Parameters:
solutionId- the solutionId- Returns:
- the list of Peps
- Throws:
IOException- communication failureInvalidEntityException- the invalid entity exceptionNoSuchEntityException
-
lookupPip
Set<PipComponentInformation> lookupPip(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException
Lookup all PIPs of a certain solution.- Parameters:
solutionId- the solutionIdquery- the required / availableMethodInterfaceDescriptions to match against; null to return all- Returns:
- the list of Pips
- Throws:
IOException- communication failureInvalidEntityException- the invalid entity exceptionNoSuchEntityException
-
lookupPxp
Set<PxpComponentInformation> lookupPxp(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException
Lookup all PXPs of a certain solution.- Parameters:
solutionId- the solutionIdquery- the required / availableMethodInterfaceDescriptions to match against; null to return all- Returns:
- the list of Pxps
- Throws:
IOException- communication failureInvalidEntityException- the invalid entity exceptionNoSuchEntityException
-
updatePdp
ComponentId updatePdp(PdpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Adds a pdp.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureNoSuchEntityException- the no such element exceptionResourceUpdateException- the resource update exceptionInvalidEntityException- the invalid entity exception
-
updatePep
ComponentId updatePep(PepComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Adds a pep.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureNoSuchEntityException- the no such element exceptionResourceUpdateException- the resource update exceptionInvalidEntityException- the invalid entity exception
-
updatePip
ComponentId updatePip(PipComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Adds a pip.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureNoSuchEntityException- the no such element exceptionResourceUpdateException- the resource update exceptionInvalidEntityException- the invalid entity exception
-
updatePxp
ComponentId updatePxp(PxpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Adds a pxp.- Parameters:
component- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException- communication failureNoSuchEntityException- the no such element exceptionResourceUpdateException- the resource update exceptionInvalidEntityException- the invalid entity exception
-
deletePep
void deletePep(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Delete a pep component from the database- Parameters:
componentId-- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException- if the component id is not valid
-
deletePip
void deletePip(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Delete a pip component from the database- Parameters:
componentId-- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deletePxp
void deletePxp(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Delete a pxp component from the database- Parameters:
componentId-- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
-