|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.jonclark.gui.ProgressClient
public class ProgressClient
A client program that sends the status of its progress to a ProgressServer or group of ProgressServers, if possible. If a connection cannot be made to one or more of the progress servers, the program attempts to connect to them at regular intervals while the task continues uninterrupted.
| Field Summary | |
|---|---|
static int |
TYPE_BAR
|
static int |
TYPE_TEXT
|
static int |
UPDATE_DELAY
|
| Constructor Summary | |
|---|---|
ProgressClient(Properties props,
Logger parent)
|
|
| Method Summary | |
|---|---|
void |
connectionReestablished(info.jonclark.clientserver.ClientInterface client)
Connection has just been reestablished. |
static void |
main(String[] args)
|
void |
sendFullStatus(info.jonclark.clientserver.ClientInterface client)
Send the full status of the task. |
void |
setDone(boolean success)
Announce that this task is done. |
void |
setMaximumValue(int n)
Set the maximum integer value of the progress bar |
void |
setProgress(int n)
|
void |
setStallTimeout(int nSec)
Tell the server how long to wait before declaring this process stalled. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_BAR
public static final int TYPE_TEXT
public static final int UPDATE_DELAY
| Constructor Detail |
|---|
public ProgressClient(Properties props,
Logger parent)
throws PropertiesException
PropertiesException| Method Detail |
|---|
public void setProgress(int n)
public void setMaximumValue(int n)
n - The maximum valuepublic void setDone(boolean success)
success - Was this task successful? If so,
the progress will be set to 100% and the bar will
turn green. If not, the bar will turn red and it
will stay at the same percentage.public void setStallTimeout(int nSec)
nSec - How many seconds before a stall occurspublic void connectionReestablished(info.jonclark.clientserver.ClientInterface client)
info.jonclark.clientserver.ReconnectionListener
connectionReestablished in interface info.jonclark.clientserver.ReconnectionListenerpublic void sendFullStatus(info.jonclark.clientserver.ClientInterface client)
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||