Research Article
CloudConsumerism: A Consumer-Centric Ranking Model for Efficient Service Mapping in Cloud
Algorithm 1
Service mapping algorithm.
Input: Directory of CSPs and Consumers. | Output: Service mapping of CSPs and Consumers. | Begin | For all the available CSPs set flagCSP ←1. | IF CSPs ==1 && consumers ==1 THEN | bind consumer to CSP | flagCSP ←0. | END IF | IF CSPs >1 && consumers ==1 THEN | get the ranking score of the CSPs using TOPSIS; | sort the ranking score of CSPs and find top rank CSP; | map the consumer to CSP; | flagCSP ← 0; | END IF | IF CSPs ==1 && consumers > 1 THEN | get the ranking score of consumers using TOPSIS; | sort the ranking score of consumers and find top rank consumers; | map the consumer to CSP; | flagCSP ← 0; | END IF | IF CSPs >1 && consumers > 1 THEN | FOR each consumer DO | get the ranking score of CSPs using TOPSIS Method; | sort the ranking score of CSPs and find top rank CSP; | END FOR | FOR each CSP DO | get the list of competitive consumers; | END FOR | FOR each CSP DO | IF competitive consumers list is empty THEN | continue; | ELSE IF competitive consumers ==1 and flagCSP ==1 THEN | map the consumer to CSP; | flagCSP ← 0; | END IF | ELSE flagCSP ==1 THEN | get the score of competitive consumers using TOPSIS; | rank the consumers and get the top rank consumer; | map the consumer to CSP; | flagCSP ← 0; | END FOR | END IF | After completion of the service the flagCSP is set to 1; | End |
|