com.sun.spot.peripheral.ota
Class SpotWorldCommand
java.lang.Object
com.sun.spot.peripheral.ota.SpotWorldCommand
- All Implemented Interfaces:
- IOTACommand, ISpotAdminConstants
public class SpotWorldCommand
- extends Object
- implements ISpotAdminConstants, IOTACommand
- Author:
- vgupta
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_FILE_INFO_CMD, GET_FILE_LIST_CMD, GET_MEMORY_STATS_CMD, GET_POWER_STATS_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_OTA_COMMAND_SERVER_IDENTIFICATION_STRING, RESUME_APP_CMD, RESYNC_CMD, SET_PUBLIC_KEY_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 |
SpotWorldCommand
public SpotWorldCommand()
- Creates a new instance of SpotWorldCommand
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 invokedparams
- a DataInputStream
from which the command's parameters can be readhelper
- 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
Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.