|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.universal.util.StatusChangeListener
Nested Class Summary | |
---|---|
protected class |
StatusChangeListener.FindShell
|
Field Summary | |
---|---|
protected boolean |
_networkDown
|
protected boolean |
cancelled
|
static String |
copyright
|
protected boolean |
done
|
protected Vector |
historyOfTargets
|
protected IProgressMonitor |
monitor
|
protected Shell |
shell
|
protected ISystem |
system
|
protected DataElement |
target
|
Fields inherited from interface com.ibm.etools.systems.dstore.extra.internal.extra.IDomainListener |
---|
Copyright |
Constructor Summary | |
---|---|
StatusChangeListener(ISystem system)
|
|
StatusChangeListener(Shell shell,
IProgressMonitor monitor,
ISystem system)
|
|
StatusChangeListener(Shell shell,
IProgressMonitor monitor,
ISystem system,
DataElement target)
Construct a StatusChangeListener |
Method Summary | |
---|---|
void |
communicationsStateChange(CommunicationsEvent e)
This method is invoked whenever the communications state is invoked immediately before and after the state of the communications changes. |
protected boolean |
determineStatusDone()
Determines whether the status is done. |
void |
domainChanged(DomainEvent event)
|
Shell |
getShell()
|
DataElement |
getStatus()
|
boolean |
isNetworkDown()
Test if the StatusChangeListener returned because the network connection to the remote system was broken. |
boolean |
isPassiveCommunicationsListener()
This method determines if the communications listener is a passive or active listener. |
boolean |
listeningTo(DomainEvent event)
|
void |
setDone(boolean done)
setDone(boolean) |
void |
setStatus(DataElement p_target)
|
DataElement |
waitForUpdate()
Wait for the the status DataElement to be refreshed |
DataElement |
waitForUpdate(ICommunicationsDiagnosticFactory factory)
|
DataElement |
waitForUpdate(ICommunicationsDiagnosticFactory factory,
int wait)
|
boolean |
wasCancelled()
|
ICommunicationsDiagnostic |
whatIsGoingOn(ICommunicationsDiagnosticFactory factory,
boolean quiet)
Start diagnostic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
protected DataElement target
protected Shell shell
protected IProgressMonitor monitor
protected ISystem system
protected boolean _networkDown
protected boolean done
protected boolean cancelled
protected Vector historyOfTargets
Constructor Detail |
public StatusChangeListener(Shell shell, IProgressMonitor monitor, ISystem system, DataElement target)
shell
- A valid Shell objectmonitor
- A progress monitor if you want this object to check if
the user presses cancel while waiting for the status object
to be updatedtarget
- The status DataElement for which you wish to wait for an updatepublic StatusChangeListener(Shell shell, IProgressMonitor monitor, ISystem system)
public StatusChangeListener(ISystem system)
Method Detail |
public void setStatus(DataElement p_target)
public DataElement getStatus()
public boolean listeningTo(DomainEvent event)
listeningTo
in interface IDomainListener
IDomainListener.listeningTo(DomainEvent)
public void domainChanged(DomainEvent event)
domainChanged
in interface IDomainListener
IDomainListener.domainChanged(DomainEvent)
public void setDone(boolean done)
public Shell getShell()
getShell
in interface IDomainListener
IDomainListener.getShell()
public boolean wasCancelled()
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange
in interface ICommunicationsListener
ICommunicationsListener.communicationsStateChange(CommunicationsEvent)
public DataElement waitForUpdate() throws InterruptedException
InterruptedException
- if the thread was interrupted.public DataElement waitForUpdate(ICommunicationsDiagnosticFactory factory) throws InterruptedException
InterruptedException
public DataElement waitForUpdate(ICommunicationsDiagnosticFactory factory, int wait) throws InterruptedException
InterruptedException
protected boolean determineStatusDone()
true
if status done, false
otherwise.public boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener
in interface ICommunicationsListener
ICommunicationsListener.isPassiveCommunicationsListener()
public ICommunicationsDiagnostic whatIsGoingOn(ICommunicationsDiagnosticFactory factory, boolean quiet) throws InterruptedException
InterruptedException
public boolean isNetworkDown()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |