|
||||||||||
| 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 |
|---|
groupUtils, management, NO_ACCOUNT_NEEDED, pbacUtils, pdp, proxyFactory, thisServiceAddress, wsdlCache |
| 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()
|
|
| 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.IdentifiableResource |
|---|
getServiceMatchPattern |
| 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 RemoteException
RemoteException| Method Detail |
|---|
public void disablePolling()
public void reloadConfiguration()
throws Exception
Exception
public void ensurePoliciesDeployed()
throws RemoteException
WebAdmin
ensurePoliciesDeployed in interface WebAdminRemoteException
public String registerMetrics(Document xmlDoc)
throws XPathExpressionException
XPathExpressionException
public SLATemplate getSLATemplateAdmin(String slaID)
throws RemoteException
RemoteException
public SLATemplate getSLATerms()
throws RemoteException
SLAResource
getSLATerms in interface SLAResourceRemoteException
public SLATemplate getSLATemplate()
throws RemoteException
SLATemplateResource
getSLATemplate in interface SLATemplateResourceRemoteException
public SLATemplate getSLATemplate(String slaID)
throws RemoteException
RemoteException
protected Class<? extends GridResource> getResourceType(String resourceID)
throws RemoteException
GridServiceLite
getResourceType in class GridServiceLiteRemoteException
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 RemoteException
RemoteException
public SLA getSLA(String slaID)
throws RemoteException
RemoteException
public Activity getActivity(String activityID)
throws RemoteException
RemoteExceptionpublic ResourcePool getResourcePool(org.hibernate.Session session)
public void ensureSingleResourcePoolExists()
public ResourcePool getResourcePool()
public String setCapacity(Document xmlDoc)
throws RemoteException,
XPathExpressionException
RemoteException
XPathExpressionException
public org.apache.axis.message.addressing.EndpointReferenceType createSLATemplate(Document doc,
MatchRule owner)
throws RemoteException
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
RemoteExceptionpublic void removeIdFromTemplateXML(Element template)
public String createSLATemplateFromDoc(Document xmlDoc,
MatchRule owner)
throws RemoteException
RemoteException
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 RemoteException
RemoteException
public void publishSLATemplate(String resourceID)
throws RemoteException
RemoteException
public void publishSLATemplate()
throws RemoteException
SLATemplateResource
publishSLATemplate in interface SLATemplateResourceRemoteException
public void withdrawSLATemplate(String resourceID)
throws RemoteException
RemoteException
public void withdrawSLATemplate()
throws RemoteException
SLATemplateResource
withdrawSLATemplate in interface SLATemplateResourceRemoteException
public void deleteSLATemplate(String resourceID)
throws RemoteException
RemoteException
public void deleteSLATemplate()
throws RemoteException
RemoteException
public void closeSLALocal(String slaID)
throws RemoteException,
GridErrorException
RemoteException
GridErrorException
public void forceCloseSLALocal(String slaID)
throws RemoteException,
GridErrorException
RemoteException
GridErrorException
public void forceCloseSLAInternal(String slaID)
throws RemoteException,
GridErrorException
RemoteException
GridErrorException
public void closeSLAInternal(String resourceID)
throws RemoteException
RemoteException
public void finishActivityInternal(String activityID)
throws RemoteException
RemoteException
public void finishServiceInternal(String endpoint)
throws RemoteException
RemoteException
public void closeSLA()
throws RemoteException
SLAResource
closeSLA in interface SLAResourceRemoteException
public void suspendSLALocal(String slaID)
throws RemoteException,
GridErrorException
RemoteException
GridErrorException
public void suspendSLAInternal(String resourceID)
throws RemoteException
RemoteException
public void resumeSLALocal(String slaID)
throws RemoteException,
GridErrorException
RemoteException
GridErrorException
public void resumeSLAInternal(String resourceID)
throws RemoteException,
GridErrorException
RemoteException
GridErrorException
public boolean checkUser(SubjectDescription user)
throws RemoteException
SLAResource
checkUser in interface SLAResourceuser - user to test.
RemoteException - if the caller is not permitted to check
public Document RequestSecurityToken_Validation(Element request)
throws RemoteException
GridServiceLiteGridServiceLite.RequestSecurityToken(org.w3c.dom.Element) for validation requests.
RequestSecurityToken_Validation in class GridServiceLiteRemoteException
public void startActivity(org.apache.axis.message.addressing.EndpointReferenceType activityEPR,
Constraint[] cons,
UsageReport[] usage)
throws RemoteException
SLAResource
startActivity in interface SLAResourceactivityEPR - the new resource (must implement ReportAPI port type).cons - requirements
RemoteException - if the activity should not be started
public void continueActivity(org.apache.axis.message.addressing.EndpointReferenceType activityEPR,
Constraint[] cons)
throws RemoteException
SLAResource
continueActivity in interface SLAResourceactivityEPR - the new resource (must implement ReportAPI port type).cons - the new requirements
RemoteException - if the change should be refused
public Document getAtomFeed(String atomFeed,
String serviceBase)
throws RemoteException
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)
RemoteExceptionAtomUtilspublic TradeAccountConversation getAccount(org.apache.axis.message.addressing.EndpointReferenceType epr)
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws RemoteException
GridService
getResources in interface GridServiceRemoteException
protected org.apache.axis.message.addressing.EndpointReferenceType[] getSLAResources()
throws RemoteException
RemoteException
public String getSLAState()
throws RemoteException
SLAResource
getSLAState in interface SLAResourceRemoteException
@Deprecated
public void addOwnerRule(MatchRule rule)
throws RemoteException
SLAResource
addOwnerRule in interface SLAResourcerule - the rule to add
RemoteException
@Deprecated
public void removeOwnerRule(MatchRule rule)
throws RemoteException
SLAResource
removeOwnerRule in interface SLAResourcerule - the rule to add
RemoteException
@Deprecated
public MatchRule[] getOwnerRules()
throws RemoteException
SLAResource
getOwnerRules in interface SLAResourceRemoteException
@Deprecated
public void addUserRule(MatchRule rule)
throws RemoteException
SLAResource
addUserRule in interface SLAResourcerule - the rule to add
RemoteException
@Deprecated
public void removeUserRule(MatchRule rule)
throws RemoteException
SLAResource
removeUserRule in interface SLAResourcerule - the rule to add
RemoteException
@Deprecated
public MatchRule[] getUserRules()
throws RemoteException
SLAResource
getUserRules in interface SLAResourceRemoteException
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 RemoteException
RemoteException
@Deprecated
public Document getUsageSummary()
throws RemoteException
SLAResource
getUsageSummary in interface SLAResourceRemoteException
public Document getUsageSummary(String conversationID)
throws RemoteException
RemoteExceptionpublic 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
RemoteExceptionpublic List<org.apache.axis.message.addressing.EndpointReferenceType> getAdditionalFederations()
getAdditionalFederations in interface ManagedGridServicepublic List<String> getAdditionalFederationMethods()
getAdditionalFederationMethods in interface ManagedGridService
public void setAdditionalFederation(org.apache.axis.message.addressing.EndpointReferenceType[] federations,
String[] methods)
throws RemoteException
setAdditionalFederation in interface ManagedGridServiceRemoteExceptionpublic List<String> getFederatedMethods()
getFederatedMethods in interface ManagedGridService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||