org.eclipse.rse.services.dstore.util
Class DStoreStatusMonitor
java.lang.Object
org.eclipse.rse.services.dstore.util.DStoreStatusMonitor
-
All Implemented Interfaces:
- org.eclipse.dstore.extra.IDomainListener
-
public class DStoreStatusMonitor
- extends
Object
- implements org.eclipse.dstore.extra.IDomainListener
Constructor Summary
|
DStoreStatusMonitor
(org.eclipse.dstore.core.model.DataStore dataStore)
Construct a StatusChangeListener |
Method Summary
|
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.DataElement
|
getCommandStatus
(org.eclipse.dstore.core.model.DataElement cmdDescriptor,
org.eclipse.dstore.core.model.DataElement subject)
Returns the status of a running command for the specified cmd desciptor
and subject. |
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
()
|
boolean
|
listeningTo
(org.eclipse.dstore.extra.DomainEvent event)
|
void
|
notifyUpdate
()
Causes all threads waiting for this class request to be filled
to wake up. |
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)
|
void
|
waitForUpdate
()
Causes the current thread to wait until this class request has been
fulfilled. |
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)
|
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_networkDown
protected boolean _networkDown
_workingStatuses
protected
List _workingStatuses
_cancelledStatuses
protected
List _cancelledStatuses
_doneStatuses
protected
List _doneStatuses
_dataStore
protected org.eclipse.dstore.core.model.DataStore _dataStore
DStoreStatusMonitor
public DStoreStatusMonitor(org.eclipse.dstore.core.model.DataStore dataStore)
- Construct a StatusChangeListener
-
Parameters:
-
dataStore
- the dataStore associated with this monitor
reInit
public void reInit()
-
-
getDataStore
public org.eclipse.dstore.core.model.DataStore getDataStore()
-
-
dispose
public void dispose()
-
-
listeningTo
public boolean listeningTo(org.eclipse.dstore.extra.DomainEvent event)
-
-
Specified by:
-
listeningTo
in interface org.eclipse.dstore.extra.IDomainListener
-
-
See Also:
-
IDomainListener.listeningTo(DomainEvent)
domainChanged
public void domainChanged(org.eclipse.dstore.extra.DomainEvent event)
-
-
Specified by:
-
domainChanged
in interface org.eclipse.dstore.extra.IDomainListener
-
-
See Also:
-
IDomainListener.domainChanged(DomainEvent)
determineStatusDone
public boolean determineStatusDone(org.eclipse.dstore.core.model.DataElement status)
- Determines whether the status is done.
-
-
-
Returns:
-
true
if status done, false
otherwise.
isPassiveCommunicationsListener
public boolean isPassiveCommunicationsListener()
-
-
-
Returns:
- true if the the monitor is passive. In this case it is false.
setDone
public void setDone(org.eclipse.dstore.core.model.DataElement status)
- setDone(boolean)
-
-
setCancelled
public void setCancelled(org.eclipse.dstore.core.model.DataElement status)
-
-
setWorking
public void setWorking(org.eclipse.dstore.core.model.DataElement status)
-
-
wasCancelled
public boolean wasCancelled(org.eclipse.dstore.core.model.DataElement status)
-
-
isNetworkDown
public boolean isNetworkDown()
- Test if the StatusChangeListener returned because the network connection to the
remote system was broken.
-
-
waitForUpdate
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status)
throws
InterruptedException
-
-
-
Throws:
-
InterruptedException
waitForUpdate
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status,
IProgressMonitor monitor)
throws
InterruptedException
-
-
-
Throws:
-
InterruptedException
waitForUpdate
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status,
int wait)
throws
InterruptedException
-
-
-
Throws:
-
InterruptedException
waitForUpdate
public org.eclipse.dstore.core.model.DataElement waitForUpdate(org.eclipse.dstore.core.model.DataElement status,
IProgressMonitor monitor,
int wait)
throws
InterruptedException
-
-
-
Throws:
-
InterruptedException
getCommandStatus
public org.eclipse.dstore.core.model.DataElement getCommandStatus(org.eclipse.dstore.core.model.DataElement cmdDescriptor,
org.eclipse.dstore.core.model.DataElement subject)
- Returns the status of a running command for the specified cmd desciptor
and subject. If there is no such command running, then null is returned.
-
-
-
Parameters:
-
cmdDescriptor
- -
subject
-
-
Returns:
- the status of the command.
-
Since:
- 3.0
waitForUpdate
public void waitForUpdate()
- Causes the current thread to wait until this class request has been
fulfilled.
-
-
notifyUpdate
public void notifyUpdate()
- Causes all threads waiting for this class request to be filled
to wake up.
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.