apps.statsfusion
Class StatsApplication
java.lang.Object
|
+--ants.core.Entity
|
+--ants.core.Application
|
+--apps.statsfusion.StatsApplication
- public class StatsApplication
- extends Application
- implements java.lang.Runnable
This application transverses the network, starting with the node
it is run from and returns statistics from all reachable nodes
within a specifiable depth
Parameters:
- -depth : The maximum depth to go to in the tree [15].
- -maxwait : The number of seconds to wait for responses before
timing out [30].
- -senddelay : The number of milliseconds to wait between sending
root request capsules. Helps decrease network strain [500].
- -cachetime : The number of seconds for a return capsule to wait
in the cache and for a request capsule to keep its tree information [180].
- -returnwait : The maximum number of milliseconds to wait for
return capsules before sending what has already been accumulated [10000].
- -returntimeout : The maximum number of milliseconds to wait for
unreturned capsules before timing out [60000].
- Author:
- Utah Janos Team
Method Summary |
void |
receive(Capsule unknownCap)
Handle the incoming capsule and tell it to print its information |
void |
run()
Sends out the root request capsules to all
neighboring nodes then sleeps forever |
void |
setArgs(KeyArgs k)
Parse command line arguments. |
void |
start()
Register the protocol and start the thread |
Methods inherited from class ants.core.Application |
getDefaultResources,
getDefaultTTL,
getNode,
getNodeAddress,
getPort,
getPrincipal,
send,
send,
setDefaultResources,
setDefaultTTL,
thisNode,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
StatsApplication
public StatsApplication()
throws java.lang.Exception
- Construct a non-GUI stats app.
Doesn't do anything.
receive
public void receive(Capsule unknownCap)
- Handle the incoming capsule and tell it to print its information
- Overrides:
- receive in class Application
- Tags copied from class: Application
- Parameters:
cap
- the Capsule that got delivered. XXX state of Xdr?
run
public void run()
- Sends out the root request capsules to all
neighboring nodes then sleeps forever
- Specified by:
- run in interface java.lang.Runnable
setArgs
public void setArgs(KeyArgs k)
throws InvalidKeyArgsException
- Parse command line arguments.
See the class description for a list of the arguments and
their meaning.
- Overrides:
- setArgs in class Application
- Tags copied from class: Application
- See Also:
#port
,
KeyArgs
start
public void start()
throws java.lang.Exception
- Register the protocol and start the thread
- Overrides:
- start in class Application
This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/