roomba.roombanetwork.services
Interface ServiceStatusProvider
- All Known Implementing Classes:
- ColorFinderService, RoombaService
public interface ServiceStatusProvider
Interface to provide status of a particular service.
|
Method Summary |
java.lang.String |
getErrorMessage()
Returns the error message for the service if any |
int |
getStatus()
Returns the status code for the service |
STATUS_OK
static final int STATUS_OK
- See Also:
- Constant Field Values
STATUS_ERROR
static final int STATUS_ERROR
- See Also:
- Constant Field Values
getStatus
int getStatus()
- Returns the status code for the service
- Returns:
- Status code (either STATUS_OK or STATUS_ERROR)
getErrorMessage
java.lang.String getErrorMessage()
- Returns the error message for the service if any
- Returns:
- Error message