|
SunSPOT host API V5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISpotManager
ISpotManager is not intended for direct use by new instances of ISpotClientCommand, which should normally
use the facilities available via ISpotClientCommandHelper, IAdminTarget and by executing other
built-in instances of ISpotClientCommand such as SynchronizeCommand and QuitCommand. The
interface to ISpotManager is only used by bootloader commands via IPrivateCommandHelper and is subject to
change without notice in future releases.
The ISpotManager has three roles:
ConfigPage and a SpotStateIAdminTarget and (in the case of a locally connected SPOT) a IBootloaderTarget
| Method Summary | |
|---|---|
void |
checkStateForBootloaderCmd()
Check whether the bootloader or Config Page is obsolete |
void |
flashConfig(Flashable configPageData)
Flash the Config Page with the given data |
IAdminTarget |
getAdminTarget()
Get the AdminTarget. |
IBootloaderTarget |
getBootloaderTarget()
Get the BootloaderTarget. |
String |
getBootloaderTimeStamp()
|
ConfigPage |
getConfigPage()
|
byte[] |
getConfigPageContents(boolean newConfigSupported)
|
boolean |
isBootloaderUpToDate()
|
boolean |
isRemote()
|
void |
quit()
Quit: release all system resources. |
void |
setSpotState(SpotState spotState)
Set the SpotState |
void |
startVM()
Start the VM. |
String |
synchronize()
Synchronise with a SPOT. |
boolean |
waitForExit()
Wait for the VM (assumed to be running) to exit. |
| Method Detail |
|---|
ConfigPage getConfigPage()
boolean isBootloaderUpToDate()
void flashConfig(Flashable configPageData)
throws IOException
configPageData -
IOException
IAdminTarget getAdminTarget()
throws IOException
IOExceptionboolean isRemote()
void checkStateForBootloaderCmd()
throws SpotObsoleteVersionException
SpotObsoleteVersionExceptionvoid setSpotState(SpotState spotState)
spotState -
IBootloaderTarget getBootloaderTarget()
throws IOException
IOException
void quit()
throws IOException
IOException
byte[] getConfigPageContents(boolean newConfigSupported)
throws IOException
newConfigSupported -
IOException
String synchronize()
throws IOException
IOException
void startVM()
throws IOException
IOException
boolean waitForExit()
throws IOException
IOExceptionString getBootloaderTimeStamp()
|
SunSPOT host API V5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||