|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.dataresource.config.DataServiceInfo
This class provides information about the data services that are going to use this accessor as well as the data resources from which information is to be retrieved.
The information is set up using an XML fragment from a data
resource configuration document. Specifically the
vlaues of all child elements of unitDataServiceConfig
are
manipulated. Methods to set and get these values are provided.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for logging in this class |
private long |
mDefaultTimeOut
Default timeout within a response should be returned by one of the data resources |
private java.lang.String |
mDrId
the name of the data service resource of the above data service being able to be contacted by the multiple data service resource though SQLMultipleActivity |
private java.lang.String |
mDsDescription
description of the data resource being exposed by one of the above data service resources. |
private java.lang.String |
mDsUrl
the url of one of the data services being able to be contacted by the multiple data service resource through the SQLMultipleActivity |
private java.lang.String |
mLastResponse
Indicates the status of last call to this data service. |
private long |
mMaximumTimeOut
Maximum timeout within a response should be returned by one of the data resources |
static java.lang.String |
NOT_AVAILABLE
constant used the response is, for some reason, not available |
static java.lang.String |
RESPONSE_ERROR
constant used when an error occured in the response |
static java.lang.String |
RESPONSE_OK
constant used when the response was ok |
static java.lang.String |
RESPONSE_TIMEOUT
constant used when the response timed out |
Constructor Summary | |
DataServiceInfo()
Constructor of the class. |
Method Summary | |
void |
configure(org.w3c.dom.Element dsElement)
Strips out the required information from the XML document. |
long |
getDefaultTimeOut()
get the default timeout |
java.lang.String |
getDrId()
get the id of the data resource |
java.lang.String |
getDsDescription()
get the description |
java.lang.String |
getDsUrl()
get the URL of the data service |
java.lang.String |
getLastResponse()
|
long |
getMaximumTimeOut()
get the maximun timeout |
void |
setDefaultTimeOut(long timeout)
set the defualt timeout |
void |
setDrId(java.lang.String id)
set the data resource ID |
void |
setDsDescription(java.lang.String desc)
set the description |
void |
setDsUrl(java.lang.String url)
set the Data service URL |
void |
setLastResponse(java.lang.String lastResponse)
|
void |
setMaximumTimeOut(long timeout)
set the maximum timeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
public static final java.lang.String RESPONSE_OK
public static final java.lang.String RESPONSE_ERROR
public static final java.lang.String RESPONSE_TIMEOUT
public static final java.lang.String NOT_AVAILABLE
private java.lang.String mDsUrl
SQLMultipleActivity
private java.lang.String mDrId
SQLMultipleActivity
private java.lang.String mDsDescription
private long mDefaultTimeOut
private long mMaximumTimeOut
private java.lang.String mLastResponse
private static DAILogger LOG
Constructor Detail |
public DataServiceInfo()
Method Detail |
public java.lang.String getDsUrl()
public java.lang.String getDrId()
public java.lang.String getDsDescription()
public long getDefaultTimeOut()
public long getMaximumTimeOut()
public void setDsUrl(java.lang.String url)
public void setDrId(java.lang.String id)
public void setDsDescription(java.lang.String desc)
public void setDefaultTimeOut(long timeout)
public void setMaximumTimeOut(long timeout)
public void configure(org.w3c.dom.Element dsElement) throws java.lang.IllegalArgumentException
dsElement
- the element to be parsed
java.lang.IllegalArgumentException
- if dsElement
is null
or is not a UnitDataServiceConfig
element.public java.lang.String getLastResponse()
public void setLastResponse(java.lang.String lastResponse)
lastResponse
- The lastResponse to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |