|
RSE Release 3.4 |
|||||||||
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 DataStore |
_dataStore
|
protected List |
_doneStatuses
|
protected boolean |
_networkDown
|
protected Shell |
_shell
|
protected IConnectorService |
_system
|
protected List |
_workingStatuses
|
Constructor Summary | |
---|---|
StatusMonitor(IConnectorService system,
DataStore dataStore)
Construct a StatusChangeListener |
|
StatusMonitor(IConnectorService system,
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(DataElement status)
Determines whether the status is done. |
void |
dispose()
|
void |
domainChanged(DomainEvent event)
|
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(DomainEvent event)
|
void |
reInit()
|
void |
setCancelled(DataElement status)
|
void |
setDone(DataElement status)
setDone(boolean) |
void |
setWorking(DataElement status)
|
DataElement |
waitForUpdate(DataElement status)
|
DataElement |
waitForUpdate(DataElement status,
int wait)
|
DataElement |
waitForUpdate(DataElement status,
IProgressMonitor monitor)
|
DataElement |
waitForUpdate(DataElement status,
IProgressMonitor monitor,
int wait)
|
boolean |
wasCancelled(DataElement status)
|
ICommunicationsDiagnostic |
whatIsGoingOn(ICommunicationsDiagnosticFactory factory,
boolean quiet,
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 DataStore _dataStore
Constructor Detail |
---|
public StatusMonitor(IConnectorService system, 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, DataStore dataStore)
system
- the system associated with this monitordataStore
- the dataStore associated with this monitorMethod Detail |
---|
public void reInit()
public DataStore getDataStore()
public void dispose()
public boolean listeningTo(DomainEvent event)
listeningTo
in interface IDomainListener
IDomainListener.listeningTo(DomainEvent)
public void domainChanged(DomainEvent event)
domainChanged
in interface IDomainListener
IDomainListener.domainChanged(DomainEvent)
protected boolean determineStatusDone(DataElement status)
true
if status done, false
otherwise.public boolean isPassiveCommunicationsListener()
ICommunicationsListener
isPassiveCommunicationsListener
in interface ICommunicationsListener
ICommunicationsListener.isPassiveCommunicationsListener()
public void setDone(DataElement status)
public void setCancelled(DataElement status)
public void setWorking(DataElement status)
public boolean wasCancelled(DataElement status)
public void communicationsStateChange(CommunicationsEvent e)
ICommunicationsListener
communicationsStateChange
in interface ICommunicationsListener
ICommunicationsListener.communicationsStateChange(CommunicationsEvent)
public boolean isNetworkDown()
public DataElement waitForUpdate(DataElement status) throws InterruptedException
InterruptedException
public DataElement waitForUpdate(DataElement status, IProgressMonitor monitor) throws InterruptedException
InterruptedException
public DataElement waitForUpdate(DataElement status, int wait) throws InterruptedException
InterruptedException
public DataElement waitForUpdate(DataElement status, IProgressMonitor monitor, int wait) throws InterruptedException
InterruptedException
public ICommunicationsDiagnostic whatIsGoingOn(ICommunicationsDiagnosticFactory factory, boolean quiet, 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.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |