org.dasein.cloud.services.accounting
Interface AccountingServices


public interface AccountingServices

Provides interaction with the pricing and billing mechanics for the cloud. An application can leverage this service to determine pricing for components it is managing.

Last modified $Date$

Version:
$Revision$
Author:
George Reese

Method Summary
 double getDataFee(DataFeeType type, long amountInBytes)
           
 double getMinimumMonthlyFee()
           
 Offering getOffering(String offeringId)
           
 Prepayment getPrepayment(String prepaymentId)
           
 String getProviderTermForOffering(Locale locale)
           
 String getProviderTermForPrepayment(Locale locale)
           
 double getUsageFee(Platform platform, String size, String software)
           
 Collection<Offering> listOfferings()
           
 Collection<Prepayment> listPrepayments()
           
 String prepay(String offeringId, int count)
           
 

Method Detail

getDataFee

double getDataFee(DataFeeType type,
                  long amountInBytes)
                  throws InternalException,
                         CloudException
Throws:
InternalException
CloudException

getMinimumMonthlyFee

double getMinimumMonthlyFee()
                            throws InternalException,
                                   CloudException
Throws:
InternalException
CloudException

getOffering

Offering getOffering(String offeringId)
                     throws InternalException,
                            CloudException
Throws:
InternalException
CloudException

getPrepayment

Prepayment getPrepayment(String prepaymentId)
                         throws InternalException,
                                CloudException
Throws:
InternalException
CloudException

getProviderTermForOffering

String getProviderTermForOffering(Locale locale)

getProviderTermForPrepayment

String getProviderTermForPrepayment(Locale locale)

getUsageFee

double getUsageFee(Platform platform,
                   String size,
                   String software)
                   throws InternalException,
                          CloudException
Throws:
InternalException
CloudException

listOfferings

Collection<Offering> listOfferings()
                                   throws InternalException,
                                          CloudException
Throws:
InternalException
CloudException

listPrepayments

Collection<Prepayment> listPrepayments()
                                       throws InternalException,
                                              CloudException
Throws:
InternalException
CloudException

prepay

String prepay(String offeringId,
              int count)
              throws InternalException,
                     CloudException
Throws:
InternalException
CloudException