psdi.dm.virtual

Class DMStrucSet

    • Constructor Detail

      • DMStrucSet

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

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Description copied from class: MboSet
        Factory to create the business objects This must be overridden in derived class
        Specified by:
        getMboInstance in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • add

        public MboRemote add(long uniqueId,
                             java.lang.String nodeDesc,
                             java.lang.String relationship)
                      throws MXException,
                             java.rmi.RemoteException
        Add a new node to the tree.
        Parameters:
        uniqueId - Unique id of the node in tree.
        nodeDesc - Node description.
        relationship - Relationship to get children for this node.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getAllHierarchies

        public MboValueData[][] getAllHierarchies(java.lang.String object,
                                                  java.lang.String key,
                                                  java.lang.String[] attrs,
                                                  int maxRows)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Description copied from interface: HierarchicalMboSetRemote
        Returns all hierarchies for the object, this is mainly used in the case of locations.
        Specified by:
        getAllHierarchies in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        HierarchicalMboSetRemote.getAllHierarchies(java.lang.String, java.lang.String, java.lang.String[], int)
      • getChildren

        public MboValueData[][] getChildren(java.lang.String object,
                                            java.lang.String key,
                                            java.lang.String[] attrs,
                                            int maxRows)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: HierarchicalMboSetRemote
        Returns zero or more children objects in the hierarchy.
        Specified by:
        getChildren in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        HierarchicalMboSetRemote.getChildren(java.lang.String, java.lang.String, java.lang.String[], int)
      • getParent

        public MboValueData[] getParent(java.lang.String object,
                                        java.lang.String key,
                                        java.lang.String[] attrs)
                                 throws MXException,
                                        java.rmi.RemoteException
        Description copied from interface: HierarchicalMboSetRemote
        Returns zero or one parent object for the given object in the hierarchy. This method returns the immediate parent object of the given object.
        Specified by:
        getParent in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        Returns:
        MboValueData[] - contains Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        HierarchicalMboSetRemote.getParent(java.lang.String, java.lang.String, java.lang.String[])
      • getPathToTop

        public MboValueData[][] getPathToTop(java.lang.String object,
                                             java.lang.String key,
                                             java.lang.String[] attrs,
                                             int maxRows)
                                      throws MXException,
                                             java.rmi.RemoteException
        Description copied from interface: HierarchicalMboSetRemote
        Returns all objects in the path to the top from the current object, i.e. every parent of the object in a sequence.
        Specified by:
        getPathToTop in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        HierarchicalMboSetRemote.getPathToTop(java.lang.String, java.lang.String, java.lang.String[], int)
      • getSiblings

        public MboValueData[][] getSiblings(java.lang.String object,
                                            java.lang.String key,
                                            java.lang.String[] attrs,
                                            int maxRows)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: HierarchicalMboSetRemote
        Returns zero or more siblings of the given object in the hierarchy.
        Specified by:
        getSiblings in interface HierarchicalMboSetRemote
        Parameters:
        object - - name of the object whose children are being requested.
        key - - unique id of the object whose children are being fetched.
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        HierarchicalMboSetRemote.getSiblings(java.lang.String, java.lang.String, java.lang.String[], int)
      • getTop

        public MboValueData[][] getTop(java.lang.String[] attrs,
                                       int maxRows)
                                throws MXException,
                                       java.rmi.RemoteException
        Get the top level node
        Specified by:
        getTop in interface HierarchicalMboSetRemote
        Parameters:
        attrs - - list of attributes whose values are requested, the attribute data returned in the attribute list correspond to this list.
        maxRows - - maximum number of rows to return.
        Returns:
        MboValueData[][] - contains an array of Object name, Object key, hasChildren flag, hasParents flag, list of attributes data from the passed attributes list.
        Throws:
        MXException
        java.rmi.RemoteException
      • getRelatedMbo

        public MboRemote getRelatedMbo(long uniqueId)
                                throws MXException,
                                       java.rmi.RemoteException
        Given the key of the tree node, return the mbo object associatd with the node.
        Parameters:
        key -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException