Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.dstore.util
Class DStoreStatusMonitor

java.lang.Object
  extended by 
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


Field Summary
protected   List _cancelledStatuses
           
protected  org.eclipse.dstore.core.model.DataStore _dataStore
           
protected   List _doneStatuses
           
protected  boolean _networkDown
           
protected   List _workingStatuses
           
 
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
 

Field Detail

_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
Constructor Detail

DStoreStatusMonitor

public DStoreStatusMonitor(org.eclipse.dstore.core.model.DataStore dataStore)
Construct a StatusChangeListener

Parameters:
dataStore - the dataStore associated with this monitor
Method Detail

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.


RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire