dsnserver
Class XmlRpcTargetFlash
java.lang.Object
dsnserver.XmlRpcTargetFlash
- All Implemented Interfaces:
- org.apache.xmlrpc.AuthenticatedXmlRpcHandler
public class XmlRpcTargetFlash
- extends java.lang.Object
- implements org.apache.xmlrpc.AuthenticatedXmlRpcHandler
A function which is used as a XmlRpc function.
It is used for flashing a target.
- Author:
- kaltt
Field Summary |
(package private) static java.lang.String |
msg
|
(package private) Communication |
myComm
|
(package private) org.apache.xmlrpc.WebServer |
server
|
Method Summary |
boolean |
checkPassword(java.lang.String user,
java.lang.String password)
|
protected java.lang.Object |
execute(java.lang.String method,
java.util.Vector v)
|
java.lang.Object |
execute(java.lang.String method,
java.util.Vector v,
java.lang.String user,
java.lang.String password)
|
static void |
setmsg(java.lang.String setmsg)
|
java.lang.String |
targetFlash(java.lang.String DSNID)
A function which is used as a XmlRpc function. |
private void |
waitmillis(long millis)
For waiting millis milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myComm
Communication myComm
server
org.apache.xmlrpc.WebServer server
msg
static java.lang.String msg
XmlRpcTargetFlash
public XmlRpcTargetFlash(Communication comm,
org.apache.xmlrpc.WebServer server)
setmsg
public static void setmsg(java.lang.String setmsg)
targetFlash
public java.lang.String targetFlash(java.lang.String DSNID)
throws java.lang.Exception
- A function which is used as a XmlRpc function.
It is used for flashing a target.
- Parameters:
String
- DSNID ("all" for all nodes)
- Returns:
- String msg (it is set to the output of
command tg flash if the command is not send to all
nodes, otherwise it gives back "unknown". After
20 seconds it gives back unknown as well.)
- Throws:
java.lang.Exception
waitmillis
private void waitmillis(long millis)
- For waiting millis milliseconds.
execute
public java.lang.Object execute(java.lang.String method,
java.util.Vector v,
java.lang.String user,
java.lang.String password)
- Specified by:
execute
in interface org.apache.xmlrpc.AuthenticatedXmlRpcHandler
execute
protected java.lang.Object execute(java.lang.String method,
java.util.Vector v)
checkPassword
public boolean checkPassword(java.lang.String user,
java.lang.String password)