SunSPOT API V5.0


com.sun.spot.peripheral.ota
Class SpotWorldCommand

java.lang.Object
  extended by com.sun.spot.peripheral.ota.SpotWorldCommand
All Implemented Interfaces:
IOTACommand, ISpotAdminConstants

public class SpotWorldCommand
extends Object
implements ISpotAdminConstants, IOTACommand

Provides support for executing commands from Solarium (formerly called SpotWorld).

Author:
vgupta

Nested Class Summary
static class SpotWorldCommand.PingReply
           
 
Field Summary
 
Fields inherited from interface com.sun.spot.peripheral.ota.ISpotAdminConstants
ABORT_REQUEST, ADMIN_FLASH_OPERATION_FLOW_CONTROL_QUANTUM, BLINK_CMD, BOOTLOADER_CMD_ATTENTION, BOOTLOADER_CMD_HEADER, CHILD_ISOLATE_ECHO_PORT, CLOSEDOWN, DELETE_PUBLIC_KEY_CMD, ERROR_COMMAND_VERIFICATION_FAILED, ERROR_GENERAL, ERROR_UNKNOWN_COMMAND, FLASH_APP_CMD, FLASH_LIB_CMD, GET_ALL_APPS_STATUS_CMD, GET_APP_STATUS_CMD, GET_AVAILABLE_SUITES_CMD, GET_CONFIG_PAGE_CMD, GET_CONFIG_PAGE_LEN_CMD, GET_FILE_INFO_CMD, GET_FILE_LIST_CMD, GET_MEMORY_STATS_CMD, GET_POWER_STATS_CMD, GET_RADIO_INFO_CMD, GET_ROUTE_CMD, GET_SLEEP_INFO_CMD, GET_SPOT_PROPERTY_CMD, GET_SUITE_MANIFEST_CMD, GET_SYSTEM_PROPERTIES, LOCAL_OTA_COMMAND_SERVER_IDENTIFICATION_STRING, MASTER_ISOLATE_ECHO_PORT, MIGRATE_APP_CMD, PAUSE_APP_CMD, RECEIVE_APP_CMD, REMOTE_FLASH_OPERATION_FLOW_CONTROL_QUANTUM, REMOTE_GET_PHYS_NBRS_CMD, REMOTE_OTA_COMMAND_SERVER_IDENTIFICATION_STRING, RESUME_APP_CMD, RESYNC_CMD, SET_PUBLIC_KEY_CMD, SET_RADIO_INFO_CMD, SET_STARTUP_CMD, SET_SYSTEM_PROPERTIES, SET_TIME_CMD, START_APP_CMD, START_REMOTE_PRINTING_CMD, START_VM_CMD, STOP_APP_CMD, STOP_REMOTE_PRINTING_CMD, UNDEPLOY_CMD
 
Constructor Summary
SpotWorldCommand()
          Creates a new instance of SpotWorldCommand
 
Method Summary
static Vector doRemoteGetPhysicalNeighbors()
           
 int getSecurityLevelFor(String command)
          Answer the security level for a command.
 boolean processCommand(String command, DataInputStream params, IOTACommandHelper helper)
          Attempt to process a command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotWorldCommand

public SpotWorldCommand()
Creates a new instance of SpotWorldCommand

Method Detail

getSecurityLevelFor

public int getSecurityLevelFor(String command)
Description copied from interface: IOTACommand
Answer the security level for a command. See IOTACommandHelper.DEVICE_SECURITY_LEVEL

Specified by:
getSecurityLevelFor in interface IOTACommand
Parameters:
command - the command in question
Returns:
the security level

processCommand

public boolean processCommand(String command,
                              DataInputStream params,
                              IOTACommandHelper helper)
                       throws IOException
Description copied from interface: IOTACommand
Attempt to process a command.

Specified by:
processCommand in interface IOTACommand
Parameters:
command - the command that was invoked
params - a DataInputStream from which the command's parameters can be read
helper - infrastructure-supplied source of command helper operations
Returns:
false if the SPOT admin command processor should closedown as a result of this command being run, otherwise true. Return true even when the command failed.
Throws:
IOException

doRemoteGetPhysicalNeighbors

public static Vector doRemoteGetPhysicalNeighbors()

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.