|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RpcFunctions
Method Summary | |
---|---|
int |
addHostsToSlice(Map auth,
Object[] hosts)
|
int |
addRandomHostsFromPLC(Map auth,
int numberOfHosts)
Requests "numberOfHosts" random hosts from PLC and tries to connect to them. |
int |
addRandomSitesFromPLC(Map auth,
int numberOfSites)
Requests "numberOfSites" random sites from PLC and tries to connect to one random host in each site . |
double |
commandCompleted(Map auth,
int commandId)
Returns what percentage of hosts that has completed command "commandId" |
int |
connectToHost(Map auth,
String hostname)
Request the controller to connect to host hostname. |
int |
download(Map auth,
String remotePath,
String localPath,
String fileFilter,
String localNamingType)
|
int |
fetchCoMonData(Map auth)
|
Object[] |
getAllHosts(Map auth)
|
Object[] |
getAvailableHosts(Map auth)
|
String |
getCommand(Map auth,
int commandId)
return the command associated with a certain commmandId |
Object[] |
getCommandOverview(Map auth,
int commandId)
|
Object[] |
getCommandStats(Map auth,
int connectionId)
|
Object[] |
getCommandStatusOverview(Map auth)
used by the gui to get a summary of the status of each command |
double |
getCoMonProgress(Map auth)
|
Object[] |
getConnectedHosts(Map auth)
Queries the controller for the list of nodes currently connected to Lazy wrapper for PlanetLab.getSuccessfulHosts(auth,0) |
Map |
getExitStats(Map auth,
int commandId)
returns a map of exitcode=>count |
String |
getHostname(Map auth,
int connectionId)
returns the hostname given a connectionId |
Object[] |
getHostsNotInSlice(Map auth)
|
Object[] |
getHostStats(Map auth,
Object[] hosts)
|
Object[] |
getHostStatusOverview(Map auth)
used by the gui to get a summary of the status of each host |
Object[] |
getSuccessfulHosts(Map auth,
int commandId)
Queries the controller for a list of all nodes that succesfully have completed all commands. |
int |
kill(Map auth,
int commandId)
|
int |
queueCommand(Map auth,
String command)
lazy wrapper for queueCommand(Map auth, String command, 0, false), Running "command" with no timeout and continuing with subsequent commands even if the command returns a non non-zero exit code |
int |
queueCommand(Map auth,
String command,
double timeout)
lazy wrapper for queueCommand(Map auth, String command, double timeout, false), Running the command until it completes, or gets killed because the timeout expired. |
int |
queueCommand(Map auth,
String command,
double timeout,
boolean stopOnError)
Add the command "command" to the queue of command to execute Running the command until it completes, or gets killed because the timeout expired. |
int |
queueCommand(Map auth,
String command,
double timeout,
int stopOnError)
|
int |
queueCommand(Map auth,
String command,
int timeout)
lazy wrapper for queueCommand(Map auth, String command, double timeout, false), Running the command until it completes, or gets killed because the timeout expired. |
Object[] |
readConsole(Map auth,
int connectionId,
int fromRow)
Reads the consle from ssh connection, |
int |
shutdown(Map auth)
stops the RPC Server and closes all current ssh connections, including any running scp transfers |
int |
totalCommandNum(Map auth)
returns the total number of commands that have been queued on the controller |
int |
totalHostNum(Map auth)
returns the total number of hosts assisated with the system |
int |
upload(Map auth,
String path,
double timeout,
boolean stopOnError)
Uploads a local file or directory to all hosts The upload is implemented as follows: First a md5 checksum is calculated of the file or on all files in the specified directory and subdirectories Secondly md5s are calculated on the destination to check if the file(s) already exists. |
int |
upload(Map auth,
String path,
double timeout,
int stopOnError)
|
Field Detail |
---|
static final String PLANET_LAB_CONNECT_TO_HOST
static final String PLANET_LAB_TOTAL_COMMAND_NUM
static final String PLANET_LAB_GET_HOST_STATUS_OVERVIEW
static final String PLANET_LAB_GET_COMMAND_STATUS_OVERVIEW
static final String PLANET_LAB_GET_COMMAND_OVERVIEW
static final String PLANET_LAB_TOTAL_HOST_NUM
static final String PLANET_LAB_READ_CONSOLE
static final String PLANET_LAB_GET_HOSTNAME
static final String PLANET_LAB_SHUTDOWN
static final String PLANET_LAB_QUEUE_COMMAND
static final String PLANET_LAB_GET_COMMAND
static final String PLANET_LAB_ADD_RANDOM_HOSTS_FROM_PLC
static final String PLANET_LAB_ADD_RANDOM_SITES_FROM_PLC
static final String PLANET_LAB_UPLOAD
static final String PLANET_LAB_DOWNLOAD
static final String SPECIAL_COMMAND_UPLOAD_DIR
static final String SPECIAL_COMMAND_DOWNLOAD_DIR
static final String CONNECT_FAILED_POLICY_SITE
static final String CONNECT_FAILED_POLICY_ANY
static final String CONNECT_FAILED_POLICY_CLOSEST
static final String PLANET_LAB_GET_COMMAND_STATS
static final String PLANET_LAB_KILL_COMMAND
static final String PLANET_LAB_GET_HOSTS_NOT_IN_SLICE
static final String PLANET_LAB_ADD_HOSTS_TO_SLICE
static final String PLANET_LAB_FETCH_COMON_DATA
static final String PLANET_LAB_GET_COMON_PROGRESS
static final String PLANET_LAB_GET_HOST_STATS
static final String PLANET_LAB_GET_ALL_HOSTS
static final String PLANET_LAB_GET_AVAILABLE_HOSTS
Method Detail |
---|
int addRandomHostsFromPLC(Map auth, int numberOfHosts)
auth
- authentication information that is matching the information on
the server. The values checked are Username and AuthString.
These can be provided in clear text or as md5 hashes. If md5
hashes are used, the Username field should contain the md5
hash of the username string, the AuthString field should
contain the md5 hash of the username string concatenated with
the password string. The use of md5 hashes makes it difficult
for an attacker to get the password by monitoring the network.
Keep in mind that the password can be extracted from the md5
hashes by an attacker by using a dictonary.numberOfHosts
- number of hosts to request
int addRandomSitesFromPLC(Map auth, int numberOfSites)
auth
- authentication information that is matching the information on
the servernumberOfSites
- number of sites to request
double commandCompleted(Map auth, int commandId)
auth
- authentication information that is matching the information on
the servercommandId
- the id of the command to query
int connectToHost(Map auth, String hostname)
auth
- authentication information that is matching the information on
the serverhostname
- hostname or ip address to connect to
Object[] getConnectedHosts(Map auth)
auth
- authentication
Object[] getSuccessfulHosts(Map auth, int commandId)
auth
- authentication infocommandId
- the command that must have completed succesfully, or -1 for
all commands
String getCommand(Map auth, int commandId)
auth
- authentication information that is matching the information on
the servercommandId
-
Object[] getCommandStatusOverview(Map auth)
auth
-
Object[] getCommandOverview(Map auth, int commandId)
Map getExitStats(Map auth, int commandId)
auth
- authentication information that is matching the information on
the servercommandId
- the id of the command to query
String getHostname(Map auth, int connectionId)
auth
- authentication information that is matching the information on
the serverconnectionId
- the connectionId of the host to get the hostname of
Object[] getHostStatusOverview(Map auth)
auth
-
int queueCommand(Map auth, String command)
auth
- authentication information that is matching the information on
the servercommand
- the command to queue
int queueCommand(Map auth, String command, double timeout)
auth
- authentication information that is matching the information on
the servercommand
- the command to queuetimeout
- the maximum number of seconds (or fractions of a second) the
command can run, after this the command will get killed
int queueCommand(Map auth, String command, double timeout, boolean stopOnError)
auth
- authentication information that is matching the information on
the servercommand
- the command to queuetimeout
- the maximum number of seconds (or fractions of a second) the
command can run, after this the command will get killedstopOnError
- controller if execution of commands should stop if the
commands exit with a non-zero exit code. If stop on error is
enabled execution is halted until the user override.
int queueCommand(Map auth, String command, double timeout, int stopOnError)
int queueCommand(Map auth, String command, int timeout)
auth
- authentication information that is matching the information on
the servercommand
- the command to queuetimeout
- the maximum number of seconds the command can run, after this
the command will get killed
Object[] readConsole(Map auth, int connectionId, int fromRow)
auth
- authentication information that is matching the information on
the serverconnectionId
- The connection ID of the host to read the console offromRow
- Row to start reading from, useful when only new information is
interesting, like for example in a terminal like window
int shutdown(Map auth)
auth
- authentication information that is matching the information on
the server
int kill(Map auth, int commandId)
int totalCommandNum(Map auth)
auth
- authentication information that is matching the information on
the server
int totalHostNum(Map auth)
auth
- authentication information that is matching the information on
the server
int upload(Map auth, String path, double timeout, boolean stopOnError)
auth
- authentication information that is matching the information on
the serverpath
- the local directory to uploadtimeout
- maximum time allowed for the uploadstopOnError
- stop exection on command if the upload was unsuccessful
int upload(Map auth, String path, double timeout, int stopOnError)
Object[] getCommandStats(Map auth, int connectionId)
int download(Map auth, String remotePath, String localPath, String fileFilter, String localNamingType)
int addHostsToSlice(Map auth, Object[] hosts)
Object[] getHostsNotInSlice(Map auth)
Object[] getAllHosts(Map auth)
Object[] getAvailableHosts(Map auth)
int fetchCoMonData(Map auth)
double getCoMonProgress(Map auth)
Object[] getHostStats(Map auth, Object[] hosts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |