|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.symbian.et.jstat.JStat
Field Summary | |
static int |
CREATE_FOLDER
Creates a folder on the Symbian device. |
static int |
DELETE
Deletes a file from the Symbian device. |
static int |
GET_SCREEN_CAPTURE
Gets a screen capture from the Symbian device. |
private static java.lang.String |
iDeviceLogFile
Location of the Java Log File. |
static int |
INSTALL_FILE
Installs a SIS file on the Symbian device. |
private static java.io.PrintStream |
iPrintStream
The output stream for JStat. |
private static java.lang.String |
iTransport
The transport used by JStat. |
static int |
KILL
Kills a process on the Symbian device. |
static int |
LIST_DRIVES
Lists the drivers on the Symbian device. |
static int |
LIST_FILES
Lists the files at a specific directory on the Symbian device. |
static int |
POLL
Polls a process on the Symbian device. |
static int |
REMOVE_FOLDER
Removes a folder on the Symbian device. |
static int |
RETRIEVE_FILE
Retrieves a file from the Symbian device to the host machine. |
static int |
RUN
Runs a program/application on the Symbian device. |
static int |
SEND_FILE
Sends a file from the host machine to the Symbian device. |
private static boolean |
sIsBusy
JStat busy flag. |
static int |
START_LOGGING
Starts logging on the Symbian device. |
private static java.lang.String |
STAT_WORK
|
static int |
STOP_LOGGING
Stops logging on the Symbian device. |
static int |
UNINSTALL_FILE
Uninstalls a SIS file on the |
Constructor Summary | |
JStat()
|
Method Summary | |
static JStatResult |
checkLocation(java.lang.String aLocation)
Checks a location for the existance of a file. |
private static int |
connect(java.lang.String parameter)
C Native method to connect to a Symbian device. |
static JStatResult |
createFolder(java.lang.String aLocation)
Creates a directory on the Symbian device. |
static JStatResult |
delete(java.lang.String aLocation)
Deletes a file from the Symbian device. |
private static int |
disconnect(int handle)
C Native method to disconnect from a Symbian device. |
private static int |
doCommand(int handle,
java.lang.String command)
C Native method to do a command on the Symbian device. |
private static JStatResult |
doCommand(java.lang.String aCommand)
Runs a command on the device. |
static java.lang.String |
getDeviceLogFile()
Returns the device log file |
private static java.lang.String |
getError(int handle)
C Native method to get the error code from JStat |
static JStatResult |
getInfo()
Gets the Symbian device information |
private static java.lang.String |
getReceivedData(int handle)
C Native method to get the returned data from the Symbian device. |
static JStatResult |
getScreenCapture()
Gets a screen capture of the Symbian device. |
private static java.lang.String |
getStatVersion()
C Native method to get the current version of STAT. |
static java.lang.String |
getVersion()
Returns the current version of Stat. |
static JStatResult |
installFile(java.lang.String aFile)
Install a SIS file on the Symbian device. |
static boolean |
isLogging()
Checks wheather the Symbian devices is logging. |
static JStatResult |
kill(int aPid)
Kills a process on the Symbian device. |
static JStatResult |
kill(java.lang.String aPid)
Kills a process on the Symbian device. |
static JStatResult |
listDrives()
Lists all availbe drives on the Symbian device. |
static JStatResult |
listFiles(java.lang.String aLocation)
Lists all files in a directory on the Symbian devices. |
static JStatResult |
poll(int aPid)
Polls a process on the Symbian device. |
static JStatResult |
poll(java.lang.String aPid)
Polls a process on the Symbian device. |
static JStatResult |
removeFolder(java.lang.String aLocation)
Removes a folder from the Symbian device. |
static JStatResult |
rename(java.lang.String aArg0,
java.lang.String aArg1)
Renames a file on the Symbian device. |
static void |
restartBoard()
Does a software restart of the board. |
static JStatResult |
retrieveFile(java.lang.String aOriginPathFile)
Retrieves a file from the device side to the Stat Work directory. |
static JStatResult |
retrieveFile(java.lang.String aOriginPathFile,
java.io.File aDestPathFile)
Retrieves a file from the device side to the PC. |
static JStatResult |
retrieveFile(java.lang.String aOriginPathFile,
java.lang.String aDestFolder)
Retrieves a file from the device side to the PC. |
static JStatResult |
run(java.lang.String aExecutable)
Runs a Symbian executable on the Symbain device. |
static JStatResult |
run(java.lang.String aExecutable,
java.lang.String aArgs)
Runs a Symbian executable on the Symbian device. |
static JStatResult |
runSwitch(int aStatCommand)
Switch to run a command with no paramters. |
static JStatResult |
runSwitch(int aStatCommand,
java.lang.String aFirstParam)
|
static JStatResult |
runSwitch(int aStatCommand,
java.lang.String aFirstParam,
java.lang.String aSecondParam)
|
static JStatResult |
sendFile(java.lang.String aOriginFile,
java.lang.String aDestPathFile)
Copies a file from the PC to the Symbian device. |
static void |
setPrintStream(java.io.PrintStream aPrintStream)
Sets the output stream for JStat. |
static void |
setSerial(java.lang.String aPort)
Sets the port for JStat. |
static void |
setTCP(java.lang.String aIp)
Sets the IP address for JStat. |
static void |
setTransport(java.lang.String aTransport)
Sets the transport for JStat. |
static void |
setUSB(java.lang.String aPort)
Sets the USB port for Jstat. |
static JStatResult |
startLogging(java.lang.String aAbsoluteLogFile)
Starts the logger on the Symbian device. |
static JStatResult |
stopLogging()
Stops the logger on the Symbian device. |
static JStatResult |
uninstallFile(java.lang.String aUid)
Uninstall a SIS file on the Symbian device. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int RETRIEVE_FILE
public static final int SEND_FILE
public static final int GET_SCREEN_CAPTURE
public static final int INSTALL_FILE
public static final int UNINSTALL_FILE
public static final int LIST_DRIVES
public static final int LIST_FILES
public static final int DELETE
public static final int CREATE_FOLDER
public static final int REMOVE_FOLDER
public static final int RUN
public static final int KILL
public static final int POLL
public static final int START_LOGGING
public static final int STOP_LOGGING
private static java.io.PrintStream iPrintStream
private static boolean sIsBusy
private static java.lang.String iTransport
private static java.lang.String iDeviceLogFile
private static final java.lang.String STAT_WORK
Constructor Detail |
public JStat()
Method Detail |
private static int connect(java.lang.String parameter)
parameter
- The connection parameters
private static int disconnect(int handle)
handle
- The handle to the connection.
private static int doCommand(int handle, java.lang.String command)
handle
- command
-
private static java.lang.String getError(int handle)
handle
- The handle to the connection.
private static java.lang.String getReceivedData(int handle)
handle
- The handle to the connection.
private static java.lang.String getStatVersion()
public static JStatResult runSwitch(int aStatCommand) throws JStatException
aStatCommand
- The stat command. Use the JStat constants to choice which
command to run.
JStatException
- If the command run is incorrect or does not have the correct
number of parameters.public static JStatResult runSwitch(int aStatCommand, java.lang.String aFirstParam) throws JStatException
aStatCommand
- The stat command. Use the JStat constants to choice which
command to run.aFirstParam
- The parameter for this command.
JStatException
- If the command run is incorrect or does not have the correct
number of parameters.public static JStatResult runSwitch(int aStatCommand, java.lang.String aFirstParam, java.lang.String aSecondParam) throws JStatException
aStatCommand
- The stat command. Use the JStat constants to choice which
command to run.aFirstParam
- The first parameter for this command.aSecondParam
- The second parameter for this command.
JStatException
- If the command run is incorrect or does not have the correct
number of parameters.public static void setPrintStream(java.io.PrintStream aPrintStream)
aPrintStream
- The ouput stream of JStat.public static void setTransport(java.lang.String aTransport)
aTransport
- The transport of JStat.public static void setTCP(java.lang.String aIp)
setTransport(String)
with "tcp:\
aIp
- The IP address for JStat.public static void setSerial(java.lang.String aPort)
setTransport(String)
with "serial\
aPort
- The port to set for JStat.public static void setUSB(java.lang.String aPort)
setTransport(String)
with "usb\
aPort
- The USB port to use. Currently only 1 is valid.public static JStatResult sendFile(java.lang.String aOriginFile, java.lang.String aDestPathFile) throws JStatException
aOriginFile
- The location of the PC side file to copy from.aDestPathFile
- The location of the Device side file to copy to.
JStatException
- If JStat is busy.public static JStatResult retrieveFile(java.lang.String aOriginPathFile) throws JStatException
aOriginPathFile
- The location of the Device side file to retrieve.
JStatException
- If JStat is busy.public static JStatResult retrieveFile(java.lang.String aOriginPathFile, java.lang.String aDestFolder) throws JStatException
aOriginPathFile
- The location of the Device side file to retrieve.aDestFolder
- The folder of where to place the recieved file.
JStatException
- If the stat command fails.public static JStatResult retrieveFile(java.lang.String aOriginPathFile, java.io.File aDestPathFile) throws JStatException
aOriginPathFile
- The location of the Device side file to retrieve.aDestPathFile
- The location of where to place the recieved file.
JStatException
- If JStat is busy.public static JStatResult getScreenCapture() throws JStatException
JStatException
- If JStat is busy.public static JStatResult installFile(java.lang.String aFile) throws JStatException
aFile
- The SIS file to install.
JStatException
- If JStat is busy.public static JStatResult uninstallFile(java.lang.String aUid) throws JStatException
aUid
- The UID of the SIS file to uninstall.
JStatException
- If JStat is busy.public static JStatResult listDrives() throws JStatException
JStatException
- If JStat is busy.public static JStatResult listFiles(java.lang.String aLocation) throws JStatException
aLocation
- The folder to list the contents.
JStatException
- If JStat is busy.public static JStatResult delete(java.lang.String aLocation) throws JStatException
aLocation
- The file to delete.
JStatException
- If JStat is busy.public static JStatResult createFolder(java.lang.String aLocation) throws JStatException
aLocation
- The directory to create.
JStatException
- If JStat is busy.public static JStatResult removeFolder(java.lang.String aLocation) throws JStatException
aLocation
- The folder to delete.
JStatException
- If JStat is busy.public static JStatResult run(java.lang.String aExecutable, java.lang.String aArgs) throws JStatException
aExecutable
- The executable to run.aArgs
- The arguments to that executable.
JStatException
- If JStat is busy.public static JStatResult run(java.lang.String aExecutable) throws JStatException
aExecutable
- The executable to run.
JStatException
- If JStat is busy.public static JStatResult kill(int aPid) throws JStatException
aPid
- The Process IDentfication number (PID) of the process to kill.
JStatException
- If JStat is busy.public static JStatResult kill(java.lang.String aPid) throws JStatException
aPid
- The Process IDentfication number (PID) of the process to kill.
JStatException
- If JStat is busy.public static JStatResult poll(int aPid) throws JStatException
aPid
- The Process IDentfication number (PID) of the process to poll.
JStatException
- If JStat is busy.public static JStatResult poll(java.lang.String aPid) throws JStatException
aPid
- The Process IDentfication number (PID) of the process to poll.
JStatException
- If JStat is busy.public static JStatResult startLogging(java.lang.String aAbsoluteLogFile) throws JStatException
aAbsoluteLogFile
- The absolute path for the logger to place the log.
JStatException
- If JStat is busy.public static JStatResult stopLogging() throws JStatException
JStatException
- If JStat is busy.public static boolean isLogging()
public static java.lang.String getDeviceLogFile()
public static JStatResult rename(java.lang.String aArg0, java.lang.String aArg1) throws JStatException
aArg0
- The current name of the file.aArg1
- The new name of the file.
JStatException
- If JStat is busy.public static JStatResult checkLocation(java.lang.String aLocation) throws JStatException
aLocation
- The location to check
JStatException
- If JStat is busy.public static void restartBoard() throws JStatException
JStatException
- If JStat is busy.public static java.lang.String getVersion()
public static JStatResult getInfo() throws JStatException
JStatException
- If JStat is busy.private static JStatResult doCommand(java.lang.String aCommand) throws JStatException
aCommand
- The command to run on the device.
JStatException
- If JStat is busy.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |