|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.connectorservice.dstore.util.StatusMonitor
public class StatusMonitor
Nested Class Summary | |
---|---|
protected class |
StatusMonitor.FindShell
|
Field Summary | |
---|---|
protected List |
_cancelledStatuses
|
protected org.eclipse.dstore.core.model.DataStore |
_dataStore
|
protected List |
_doneStatuses
|
protected boolean |
_networkDown
|
protected Shell |
_shell
|
protected IConnectorService |
_system
|
protected List |
_workingStatuses
|
Constructor Summary | |
---|---|
StatusMonitor(IConnectorService system,
org.eclipse.dstore.core.model.DataStore dataStore)
Construct a StatusChangeListener |
|
StatusMonitor(IConnectorService system,
org.eclipse.dstore.core.model.DataStore dataStore,
ICommunicationsDiagnosticFactory factory)
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(org.eclipse.dstore.core.model.DataElement status)
Determines whether the status is done. |
void |
dispose()
|
void |
domainChanged(org.eclipse.dstore.extra.DomainEvent event)
|
org.eclipse.dstore.core.model.DataStore |
getDataStore()
|
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.DomainEvent event)
|
void |
reInit()
|
void |
setCancelled(org.eclipse.dstore.core.model.DataElement status)
|
void |
setDone(org.eclipse.dstore.core.model.DataElement status)
setDone(boolean) |
void |
setWorking(org.eclipse.dstore.core.model.DataElement status)
|
org.eclipse.dstore.core.model.DataElement |
waitForUpdate(org.eclipse.dstore.core.model.DataElement status)
|
org.eclipse.dstore.core.model.DataElement |
waitForUpdate(org.eclipse.dstore.core.model.DataElement status,
int wait)
|
org.eclipse.dstore.core.model.DataElement |
waitForUpdate(org.eclipse.dstore.core.model.DataElement status,
IProgressMonitor monitor)
|
org.eclipse.dstore.core.model.DataElement |
waitForUpdate(org.eclipse.dstore.core.model.DataElement status,
IProgressMonitor monitor,
int wait)
|
boolean |
wasCancelled(org.eclipse.dstore.core.model.DataElement status)
|
ICommunicationsDiagnostic |
whatIsGoingOn(ICommunicationsDiagnosticFactory factory,
boolean quiet,
org.eclipse.dstore.core.model.DataElement target)
Start diagnostic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Shell _shell
protected IConnectorService _system
protected boolean _networkDown
protected List _workingStatuses
protected List _cancelledStatuses
protected List _doneStatuses
protected org.eclipse.dstore.core.model.DataStore _dataStore
Constructor Detail |
---|
public StatusMonitor(IConnectorService system, org.eclipse.dstore.core.model.DataStore dataStore, ICommunicationsDiagnosticFactory factory)
system
- the system associated with this monitordataStore
- the dataStore associated with this monitorfactory
- the diagnostic factory for this monitorpublic StatusMonitor(IConnectorService system, org.eclipse.dstore.core.model.DataStore dataStore)
system
- the system associated with this monitordataStore
- the dataStore associated with this monitorMethod Detail |
---|
public void reInit()
public org.eclipse.dstore.core.model.DataStore getDataStore()
public void dispose()
public boolean listeningTo(org.eclipse.dstore.extra.DomainEvent event)
listeningTo
in interface org.eclipse.dstore.extra.IDomainListener
IDomainListener.listeningTo(DomainEvent)
public void domainChanged(org.eclipse.dstore.extra.DomainEvent event)
domainChanged
in interface org.eclipse.dstore.extra.IDomainListener
IDomainListener.domainChanged(DomainEvent)
protected boolean determineStatusDone(org.eclipse.dstore.core.model.DataElement status)
true
if status done, false
otherwise.public boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener
in interface ICommunicationsListener
ICommunicationsListener.isPassiveCommunicationsListener()
public void setDone(org.eclipse.dstore.core.model.DataElement status)
public void setCancelled(org.eclipse.dstore.core.model.DataElement status)
public void setWorking(org.eclipse.dstore.core.model.DataElement status)
public boolean wasCancelled(org.eclipse.dstore.core.model.DataElement status)
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange
in interface ICommunicationsListener
ICommunicationsListener.communicationsStateChange(CommunicationsEvent)
public boolean isNetworkDown()
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status) throws InterruptedException
InterruptedException
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status, IProgressMonitor monitor) throws InterruptedException
InterruptedException
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status, int wait) throws InterruptedException
InterruptedException
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status, IProgressMonitor monitor, int wait) throws InterruptedException
InterruptedException
public ICommunicationsDiagnostic whatIsGoingOn(ICommunicationsDiagnosticFactory factory, boolean quiet, org.eclipse.dstore.core.model.DataElement target) throws InterruptedException
factory
- is the an implementation of ICommunicationsDiagnosticquiet
- is the flag to indicate if user should be prompted
- true for no prompt
InterruptedException
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |