com.ebay.carad.os.vitalsigns.dataretrievers
Class UrlRegexDataRetriever

java.lang.Object
  extended by com.ebay.carad.os.vitalsigns.dataretrievers.UrlRegexDataRetriever
All Implemented Interfaces:
IDataRetriever, java.lang.Cloneable

public class UrlRegexDataRetriever
extends java.lang.Object
implements IDataRetriever

Version:
$Id$
Author:
Jeremy Thomerson

Field Summary
private static org.apache.log4j.Logger LOGGER
           
private  java.util.regex.Pattern mRegex
           
private  java.net.URL mUrl
           
 
Fields inherited from interface com.ebay.carad.os.vitalsigns.IDataRetriever
NO_OP_DATA_RETRIEVER, ZERO
 
Constructor Summary
UrlRegexDataRetriever()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Float getData(IDashboardAgent agent)
           
private  java.lang.String getURLContents()
           
 void setRegex(java.lang.String regex)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final org.apache.log4j.Logger LOGGER

mUrl

private java.net.URL mUrl

mRegex

private java.util.regex.Pattern mRegex
Constructor Detail

UrlRegexDataRetriever

public UrlRegexDataRetriever()
Method Detail

getData

public java.lang.Float getData(IDashboardAgent agent)
Specified by:
getData in interface IDataRetriever

getURLContents

private java.lang.String getURLContents()

setUrl

public void setUrl(java.lang.String url)

setRegex

public void setRegex(java.lang.String regex)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface IDataRetriever
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2004-2009. All Rights Reserved.