|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.client.helpers.BillingHelper
public class BillingHelper
| Constructor Summary | |
|---|---|
BillingHelper(StateRepository repository)
Create a new BillingHelper. |
|
| Method Summary | |
|---|---|
static SOAPHeaderElement[] |
createBillingHeaders(org.apache.axis.message.addressing.EndpointReferenceType info)
Create the SOAP headers to hold the billing information, if any. |
org.apache.axis.message.addressing.EndpointReferenceType |
getBillingHeader(org.apache.axis.message.addressing.EndpointReferenceType[] possibleServices,
StorableInStateRepository service)
Find an account or SLA that meets the service's requirements. |
org.apache.axis.message.addressing.EndpointReferenceType |
getBillingHeader(ManagedGridService service)
Find an account or SLA that meets the service's requirements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BillingHelper(StateRepository repository)
repository - the repository to search for client accounts, trade accounts and SLAs.| Method Detail |
|---|
public org.apache.axis.message.addressing.EndpointReferenceType getBillingHeader(ManagedGridService service)
throws RemoteException,
NoSuitableAccountException
getBillingHeader(EndpointReferenceType[], StorableInStateRepository) which
first queries the service to find out what it needs.
service - the service to be used
NoSuitableAccountException - if no suitable resource is available
RemoteException - if we tried to contact a local management service for help and it failed in some way
public org.apache.axis.message.addressing.EndpointReferenceType getBillingHeader(org.apache.axis.message.addressing.EndpointReferenceType[] possibleServices,
StorableInStateRepository service)
throws RemoteException,
NoSuitableAccountException
This will contact the a client management service for an EPR if available, or will choose one from the local repository otherwise.
NoSuitableAccountException - if no suitable resource is available
RemoteException - if we tried to contact a local management service for help and it failed in some waypublic static SOAPHeaderElement[] createBillingHeaders(org.apache.axis.message.addressing.EndpointReferenceType info)
info - EPR of a management resource (trade account or SLA), or null if none is required
createBillingHeader(org.apache.axis.message.addressing.EndpointReferenceType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||