Class NetworkUpdate


  • public class NetworkUpdate
    extends java.lang.Object
    A NetworkUpdate object contains network update information.
    Since:
    11gR1
    • Constructor Detail

      • NetworkUpdate

        public NetworkUpdate()
    • Method Detail

      • getUpdatedPartitionIds

        public int[] getUpdatedPartitionIds()
        Returns the IDs of all the updated partitions.
        Returns:
        partition IDs
      • getPartitionUpdate

        public PartitionUpdate getPartitionUpdate​(int partitionId)
        Returns the update information of the specified partition.
        Parameters:
        partitionId - partition ID
        Returns:
        partition update information
      • setPartitionUpdate

        public void setPartitionUpdate​(int partitionId,
                                       PartitionUpdate partitionUpdate)
        Sets the update information for the specified partition.
        Parameters:
        partitionId - partition ID
        partitionUpdate - partition update information
      • updateNode

        public void updateNode​(LogicalNode node,
                               int enclosingPartitionId,
                               int nodePartitionId)
        Adds or updates a node in the network.
        Parameters:
        node - node to be updated
        enclosingPartitionId - the network partition to update the node in. Note that, when the node is an external node in the enclosing partition, the enclosing partition ID is different from the partition ID the node is assigned to.
        nodePartitionId - the partition ID the node is assigned to
      • deleteNode

        public void deleteNode​(long nodeId,
                               int enclosingPartitionId)
        Delete a node from the network.
        Parameters:
        nodeId - ID of the node to be deleted
        enclosingPartitionId - the network partition to delete the node from. Note that, when the node is an external node in the enclosing partition, the enclosing partition ID is different from the partition ID the node is assigned to.
      • deleteNode

        public void deleteNode​(long nodeId)
        Deletes a node from the network
        Parameters:
        nodeId - ID of the node to be deleted
      • updateLink

        public void updateLink​(LogicalLink link,
                               int enclosingPartitionId)
        Adds or updates a link in the network
        Parameters:
        link - link to be updated
        enclosingPartitionId - the network partition to update the link in
      • deleteLink

        public void deleteLink​(long linkId,
                               int enclosingPartitionId)
        Deletes a link from the network
        Parameters:
        linkId - ID of the link to be deleted
        enclosingPartitionId - the network partition to delete the link from
      • deleteLink

        public void deleteLink​(long linkId)
        Deletes a link from the network
        Parameters:
        linkId - ID of the link to be deleted
      • getNodePartitionId

        public int getNodePartitionId​(long nodeId)
        Returns the partition ID the node is assigned to.
        Parameters:
        nodeId - node ID
        Returns:
        ID of the partition the node is assigned to
      • getNode

        public LogicalNode getNode​(long nodeId)
      • getLink

        public LogicalLink getLink​(long linkId)
      • getDeletedNodeIds

        public long[] getDeletedNodeIds()
      • getDeletedLinkIds

        public long[] getDeletedLinkIds()
      • isLinkDeleted

        public boolean isLinkDeleted​(long linkId)
      • isNodeDeleted

        public boolean isNodeDeleted​(long nodeId)