psdi.app.sla

Class SLACommitments

  • All Implemented Interfaces:
    java.rmi.Remote, SLACommitmentsRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class SLACommitments
    extends Mbo
    implements SLACommitmentsRemote
    MBO to represent a service level agreement commitment.

    See Service Level Agreement Package Description for details.

    The key attributes for this object are SLANUM, COMMITMENTID.

    The attributes in this object are as follows:

    Attribute NameDescription
    SLANUMIdentification number of the owner SLA
    COMMITMENTIDIdentification number of this commitment
    DESCRIPTIONShort description of this commitment
    DESCRIPTION_LONGDESCRIPTIONLong description of this commitment
    TYPEThe commitment type
    VALUEThe value of measurement
    UNITOFMEASUREThe unit of measurement
    TIMEPERIODThis is a measurement of days.
    • Constructor Detail

      • SLACommitments

        public SLACommitments(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Constructs the SLACommitments object.

        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a commitment. Set the slanum to that of the owner SLA.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Cannot delete this commitment if the owner SLA is active.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or not. If this field does not need to be copied return true. The following is a list of fields that are not copied from the source slacommitments to the target slacommitments.
        1. SLANUM
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True if the field does not need to be copied, otherwise return false.
        Throws:
        java.rmi.RemoteException
        MXException