psdi.app.dpldasset.virtual

Class PromoteNodeSet

  • java.lang.Object
    • Field Detail

      • MSG_USETOTALSCUTOFF_TOTALCOUNT

        public static final int MSG_USETOTALSCUTOFF_TOTALCOUNT
        See Also:
        Constant Field Values
      • alreadyPromoted

        protected java.util.List alreadyPromoted
        alreadyPromoted lists the nodenames of nodes that were marked promoted when the records were fetched
      • alreadyLinked

        protected java.util.List alreadyLinked
        alreadyLinked lists the nodenames of nodes that were found in reconciliation links at the time the records were fetched
      • newlyPromoted

        protected java.util.List newlyPromoted
        newlyPromoted lists the nodenames of nodes that were successfully promoted
    • Constructor Detail

      • PromoteNodeSet

        public PromoteNodeSet(MboServerInterface ms)
                       throws MXException,
                              java.rmi.RemoteException
        Constructor
        Parameters:
        ms - MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getUserMessage

        public java.lang.String getUserMessage()
                                        throws java.rmi.RemoteException,
                                               MXException
        Gets the list of all warnings, nodes promoted, nodes already promoted, and nodes already linked. Writes the full list to the info-level logger. Returns the messages in a format for displaying to the user in the UI: if the number of processed itmes is small, then all are listed, otherwise just the totals are included.
        Specified by:
        getUserMessage in interface PromoteNodeSetRemote
        Returns:
        messages
        Throws:
        java.rmi.RemoteException
        MXException
      • getWarningsMsg

        protected java.lang.String getWarningsMsg()
                                           throws java.rmi.RemoteException
        Gets warnings in a list separated by line returns.
        Returns:
        a String containing any warnings.
        Throws:
        java.rmi.RemoteException
      • promoteToAssets

        public void promoteToAssets(PromoteValuesRemote promoteValues)
                             throws java.rmi.RemoteException,
                                    MXException
        Promote all the assets in the set (if not already promoted or linked). MXApplicationExceptions are added to the MboSet warnings.
        Specified by:
        promoteToAssets in interface PromoteNodeSetRemote
        Parameters:
        promoteValues - values to be used for all nodes in this MboSet
        Throws:
        anything - other than MXApplicationExceptions that occurs in the process
        java.rmi.RemoteException
        MXException
      • resetForRefreshOnSave

        public void resetForRefreshOnSave()
                                   throws MXException,
                                          java.rmi.RemoteException
        Description copied from class: MboSet
        Clears the current contents of the collection. All linked Mbos and MboSets are closed.
        Overrides:
        resetForRefreshOnSave in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • addResult

        public void addResult(PromoteNodeRemote node,
                              int status)
                       throws java.rmi.RemoteException,
                              MXException
        Record the nodename, status, and assetnum & siteid of promoted nodes for later reporting.
        Specified by:
        addResult in interface PromoteNodeSetRemote
        Parameters:
        status - one of the statuses listed in PromoteNodeRemote
        node - that has been promoted or evaluated for promotion
        Throws:
        java.rmi.RemoteException
        MXException
      • getOrderedNodeIdList

        public java.util.List getOrderedNodeIdList()
                                            throws java.rmi.RemoteException
        Specified by:
        getOrderedNodeIdList in interface PromoteNodeSetRemote
        Throws:
        java.rmi.RemoteException
      • getAlreadyPromoted

        public java.util.List getAlreadyPromoted()
                                          throws java.rmi.RemoteException
        Description copied from interface: PromoteNodeSetRemote
        Retrieve the list of the already promoted nodes
        Specified by:
        getAlreadyPromoted in interface PromoteNodeSetRemote
        Throws:
        java.rmi.RemoteException
      • getAlreadyLinked

        public java.util.List getAlreadyLinked()
                                        throws java.rmi.RemoteException
        Description copied from interface: PromoteNodeSetRemote
        Retrieve the list of the already recon linked (but nor promoted) nodes
        Specified by:
        getAlreadyLinked in interface PromoteNodeSetRemote
        Throws:
        java.rmi.RemoteException
      • getNewlyPromoted

        public java.util.List getNewlyPromoted()
                                        throws java.rmi.RemoteException
        Description copied from interface: PromoteNodeSetRemote
        Retrieve the list of the newly promoted nodes
        Specified by:
        getNewlyPromoted in interface PromoteNodeSetRemote
        Throws:
        java.rmi.RemoteException