uk.ac.soton.itinnovation.grid.service.sla.bizfacade
Class SLAFacadeImpl
java.lang.Object
uk.ac.soton.itinnovation.grid.service.sla.bizfacade.SLAFacadeImpl
- All Implemented Interfaces:
- SLAFacade
public class SLAFacadeImpl
- extends Object
- implements SLAFacade
SLAFacadeImpl.java
|
Method Summary |
void |
checkUserHasSufficientFunds(TradeAccountConversation account,
SLAProposal proposal)
Check that the account has sufficient funds for the SLA. |
SLA |
createSLAFromTemplate(SLATemplate slat,
org.apache.axis.message.addressing.EndpointReferenceType account,
Calendar time,
String label)
|
ConstraintManager |
getConstraintManager()
|
PDP |
getPdp()
|
ResourcePoolDAO |
getResourcePoolDAO()
|
SlaDAO |
getSlaDAO()
|
SLATemplateDAO |
getSlatDAO()
|
SLA |
proposeSLA(SLAProposal proposal,
String label,
TradeAccountConversation account)
|
String |
protectSLAwithPBACandBill(SLA sla,
TradeAccountConversation account,
BigDecimal bill,
String currency,
MatchRule owner,
SubjectDescription currentUser)
|
void |
setConstraintManager(ConstraintManager cm)
|
void |
setPdp(PDP argPdp)
|
void |
setResourcePoolDAO(ResourcePoolDAO argResourcePoolDAO)
|
void |
setSlaDAO(SlaDAO argSlaDAO)
|
void |
setSlatDAO(SLATemplateDAO argSlatDAO)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLAFacadeImpl
public SLAFacadeImpl()
getResourcePoolDAO
public ResourcePoolDAO getResourcePoolDAO()
- Specified by:
getResourcePoolDAO in interface SLAFacade
setResourcePoolDAO
public void setResourcePoolDAO(ResourcePoolDAO argResourcePoolDAO)
- Specified by:
setResourcePoolDAO in interface SLAFacade
getSlaDAO
public SlaDAO getSlaDAO()
- Specified by:
getSlaDAO in interface SLAFacade
setSlaDAO
public void setSlaDAO(SlaDAO argSlaDAO)
- Specified by:
setSlaDAO in interface SLAFacade
getSlatDAO
public SLATemplateDAO getSlatDAO()
setSlatDAO
public void setSlatDAO(SLATemplateDAO argSlatDAO)
getPdp
public PDP getPdp()
- Specified by:
getPdp in interface SLAFacade
setPdp
public void setPdp(PDP argPdp)
- Specified by:
setPdp in interface SLAFacade
getConstraintManager
public ConstraintManager getConstraintManager()
- Specified by:
getConstraintManager in interface SLAFacade
setConstraintManager
public void setConstraintManager(ConstraintManager cm)
- Specified by:
setConstraintManager in interface SLAFacade
proposeSLA
public SLA proposeSLA(SLAProposal proposal,
String label,
TradeAccountConversation account)
throws GridFailureException
- Specified by:
proposeSLA in interface SLAFacade
- Throws:
GridFailureException
checkUserHasSufficientFunds
public void checkUserHasSufficientFunds(TradeAccountConversation account,
SLAProposal proposal)
throws RemoteException
- Check that the account has sufficient funds for the SLA. Part
of this is checking that the curency of the SLA is the same as
the account. Currently we only check that there are sufficient
funds for the signing fee - we should really calculate the
financial risk (the amount the user is likely to owe the
service provider prior to settlement) and check that.
- Specified by:
checkUserHasSufficientFunds in interface SLAFacade
- Throws:
RemoteException
createSLAFromTemplate
public SLA createSLAFromTemplate(SLATemplate slat,
org.apache.axis.message.addressing.EndpointReferenceType account,
Calendar time,
String label)
- Specified by:
createSLAFromTemplate in interface SLAFacade
protectSLAwithPBACandBill
public String protectSLAwithPBACandBill(SLA sla,
TradeAccountConversation account,
BigDecimal bill,
String currency,
MatchRule owner,
SubjectDescription currentUser)
throws RemoteException
- Specified by:
protectSLAwithPBACandBill in interface SLAFacade
- Throws:
RemoteException
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.