|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
uk.ac.soton.itinnovation.grid.service.sla.SLAServiceImpl
public class SLAServiceImpl
| Field Summary | |
|---|---|
static String |
SLA_GROUP_SERVICE_ADMINS
|
static String |
SLA_MANAGED_SERVICES
A group name for the group of services that are trusted by the SLA manager to call startActivity(...), continueActivity(...) etc. |
static String |
SLA_RESOURCE_TYPE
|
static String |
SLA_SERVICE_RESOURCE_TYPE
|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
management, NO_ACCOUNT_NEEDED, pdp, thisServiceAddress |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.wstrust.WSTrust |
|---|
DEFAULT_WSTRUST_ISSUER, requestSecurityToken, VALIDATE_SUBJECT_DESCRIPTION, WSTRUST_REQUEST_TYPE_ISSUANCE, WSTRUST_REQUEST_TYPE_VALIDATION, WSTRUST_SAML_1_1, WSTRUST_STATUS, WSTRUST_STATUS_INVALID, WSTRUST_STATUS_VALID, XMLNS_WSTRUST, XMLNS_WSU |
| Constructor Summary | |
|---|---|
SLAServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addOwnerRule(MatchRule rule)
Deprecated. |
void |
addUserRule(MatchRule rule)
Deprecated. |
boolean |
checkUser(SubjectDescription user)
Test whether this user has the 'user' role. |
void |
closeSLA()
Close an SLA |
void |
closeSLAInternal(String resourceID)
|
void |
closeSLALocal(String slaID)
|
void |
continueActivity(org.apache.axis.message.addressing.EndpointReferenceType activityEPR,
Constraint[] cons)
Checks that a change in an activity should be permitted. |
org.apache.axis.message.addressing.EndpointReferenceType |
createSLA(SLAProposal terms,
String label,
MatchRule owner)
Create a new agreement. |
String |
createSLALocal(MatchRule owner,
String label,
SLAProposal terms,
Conversation managingConversation)
|
org.apache.axis.message.addressing.EndpointReferenceType |
createSLATemplate(Document doc,
MatchRule owner)
Create a new SLA Template. |
String |
createSLATemplateFromDoc(Document xmlDoc,
MatchRule owner)
|
void |
deleteSLATemplate()
|
void |
deleteSLATemplate(String resourceID)
|
void |
destroy()
|
void |
disablePolling()
Used by unit tests. |
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
void |
ensureSingleResourcePoolExists()
|
void |
finishActivityInternal(String activityID)
|
void |
finishServiceInternal(String endpoint)
|
void |
forceCloseSLAInternal(String slaID)
|
void |
forceCloseSLALocal(String slaID)
|
TradeAccountConversation |
getAccount(org.apache.axis.message.addressing.EndpointReferenceType epr)
|
Activity |
getActivity(String activityID)
|
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Return notices from the service as an Atom feed. |
org.apache.axis.message.addressing.EndpointReferenceType |
getEPR(String conversationID)
We have to override the GridServiceLite method here because it assumes that GridResources have the conversationID (String) as their primary key in the DB. |
MatchRule[] |
getOwnerRules()
Deprecated. |
ResourcePool |
getResourcePool()
|
ResourcePool |
getResourcePool(org.hibernate.Session session)
|
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources managed by this service for which the caller has some role. |
protected Class<? extends GridResource> |
getResourceType(String resourceID)
Return the class of this resource's bean. |
SLA |
getSLA(String slaID)
|
SLA |
getSLALocal(String resourceId)
|
protected org.apache.axis.message.addressing.EndpointReferenceType[] |
getSLAResources()
|
String |
getSLAState()
Gets the state of an SLA |
SLATemplate |
getSLATemplate()
Get the template details. |
SLATemplate |
getSLATemplate(org.hibernate.Session session,
String resourceID)
|
SLATemplate |
getSLATemplate(String slaID)
|
SLATemplate |
getSLATemplateAdmin(String slaID)
|
SLATemplate |
getSLATerms()
Gets the Terms for an SLA |
SLAUsageSummary |
getUsage(Date start,
Date end,
long reportInterval,
long maxReports)
Gets usage reports from an sla |
SLAUsageSummary |
getUsage(String conversationID,
Date start,
Date end,
long reportInterval,
long maxReports)
|
Document |
getUsageSummary()
Deprecated. |
Document |
getUsageSummary(String conversationID)
|
MatchRule[] |
getUserRules()
Deprecated. |
void |
publishSLATemplate()
Publish an SLA Template. |
void |
publishSLATemplate(String resourceID)
|
String |
registerMetrics(Document xmlDoc)
|
void |
reloadConfiguration()
Reload the configuration. |
void |
removeOwnerRule(MatchRule rule)
Deprecated. |
void |
removeUserRule(MatchRule rule)
Deprecated. |
Document |
RequestSecurityToken_Validation(Element request)
Validate security tokens. |
void |
resumeSLAInternal(String resourceID)
|
void |
resumeSLALocal(String slaID)
|
String |
setCapacity(Document xmlDoc)
|
void |
setLabel(String label)
Change the resource's label. |
void |
startActivity(org.apache.axis.message.addressing.EndpointReferenceType activityEPR,
Constraint[] cons,
UsageReport[] usage)
Check that an activity should be started. |
void |
suspendSLAInternal(String resourceID)
|
void |
suspendSLALocal(String slaID)
|
void |
withdrawSLATemplate()
Withdraw (unpublish) an SLA Template. |
void |
withdrawSLATemplate(String resourceID)
|
| Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, generateEPR, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, getServiceFromEPR, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, removePolicyRule, removeTrustedAccountService, RequestSecurityToken_Issuance, RequestSecurityToken, setLabel, signal, validateOwner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wsrf.WSRFService |
|---|
GetResourceProperty |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement |
|---|
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata |
|---|
getEPR |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wstrust.WSTrust |
|---|
RequestSecurityToken |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.Signallable |
|---|
getAvailableSignals, signal |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement |
|---|
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.Signallable |
|---|
getAvailableSignals, signal |
| Field Detail |
|---|
public static final String SLA_RESOURCE_TYPE
public static final String SLA_SERVICE_RESOURCE_TYPE
public static final String SLA_MANAGED_SERVICES
public static final String SLA_GROUP_SERVICE_ADMINS
| Constructor Detail |
|---|
public SLAServiceImpl()
throws GridFailureException
GridFailureException| Method Detail |
|---|
public void disablePolling()
public void reloadConfiguration()
throws Exception
Exception
public void ensurePoliciesDeployed()
throws GridFailureException
WebAdmin
ensurePoliciesDeployed in interface WebAdminGridFailureException
public String registerMetrics(Document xmlDoc)
throws XPathExpressionException
XPathExpressionException
public SLATemplate getSLATemplateAdmin(String slaID)
throws GridFailureException
GridFailureException
public SLATemplate getSLATerms()
throws GridFailureException
SLAResource
getSLATerms in interface SLAResourceGridFailureException
public SLATemplate getSLATemplate()
throws GridFailureException
SLATemplateResource
getSLATemplate in interface SLATemplateResourceGridFailureException
public SLATemplate getSLATemplate(String slaID)
throws GridFailureException
GridFailureException
protected Class<? extends GridResource> getResourceType(String resourceID)
throws GridFailureException
GridServiceLite
getResourceType in class GridServiceLiteGridFailureException
public org.apache.axis.message.addressing.EndpointReferenceType getEPR(String conversationID)
throws RemoteException
getEPR in class GridServiceLiteRemoteExceptionGridServiceLite.getEPR()
public SLATemplate getSLATemplate(org.hibernate.Session session,
String resourceID)
throws GridFailureException
GridFailureException
public SLA getSLA(String slaID)
throws GridFailureException
GridFailureException
public Activity getActivity(String activityID)
throws GridFailureException
GridFailureExceptionpublic ResourcePool getResourcePool(org.hibernate.Session session)
public void ensureSingleResourcePoolExists()
public ResourcePool getResourcePool()
public String setCapacity(Document xmlDoc)
throws GridFailureException,
XPathExpressionException
GridFailureException
XPathExpressionException
public org.apache.axis.message.addressing.EndpointReferenceType createSLATemplate(Document doc,
MatchRule owner)
throws GridFailureException
SLAService
createSLATemplate in interface SLAServicedoc - the document to create the SLA Template fromowner - a match rule to identify the owner of the SLA Template in future
GridFailureException
public String createSLATemplateFromDoc(Document xmlDoc,
MatchRule owner)
throws GridFailureException
GridFailureException
public org.apache.axis.message.addressing.EndpointReferenceType createSLA(SLAProposal terms,
String label,
MatchRule owner)
throws RemoteException
SLAService
createSLA in interface SLAServiceterms - a filled-in SLA Proposallabel - a label to use for the SLAowner - a match rule to identify the owner of the SLA in future
RemoteException
public String createSLALocal(MatchRule owner,
String label,
SLAProposal terms,
Conversation managingConversation)
throws GridFailureException
GridFailureException
public void publishSLATemplate(String resourceID)
throws GridFailureException
GridFailureException
public void publishSLATemplate()
throws GridFailureException
SLATemplateResource
publishSLATemplate in interface SLATemplateResourceGridFailureException
public void withdrawSLATemplate(String resourceID)
throws GridFailureException
GridFailureException
public void withdrawSLATemplate()
throws GridFailureException
SLATemplateResource
withdrawSLATemplate in interface SLATemplateResourceGridFailureException
public void deleteSLATemplate(String resourceID)
throws GridFailureException
GridFailureException
public void deleteSLATemplate()
throws GridFailureException
GridFailureException
public void closeSLALocal(String slaID)
throws GridFailureException,
GridErrorException
GridFailureException
GridErrorException
public void forceCloseSLALocal(String slaID)
throws GridFailureException,
GridErrorException
GridFailureException
GridErrorException
public void forceCloseSLAInternal(String slaID)
throws GridFailureException,
GridErrorException
GridFailureException
GridErrorException
public void closeSLAInternal(String resourceID)
throws GridFailureException
GridFailureException
public void finishActivityInternal(String activityID)
throws GridFailureException
GridFailureException
public void finishServiceInternal(String endpoint)
throws GridFailureException
GridFailureException
public void closeSLA()
throws GridFailureException
SLAResource
closeSLA in interface SLAResourceGridFailureException
public void suspendSLALocal(String slaID)
throws GridFailureException,
GridErrorException
GridFailureException
GridErrorException
public void suspendSLAInternal(String resourceID)
throws GridFailureException
GridFailureException
public void resumeSLALocal(String slaID)
throws GridFailureException,
GridErrorException
GridFailureException
GridErrorException
public void resumeSLAInternal(String resourceID)
throws GridFailureException,
GridErrorException
GridFailureException
GridErrorException
public boolean checkUser(SubjectDescription user)
throws GridFailureException
SLAResource
checkUser in interface SLAResourceuser - user to test.
GridFailureException
public Document RequestSecurityToken_Validation(Element request)
throws GridFailureException
GridServiceLiteGridServiceLite.RequestSecurityToken(org.w3c.dom.Element) for validation requests.
RequestSecurityToken_Validation in class GridServiceLiteGridFailureException
public void startActivity(org.apache.axis.message.addressing.EndpointReferenceType activityEPR,
Constraint[] cons,
UsageReport[] usage)
throws GridFailureException
SLAResource
startActivity in interface SLAResourceactivityEPR - the new resource (must implement ReportAPI port type).cons - requirements
GridFailureException
public void continueActivity(org.apache.axis.message.addressing.EndpointReferenceType activityEPR,
Constraint[] cons)
throws GridFailureException
SLAResource
continueActivity in interface SLAResourceactivityEPR - the new resource (must implement ReportAPI port type).cons - the new requirements
GridFailureException
public Document getAtomFeed(String atomFeed,
String serviceBase)
throws GridFailureException
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)
GridFailureExceptionAtomUtilspublic TradeAccountConversation getAccount(org.apache.axis.message.addressing.EndpointReferenceType epr)
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws GridFailureException
GridService
getResources in interface GridServiceGridFailureException
protected org.apache.axis.message.addressing.EndpointReferenceType[] getSLAResources()
throws GridFailureException
GridFailureException
public String getSLAState()
throws GridFailureException
SLAResource
getSLAState in interface SLAResourceGridFailureException
@Deprecated
public void addOwnerRule(MatchRule rule)
throws GridFailureException
SLAResource
addOwnerRule in interface SLAResourcerule - the rule to add
GridFailureException
@Deprecated
public void removeOwnerRule(MatchRule rule)
throws GridFailureException
SLAResource
removeOwnerRule in interface SLAResourcerule - the rule to add
GridFailureException
@Deprecated
public MatchRule[] getOwnerRules()
throws GridFailureException
SLAResource
getOwnerRules in interface SLAResourceGridFailureException
@Deprecated
public void addUserRule(MatchRule rule)
throws GridFailureException
SLAResource
addUserRule in interface SLAResourcerule - the rule to add
GridFailureException
@Deprecated
public void removeUserRule(MatchRule rule)
throws GridFailureException
SLAResource
removeUserRule in interface SLAResourcerule - the rule to add
GridFailureException
@Deprecated
public MatchRule[] getUserRules()
throws GridFailureException
SLAResource
getUserRules in interface SLAResourceGridFailureException
public SLAUsageSummary getUsage(Date start,
Date end,
long reportInterval,
long maxReports)
throws RemoteException
SLAResource
getUsage in interface SLAResourcestart - the start time of the usage interval to request.end - the end time of the usage interval to request.reportInterval - the specified time between reports in milliseconds.maxReports - the max number of reports to return.
RemoteException
public SLAUsageSummary getUsage(String conversationID,
Date start,
Date end,
long reportInterval,
long maxReports)
throws GridFailureException
GridFailureException
@Deprecated
public Document getUsageSummary()
throws GridFailureException
SLAResource
getUsageSummary in interface SLAResourceGridFailureException
public Document getUsageSummary(String conversationID)
throws GridFailureException
GridFailureExceptionpublic SLA getSLALocal(String resourceId)
public void setLabel(String label)
throws RemoteException
ResourceMetadata
setLabel in interface ResourceMetadatasetLabel in class GridServiceLitelabel - the new label
RemoteException
public void destroy()
throws ResourceUnknownFault,
ResourceNotDestroyedFault,
RemoteException
destroy in interface WSResourceLifetimeResourceUnknownFault
ResourceNotDestroyedFault
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||