roomba.roombanetwork.services
Interface ServiceStatusProvider

All Known Implementing Classes:
ColorFinderService, RoombaService

public interface ServiceStatusProvider

Interface to provide status of a particular service.


Field Summary
static int STATUS_ERROR
           
static int STATUS_OK
           
 
Method Summary
 java.lang.String getErrorMessage()
          Returns the error message for the service if any
 int getStatus()
          Returns the status code for the service
 

Field Detail

STATUS_OK

static final int STATUS_OK
See Also:
Constant Field Values

STATUS_ERROR

static final int STATUS_ERROR
See Also:
Constant Field Values
Method Detail

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