Research Article

A Low Energy Consumption Storage Method for Cloud Video Surveillance Data Based on SLA Classification

Algorithm 1

Pseudocode of operation strategy.
      ⋯
()    Initial(); //system starts
()    for from 1 to do //: th class based on access time periods
()     chooseRandom();  //: number of users in each time period.
      end for
      ⋯
()     While() //main loop of CVS system
      
         ⋯
()        If(update) //information updated
         
()          if(current) //new user asks for current service
           
()           New VMs/Nodes added;
()           Validity Period recorded;
           
()         else if(! current) //new user does not ask for current service
          
()        for from 1 to do
()        (); //classify VMs and nodes based on updated information.
            end for
          
         
()     if(request) //task to access
()      if() //task is relevant to th class.
()       for from 1 to do
()        ; //: Nodes of th class.
           end for
          else
()       other nodes = sleep;
          end if
     end if
     ⋯