Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

com.bea.wlcp.wlng.api.sla
Class CustomSlaManager

java.lang.Object
  extended bycom.bea.wlcp.wlng.api.sla.CustomSlaManager

public abstract class CustomSlaManager
extends java.lang.Object


Constructor Summary
CustomSlaManager()
           
 
Method Summary
abstract  org.w3c.dom.Document getApplicationGroupCustomSla(java.lang.String slaType)
          Returns the Application Group SLA of a custom type.
abstract  java.lang.Object getApplicationGroupCustomSla(java.lang.String slaType, java.lang.String parserId)
          Returns the Application Group SLA of a custom type.
abstract  org.w3c.dom.Document getGlobalCustomSla(java.lang.String slaType)
          Returns the Global SLA of a custom type.
abstract  java.lang.Object getGlobalCustomSla(java.lang.String slaType, java.lang.String parserId)
          Returns the Global SLA of a custom type.
static CustomSlaManager getInstance()
           
abstract  org.w3c.dom.Document getServiceProviderGroupCustomSla(java.lang.String slaType)
          Returns the Service Provider Group SLA of a custom type.
abstract  java.lang.Object getServiceProviderGroupCustomSla(java.lang.String slaType, java.lang.String parserId)
          Returns the Service Provider Group SLA of a custom type.
abstract  void registerSlaParserCallback(java.lang.String slaType, java.lang.String parserId, SlaParserCallback parser)
          Register a custom parser callback for the specific agreement GroupType.
abstract  void unregisterSlaParserCallback(java.lang.String slaType, java.lang.String parserId)
          Register a custom parser callback for the specific agreement GroupType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomSlaManager

public CustomSlaManager()
Method Detail

getApplicationGroupCustomSla

public abstract org.w3c.dom.Document getApplicationGroupCustomSla(java.lang.String slaType)
                                                           throws ManagementException,
                                                                  InputManagementException
Returns the Application Group SLA of a custom type.

Parameters:
slaType - the name of the custom SLA to retrieve.
Returns:
a XML Document with the custom Application Group for the request context, null if there is no SLA.
Throws:
InputManagementException - if slaType has the same name as a system SLA.
ManagementException - validation of service level agreement failed or if an error getting the Application Group occurred.

Note: The return value is read/write. Changes to this object will affect the value of the object for other instances accessing it.


getApplicationGroupCustomSla

public abstract java.lang.Object getApplicationGroupCustomSla(java.lang.String slaType,
                                                              java.lang.String parserId)
                                                       throws ManagementException,
                                                              InputManagementException
Returns the Application Group SLA of a custom type.

Parameters:
slaType - The name of the custom SLA to retrieve.
parserId - The id of the parser to register, it should be a unique ID for the type on the whole cluster.
Returns:
The SLA after being processed for the SlaParserCallback, null if there is no SLA.
Throws:
InputManagementException - if slaType has the same name as a system SLA.
ManagementException - validation of service level agreement failed or if an error getting the Application Group occurred.

Note: The return value is read/write. Changes to this object will affect the value of the object for other instances accessing it.


getGlobalCustomSla

public abstract org.w3c.dom.Document getGlobalCustomSla(java.lang.String slaType)
                                                 throws ManagementException,
                                                        InputManagementException
Returns the Global SLA of a custom type.

Parameters:
slaType - the name of the custom SLA to retrieve.
Returns:
a XML Document with the custom Global for the request context, null if there is no SLA.
Throws:
InputManagementException - if slaType has the same name as a system SLA.
ManagementException - validation of service level agreement failed.

Note: The return value is read/write. Changes to this object will affect the value of the object for other instances accessing it.


getGlobalCustomSla

public abstract java.lang.Object getGlobalCustomSla(java.lang.String slaType,
                                                    java.lang.String parserId)
                                             throws ManagementException,
                                                    InputManagementException
Returns the Global SLA of a custom type.

Parameters:
slaType - The name of the custom SLA to retrieve
parserId - The id of the parser to register, it should be unique ID for the type on the whole cluster
Returns:
The SLA after being processed for the SlaParserCallback, null if there is no SLA.
Throws:
InputManagementException - If slaType has the same name as a system SLA.
ManagementException - Validation of service level agreement failed.

Note: The return value is read/write. Changes to this object will affect the value of the object for other instances accessing it.


getInstance

public static CustomSlaManager getInstance()

getServiceProviderGroupCustomSla

public abstract org.w3c.dom.Document getServiceProviderGroupCustomSla(java.lang.String slaType)
                                                               throws ManagementException,
                                                                      InputManagementException
Returns the Service Provider Group SLA of a custom type.

Parameters:
slaType - the name of the custom SLA to retrieve.
Returns:
a XML Document with the custom Service Provider for the request context, null if there is no SLA.
Throws:
InputManagementException - if slaType has the same name as a system SLA.
ManagementException - validation of service level agreement failed or if an error getting the Application Group occurred.

Note: The return value is read/write. Changes to this object will affect the value of the object for other instances accessing it.


getServiceProviderGroupCustomSla

public abstract java.lang.Object getServiceProviderGroupCustomSla(java.lang.String slaType,
                                                                  java.lang.String parserId)
                                                           throws ManagementException,
                                                                  InputManagementException
Returns the Service Provider Group SLA of a custom type.

Parameters:
slaType - The name of the custom SLA to retrieve.
parserId - The ID of the parser to register, it should be unique ID for the type on the whole cluster.
Returns:
The SLA after being processed for the SlaParserCallback, null if there is no SLA.
Throws:
InputManagementException - If slaType has the same name as a system SLA.
ManagementException - Validation of service level agreement failed or if an error getting the Application Group occurred.

Note: The return value is read/write. Changes to this object will affect the value of the object for other instances accessing it.


registerSlaParserCallback

public abstract void registerSlaParserCallback(java.lang.String slaType,
                                               java.lang.String parserId,
                                               SlaParserCallback parser)
                                        throws ManagementException,
                                               InputManagementException
Register a custom parser callback for the specific agreement GroupType.

This function provides an efficient mechanism to cache the SLA to a more convenient representation for all requests instead performing the transformation on every request.

Parameters:
slaType - The name of the custom SLA to set the callback.
parserId - The id of the parser to register, it should be unique ID for the type on the whole cluster.
parser - The callback parser to process the SLA.
Throws:
InputManagementException - if slaType has the same name as a system SLA.
ManagementException - when an exception parsing the existing SLA occurs.

unregisterSlaParserCallback

public abstract void unregisterSlaParserCallback(java.lang.String slaType,
                                                 java.lang.String parserId)
                                          throws InputManagementException
Register a custom parser callback for the specific agreement GroupType.

Parameters:
slaType - The name of the custom SLA to remove the callback.
parserId - The ID of the parser to register, it should be unique ID for the type on the whole cluster.
Throws:
InputManagementException - if slaType has the same name as a system SLA.

Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

Copyright © 2008, 2018, Oracle and/or its affiliates. All rights reserved.