|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.monitor.DataServiceStatus
Represents the status of a data service.
Nested Class Summary | |
class |
DataServiceStatus.DataServiceStatusObservable Observable of the data service status. |
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE |
private ResourceID[] |
mDataResources List of data resources at the service |
private DataService |
mDataService the data service |
private java.lang.String |
mErrorMsg Any error that might have occurred when contacting the service |
private DataServiceStatus.DataServiceStatusObservable |
mObservable Observable object |
private ResourceID |
mResource resource id - ignored at the moment |
private java.lang.String |
mServiceStatus service status and version |
private java.lang.String |
mServiceURL URL of the service |
private java.lang.String |
mVersion |
static java.lang.String |
SERVICE_AVAILABLE |
static java.lang.String |
SERVICE_NOT_AVAILABLE |
static java.lang.String |
UNKNOWN Service status constants |
Constructor Summary | |
DataServiceStatus(java.lang.String url) Constructs a new data service status from an URL and resource ID |
Method Summary | |
void |
addObserver(java.util.Observer observer) Adds an observer of this class |
ResourceID |
getDataResource() Gets the current data resource ID |
ResourceID[] |
getDataResources() Gets the list of data resources that are registered at the service |
java.lang.String |
getErrorMessage() Gets the error message if an error occurred during updateStatus |
java.lang.String |
getServiceStatus() Gets the service status |
java.lang.String |
getServiceURL() Gets the service URL |
java.lang.String |
getServiceVersion() Gets the service version |
void |
setResourceID(ResourceID id) Set the resource ID |
private void |
setServiceStatusNotAvailable() Sets the service status to "NOT AVAILABLE" and service version to "UNKNOWN" |
void |
updateStatus() Updates the status of this service |
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
private DataService mDataService
private java.lang.String mServiceURL
private ResourceID mResource
private java.lang.String mServiceStatus
private java.lang.String mVersion
private java.lang.String mErrorMsg
private ResourceID[] mDataResources
private DataServiceStatus.DataServiceStatusObservable mObservable
public static final java.lang.String UNKNOWN
public static final java.lang.String SERVICE_AVAILABLE
public static final java.lang.String SERVICE_NOT_AVAILABLE
Constructor Detail |
public DataServiceStatus(java.lang.String url)
url
- service URLMethod Detail |
public void setResourceID(ResourceID id)
id
- resource IDpublic void addObserver(java.util.Observer observer)
observer
-public void updateStatus()
public java.lang.String getServiceStatus()
AVAILABLE
or UNAVAILABLE
public java.lang.String getServiceVersion()
public java.lang.String getErrorMessage()
public java.lang.String getServiceURL()
public ResourceID getDataResource()
public ResourceID[] getDataResources()
private void setServiceStatusNotAvailable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |