Package omero.grid.monitors
Class _MonitorServerTie
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid.monitors._MonitorServerDisp
-
- omero.grid.monitors._MonitorServerTie
-
- All Implemented Interfaces:
Ice.Object
,Ice.TieBase
,java.io.Serializable
,java.lang.Cloneable
,_MonitorServerOperations
,_MonitorServerOperationsNC
,MonitorServer
public class _MonitorServerTie extends _MonitorServerDisp implements Ice.TieBase
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Fields inherited from class omero.grid.monitors._MonitorServerDisp
__ids
-
Fields inherited from interface omero.grid.monitors.MonitorServer
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _MonitorServerTie()
_MonitorServerTie(_MonitorServerOperations delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
createMonitor(MonitorType mType, WatchEventType[] eTypes, PathMode pMode, java.lang.String pathString, java.lang.String[] whitelist, java.lang.String[] blacklist, float timeout, int blockSize, boolean ignoreSysFiles, boolean ignoreDirEvents, boolean platformCheck, MonitorClientPrx proxy, Ice.Current __current)
Create a monitor of events.void
destroyMonitor(java.lang.String id, Ice.Current __current)
Destroy an existing monitor.boolean
equals(java.lang.Object rhs)
MonitorState
getMonitorState(java.lang.String id, Ice.Current __current)
Get the state of an existing monitor.int
hashCode()
java.lang.Object
ice_delegate()
void
ice_delegate(java.lang.Object delegate)
void
startMonitor(java.lang.String id, Ice.Current __current)
Start an existing monitor.void
stopMonitor(java.lang.String id, Ice.Current __current)
Stop an existing monitor.-
Methods inherited from class omero.grid.monitors._MonitorServerDisp
___createMonitor, ___destroyMonitor, ___getMonitorState, ___startMonitor, ___stopMonitor, __dispatch, __readImpl, __writeImpl, createMonitor, destroyMonitor, getMonitorState, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, startMonitor, stopMonitor
-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
_MonitorServerTie
public _MonitorServerTie()
-
_MonitorServerTie
public _MonitorServerTie(_MonitorServerOperations delegate)
-
-
Method Detail
-
ice_delegate
public java.lang.Object ice_delegate()
- Specified by:
ice_delegate
in interfaceIce.TieBase
-
ice_delegate
public void ice_delegate(java.lang.Object delegate)
- Specified by:
ice_delegate
in interfaceIce.TieBase
-
equals
public boolean equals(java.lang.Object rhs)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
createMonitor
public java.lang.String createMonitor(MonitorType mType, WatchEventType[] eTypes, PathMode pMode, java.lang.String pathString, java.lang.String[] whitelist, java.lang.String[] blacklist, float timeout, int blockSize, boolean ignoreSysFiles, boolean ignoreDirEvents, boolean platformCheck, MonitorClientPrx proxy, Ice.Current __current) throws OmeroFSError
Description copied from interface:_MonitorServerOperations
Create a monitor of events. A exception will be raised if the event type or path mode is not supported by the Monitor implementation for a given OS. An exception will be raised if the path does not exist or is inaccessible to the monitor. An exception will be raised if a monitor cannot be created for any other reason.- Specified by:
createMonitor
in interface_MonitorServerOperations
- Parameters:
mType
- type of monitor to create (MonitorType).eTypes
- a sequence of watch event type to monitor (WatchEventTypeList).pMode
- path mode of monitor (PathMode).pathString
- full path of directory of interest (string).whitelist
- list of files or extensions of interest (Ice::StringSeq).blacklist
- list of directories, files or extensions that are not of interest (Ice::StringSeq).timeout
- time in seconds fo monitor to time out (float).blockSize
- the number of events to pack into each notification (int).ignoreSysFiles
- ignore system files or not (bool).ignoreDirEvents
- ignore directory events (bool).platformCheck
- if true strictly check platform (bool).proxy
- a proxy of the client to which notifications will be sent (MonitorClient*).__current
- The Current object for the invocation.- Returns:
- monitorId, a uuid1 (string).
- Throws:
OmeroFSError
-
destroyMonitor
public void destroyMonitor(java.lang.String id, Ice.Current __current) throws OmeroFSError
Description copied from interface:_MonitorServerOperations
Destroy an existing monitor. Attempting to destroy a monitor that is running will try to first stop the monitor and then destroy it. An exception will be raised if the id does not correspond to an existing monitor. An exception will be raised if a monitor cannot be destroyed (or stopped and destroyed) for any other reason, in this case the monitor's state cannot be assumed.- Specified by:
destroyMonitor
in interface_MonitorServerOperations
- Parameters:
id
- monitor id (string).__current
- The Current object for the invocation.- Throws:
OmeroFSError
-
getMonitorState
public MonitorState getMonitorState(java.lang.String id, Ice.Current __current) throws OmeroFSError
Description copied from interface:_MonitorServerOperations
Get the state of an existing monitor. An exception will be raised if the id does not correspond to an existing monitor.- Specified by:
getMonitorState
in interface_MonitorServerOperations
- Parameters:
id
- monitor id (string).__current
- The Current object for the invocation.- Returns:
- the monitor state (MonitorState).
- Throws:
OmeroFSError
-
startMonitor
public void startMonitor(java.lang.String id, Ice.Current __current) throws OmeroFSError
Description copied from interface:_MonitorServerOperations
Start an existing monitor. An exception will be raised if the id does not correspond to an existing monitor. An exception will be raised if a monitor cannot be started for any other reason, in this case the monitor's state cannot be assumed.- Specified by:
startMonitor
in interface_MonitorServerOperations
- Parameters:
id
- monitor id (string).__current
- The Current object for the invocation.- Throws:
OmeroFSError
-
stopMonitor
public void stopMonitor(java.lang.String id, Ice.Current __current) throws OmeroFSError
Description copied from interface:_MonitorServerOperations
Stop an existing monitor. Attempting to stop a monitor that is not running raises no exception. An exception will be raised if the id does not correspond to an existing monitor. An exception will be raised if a monitor cannot be stopped for any other reason, in this case the monitor's state cannot be assumed.- Specified by:
stopMonitor
in interface_MonitorServerOperations
- Parameters:
id
- monitor id (string).__current
- The Current object for the invocation.- Throws:
OmeroFSError
-
-