org.eclipse.rse.connectorservice.dstore.util
Class ConnectionStatusListener
java.lang.Object
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
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_dataStoreStatus
protected org.eclipse.dstore.core.model.DataElement _dataStoreStatus
_connection
protected
IConnectorService _connection
_connectionDown
protected boolean _connectionDown
ConnectionStatusListener
public ConnectionStatusListener(org.eclipse.dstore.core.model.DataElement status,
IConnectorService connection)
-
Parameters:
-
status
- The status element for the DataStore handling this connection.
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.
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.