|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.governance.api.sla.SLAManager
public class SLAManager
This provides the management functionality for sla artifacts stored on the registry.
| Constructor Summary | |
|---|---|
SLAManager(Registry registry)
Constructor accepting an instance of the registry to use. |
|
| Method Summary | |
|---|---|
void |
addSLA(SLA sla)
Adds the given sla artifact to the registry. |
SLA[] |
findSLA(SLAFilter criteria)
Finds all sla artifacts matching the given filter criteria. |
SLA[] |
getAllSLA()
Finds all sla artifacts on the registry. |
String[] |
getAllSLAIds()
Finds all identifiers of the sla artifacts on the registry. |
SLA |
getSLA(String slaId)
Fetches the given sla artifact on the registry. |
SLA |
newSLA(org.apache.axiom.om.OMElement content)
Creates a new sla artifact from the given content. |
SLA |
newSLA(QName qName)
Creates a new sla artifact from the given qualified name. |
void |
removeSLA(String slaId)
Removes the given sla artifact from the registry. |
protected void |
setContent(SLA sla,
Resource slaResource)
Sets content of the given sla artifact to the given resource on the registry. |
void |
updateSLA(SLA sla)
Updates the given sla artifact on the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SLAManager(Registry registry)
registry - the instance of the registry.| Method Detail |
|---|
public SLA newSLA(QName qName)
throws GovernanceException
qName - the qualified name of this sla.
GovernanceException - if the operation failed.
public SLA newSLA(org.apache.axiom.om.OMElement content)
throws GovernanceException
content - the sla content.
GovernanceException - if the operation failed.
public void addSLA(SLA sla)
throws GovernanceException
sla - the sla artifact.
GovernanceException - if the operation failed.
public void updateSLA(SLA sla)
throws GovernanceException
sla - the sla artifact.
GovernanceException - if the operation failed.
public SLA getSLA(String slaId)
throws GovernanceException
slaId - the identifier of the sla artifact.
GovernanceException - if the operation failed.
public void removeSLA(String slaId)
throws GovernanceException
slaId - the identifier of the sla artifact.
GovernanceException - if the operation failed.
protected void setContent(SLA sla,
Resource slaResource)
throws GovernanceException
sla - the sla artifact.slaResource - the content resource.
GovernanceException - if the operation failed.
public SLA[] findSLA(SLAFilter criteria)
throws GovernanceException
criteria - the filter criteria to be matched.
GovernanceException - if the operation failed.
public SLA[] getAllSLA()
throws GovernanceException
GovernanceException - if the operation failed.
public String[] getAllSLAIds()
throws GovernanceException
GovernanceException - if the operation failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||