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.connectorservice.dstore.util
Class ConnectionStatusListener

java.lang.Object
  extended by 
org.eclipse.rse.connectorservice.dstore.util.ConnectionStatusListener
All Implemented Interfaces:
org.eclipse.dstore.extra.IDomainListener, IRunnableWithProgress

public class ConnectionStatusListener
extends Object
implements org.eclipse.dstore.extra.IDomainListener, IRunnableWithProgress


Field Summary
protected   IConnectorService _connection
           
protected  boolean _connectionDown
           
protected  org.eclipse.dstore.core.model.DataElement _dataStoreStatus
           
 
Constructor Summary
ConnectionStatusListener (org.eclipse.dstore.core.model.DataElement status, IConnectorService connection)
           
 
Method Summary
 void domainChanged (org.eclipse.dstore.extra.DomainEvent event)
           
protected   IRunnableContext getRunnableContext ( Shell rshell)
          Get the progress monitor dialog for this operation.
  Shell getShell ()
           
protected  void handleConnectionDown ()
          The handleConnectionDown method is invoked if the network connection between the client and server goes down while connected.
protected   Shell internalGetShell ()
           
 boolean isConnectionDown ()
          Callback method for the IConnectorService to determine if the connection is down.
 boolean listeningTo (org.eclipse.dstore.extra.DomainEvent event)
           
 void run ( IProgressMonitor monitor)
           
protected  void showDisconnectCancelledMessage ( Shell shell, String hostName, int port)
          Show an error message when the user cancels the disconnection.
protected  void showDisconnectErrorMessage ( Shell shell, String hostName, int port, Exception exc)
          Show an error message when the disconnection fails.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dataStoreStatus

protected org.eclipse.dstore.core.model.DataElement _dataStoreStatus

_connection

protected 
IConnectorService _connection

_connectionDown

protected boolean _connectionDown
Constructor Detail

ConnectionStatusListener

public ConnectionStatusListener(org.eclipse.dstore.core.model.DataElement status,
                                
IConnectorService connection)
Parameters:
status - The status element for the DataStore handling this connection.
Method Detail

internalGetShell

protected 
Shell internalGetShell()

handleConnectionDown

protected void handleConnectionDown()
The handleConnectionDown method is invoked if the network connection between the client and server goes down while connected. Currently this method displays an error to the user and the subsytem is disconnected.


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)

getShell

public 
Shell getShell()

isConnectionDown

public boolean isConnectionDown()
Callback method for the IConnectorService to determine if the connection is down. This is called by the disconnect method to determine if we can do saves or not.


run

public void run(
IProgressMonitor monitor)
         throws 
InvocationTargetException,
                
InterruptedException
Specified by:
run in interface IRunnableWithProgress
Throws:
InvocationTargetException
InterruptedException

getRunnableContext

protected 
IRunnableContext getRunnableContext(
Shell rshell)
Get the progress monitor dialog for this operation. We try to use one for all phases of a single operation, such as connecting and resolving.


showDisconnectErrorMessage

protected void showDisconnectErrorMessage(
Shell shell,
                                          
String hostName,
                                          int port,
                                          
Exception exc)
Show an error message when the disconnection fails. Shows a common message by default. Overridable.


showDisconnectCancelledMessage

protected void showDisconnectCancelledMessage(
Shell shell,
                                              
String hostName,
                                              int port)
Show an error message when the user cancels the disconnection. Shows a common message by default. Overridable.


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