Interface IComponentService
-
- All Known Subinterfaces:
IBasicManagementService
,IManagementService
public interface IComponentService
The Interface IComponentService.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentId
addPdp(PdpComponentInformation component)
Adds a pdp.ComponentId
addPep(PepComponentInformation component)
Adds a pep.ComponentId
addPip(PipComponentInformation component)
Adds a pip.ComponentId
addPxp(PxpComponentInformation component)
Adds a pxp.void
deletePep(ComponentId componentId)
Delete a pep component from the databasevoid
deletePip(ComponentId componentId)
Delete a pip component from the databasevoid
deletePxp(ComponentId componentId)
Delete a pxp component from the databaseMap<ComponentId,HealthStatus>
getAllComponentStates(SolutionId solutionId)
Gets the all component states.PdpComponentInformation
getPdp()
Returns the registered PDP.PepComponentInformation
getPep(ComponentId id)
Lookup PEP byComponentId
.PipComponentInformation
getPip(ComponentId id)
Lookup PIP byComponentId
.HealthStatus
getPipState(ComponentId componentId)
Get the pip component statePxpComponentInformation
getPxp(ComponentId id)
Lookup PXP byComponentId
.HealthStatus
getPxpState(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.boolean
pdpExists(ComponentId componentId)
pdp component existsboolean
pepExists(ComponentId componentId)
Pep component existsboolean
pipExists(ComponentId componentId)
Pip component existsboolean
pxpExists(ComponentId componentId)
Pxp component existsComponentId
updatePdp(PdpComponentInformation component)
Adds a pdp.ComponentId
updatePep(PepComponentInformation component)
Adds a pep.ComponentId
updatePip(PipComponentInformation component)
Adds a pip.ComponentId
updatePxp(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:
IOException
InvalidEntityException
- 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:
IOException
InvalidEntityException
- 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:
IOException
InvalidEntityException
- 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:
IOException
InvalidEntityException
- 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 / availableMethodInterfaceDescription
s 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 / availableMethodInterfaceDescription
s 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:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
- 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:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deletePxp
void deletePxp(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException
Delete a pxp component from the database- Parameters:
componentId
-- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
-