|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.subsystems.files.dstore.old.StatusChangeListener
| Nested Class Summary | |
|---|---|
protected static class |
StatusChangeListener.FindShell
|
| Field Summary | |
|---|---|
protected boolean |
_networkDown
|
protected boolean |
cancelled
|
protected boolean |
done
|
protected Vector |
historyOfTargets
|
protected IProgressMonitor |
monitor
|
protected Shell |
shell
|
protected IConnectorService |
system
|
protected org.eclipse.dstore.core.model.DataElement |
target
|
| Constructor Summary | |
|---|---|
StatusChangeListener(IConnectorService system)
|
|
StatusChangeListener(Shell shell,
IProgressMonitor monitor,
IConnectorService system)
|
|
StatusChangeListener(Shell shell,
IProgressMonitor monitor,
IConnectorService system,
org.eclipse.dstore.core.model.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(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
|
Shell |
getShell()
|
org.eclipse.dstore.core.model.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(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
|
void |
setDone(boolean done)
setDone(boolean) |
void |
setStatus(org.eclipse.dstore.core.model.DataElement p_target)
|
org.eclipse.dstore.core.model.DataElement |
waitForUpdate()
Wait for the the status DataElement to be refreshed |
org.eclipse.dstore.core.model.DataElement |
waitForUpdate(ICommunicationsDiagnosticFactory factory)
|
org.eclipse.dstore.core.model.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 |
protected org.eclipse.dstore.core.model.DataElement target
protected Shell shell
protected IProgressMonitor monitor
protected IConnectorService system
protected boolean _networkDown
protected boolean done
protected boolean cancelled
protected Vector historyOfTargets
| Constructor Detail |
public StatusChangeListener(Shell shell,
IProgressMonitor monitor,
IConnectorService system,
org.eclipse.dstore.core.model.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 update
public StatusChangeListener(Shell shell,
IProgressMonitor monitor,
IConnectorService system)
public StatusChangeListener(IConnectorService system)
| Method Detail |
public void setStatus(org.eclipse.dstore.core.model.DataElement p_target)
public org.eclipse.dstore.core.model.DataElement getStatus()
public boolean listeningTo(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
listeningTo in interface org.eclipse.dstore.extra.internal.extra.IDomainListenerIDomainListener.listeningTo(DomainEvent)public void domainChanged(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
domainChanged in interface org.eclipse.dstore.extra.internal.extra.IDomainListenerIDomainListener.domainChanged(DomainEvent)public void setDone(boolean done)
public Shell getShell()
public boolean wasCancelled()
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange in interface ICommunicationsListenerICommunicationsListener.communicationsStateChange(CommunicationsEvent)
public org.eclipse.dstore.core.model.DataElement waitForUpdate()
throws InterruptedException
InterruptedException - if the thread was interrupted.
public org.eclipse.dstore.core.model.DataElement waitForUpdate(ICommunicationsDiagnosticFactory factory)
throws InterruptedException
InterruptedException
public org.eclipse.dstore.core.model.DataElement waitForUpdate(ICommunicationsDiagnosticFactory factory,
int wait)
throws InterruptedException
InterruptedExceptionprotected boolean determineStatusDone()
true if status done, false otherwise.public boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener in interface ICommunicationsListenerICommunicationsListener.isPassiveCommunicationsListener()
public ICommunicationsDiagnostic whatIsGoingOn(ICommunicationsDiagnosticFactory factory,
boolean quiet)
throws InterruptedException
quiet - is the flag to indicate if user should be prompted
- true for no prompt
InterruptedExceptionpublic boolean isNetworkDown()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||