uk.ac.soton.itinnovation.grid.service.sla.webadmin
Class SLAAdmin
java.lang.Object
uk.ac.soton.itinnovation.grid.service.sla.webadmin.SLAAdmin
public class SLAAdmin
- extends Object
|
Method Summary |
void |
deleteCapacityConstraint()
|
void |
deleteMetric()
|
void |
editMetric(org.hibernate.Session hibSession,
org.hibernate.Transaction tx,
String id)
|
String |
editSLATemplate(StringBuffer sbResourceID)
Parse SLA template form, creating new form. |
static void |
exportTemplateXML(HttpServletRequest request,
HttpServletResponse response)
|
String |
format(Calendar time)
|
String |
format(Date time)
|
String |
format(double value)
|
Activity |
getActivity(String resourceId)
|
String |
printActivityUsage(String activityID)
|
String |
printConstraint(String slaID,
String cid,
String type)
|
String |
printPolledServices()
|
void |
printServiceActivities(Writer out,
String endpoint)
|
String |
printServiceUsage()
|
String |
printSLA(String slaID)
|
void |
printSLAActivities(Writer out,
String slaID)
|
String |
printSLAConstraintUsage(String slaID)
|
String |
printSLAPriceUsage(String slaID)
|
String |
printSLATemplate(String slaID)
|
String |
processPOST()
Check whether this request is a POST asking us to update anything. |
String |
shallWeCloseSLA(String resourceID)
|
void |
showCapacityConstraintList(Writer out)
|
void |
showMetricEditor(org.hibernate.Session hibSession,
Writer out,
String uri,
boolean embedded)
|
void |
showMetricList(Writer out)
|
void |
showSLAs(Writer out)
|
void |
showSLATemplateList(Writer out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLAAdmin
public SLAAdmin(HttpServletRequest request)
throws Stop
- Throws:
Stop
processPOST
public String processPOST()
throws Stop,
GridFailureException,
org.apache.commons.fileupload.FileUploadException,
IOException,
XPathExpressionException
- Check whether this request is a POST asking us to update anything.
If so, do the updates.
- Returns:
- a success message, or null if no action was performed
- Throws:
Stop
GridFailureException
org.apache.commons.fileupload.FileUploadException
IOException
XPathExpressionException
showMetricList
public void showMetricList(Writer out)
throws IOException,
GridFailureException
- Throws:
IOException
GridFailureException
showCapacityConstraintList
public void showCapacityConstraintList(Writer out)
throws IOException
- Throws:
IOException
showMetricEditor
public void showMetricEditor(org.hibernate.Session hibSession,
Writer out,
String uri,
boolean embedded)
throws IOException
- Throws:
IOException
editMetric
public void editMetric(org.hibernate.Session hibSession,
org.hibernate.Transaction tx,
String id)
throws GridFailureException
- Throws:
GridFailureException
deleteMetric
public void deleteMetric()
throws GridFailureException
- Throws:
GridFailureException
deleteCapacityConstraint
public void deleteCapacityConstraint()
throws GridFailureException
- Throws:
GridFailureException
showSLATemplateList
public void showSLATemplateList(Writer out)
throws IOException
- Throws:
IOException
editSLATemplate
public String editSLATemplate(StringBuffer sbResourceID)
throws IOException,
Stop
- Parse SLA template form, creating new form.
- Parameters:
sbResourceID - - an empty StringBuffer to put the resourceID in
- Throws:
IOException
Stop
showSLAs
public void showSLAs(Writer out)
throws IOException,
Stop,
XPathExpressionException
- Throws:
IOException
Stop
XPathExpressionException
printConstraint
public String printConstraint(String slaID,
String cid,
String type)
throws IOException
- Throws:
IOException
printSLA
public String printSLA(String slaID)
throws IOException,
PropertyConfigurationException
- Throws:
IOException
PropertyConfigurationException
printSLATemplate
public String printSLATemplate(String slaID)
throws IOException,
Stop
- Throws:
IOException
Stop
printSLAPriceUsage
public String printSLAPriceUsage(String slaID)
printSLAConstraintUsage
public String printSLAConstraintUsage(String slaID)
printServiceUsage
public String printServiceUsage()
throws GridFailureException
- Throws:
GridFailureException
printSLAActivities
public void printSLAActivities(Writer out,
String slaID)
throws GridFailureException,
IOException
- Throws:
GridFailureException
IOException
printServiceActivities
public void printServiceActivities(Writer out,
String endpoint)
throws IOException
- Throws:
IOException
printActivityUsage
public String printActivityUsage(String activityID)
throws GridFailureException
- Throws:
GridFailureException
format
public String format(Calendar time)
format
public String format(Date time)
format
public String format(double value)
getActivity
public Activity getActivity(String resourceId)
exportTemplateXML
public static void exportTemplateXML(HttpServletRequest request,
HttpServletResponse response)
throws Stop,
IOException
- Throws:
Stop
IOException
printPolledServices
public String printPolledServices()
shallWeCloseSLA
public String shallWeCloseSLA(String resourceID)
throws GridFailureException
- Throws:
GridFailureException
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.