Package ome.formats.importer.util
Class ClientKeepAlive
- java.lang.Object
-
- ome.formats.importer.util.ClientKeepAlive
-
- All Implemented Interfaces:
java.lang.Runnable
,IObservable
public class ClientKeepAlive extends java.lang.Object implements java.lang.Runnable, IObservable
ARunnable
which keeps aConnector
's server-side resources from timing out. NOTE: Upon catching an exception, theConnector
is logged out.
-
-
Constructor Summary
Constructors Constructor Description ClientKeepAlive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addObserver(IObserver object)
Add observer for notificationboolean
deleteObserver(IObserver object)
Delete observerOMEROMetadataStoreClient
getClient()
void
notifyLogout()
void
notifyObservers(ImportEvent event)
Notify observers of eventvoid
run()
void
setClient(OMEROMetadataStoreClient client)
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
notifyLogout
public void notifyLogout()
-
getClient
public OMEROMetadataStoreClient getClient()
- Returns:
- OMEROMetadataStoreClient
-
setClient
public void setClient(OMEROMetadataStoreClient client)
- Parameters:
client
- - OMEROMetadataStoreClient to set
-
addObserver
public boolean addObserver(IObserver object)
Description copied from interface:IObservable
Add observer for notification- Specified by:
addObserver
in interfaceIObservable
- Parameters:
object
- - observer object- Returns:
- true if added
-
deleteObserver
public boolean deleteObserver(IObserver object)
Description copied from interface:IObservable
Delete observer- Specified by:
deleteObserver
in interfaceIObservable
- Parameters:
object
- - observer to delete- Returns:
- true if deleted
-
notifyObservers
public void notifyObservers(ImportEvent event)
Description copied from interface:IObservable
Notify observers of event- Specified by:
notifyObservers
in interfaceIObservable
- Parameters:
event
- - event that happened
-
-