Package omero.grid.monitors
Class _FileServerDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid.monitors._FileServerDisp
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_FileServerOperations,_FileServerOperationsNC,FileServer
- Direct Known Subclasses:
_FileServerTie
public abstract class _FileServerDisp extends Ice.ObjectImpl implements FileServer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.grid.monitors.FileServer
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _FileServerDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ice.DispatchStatus___fileExists(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getATime(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getBaseName(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getBulkDirectory(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getCTime(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getDirectory(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getMTime(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getOwner(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getSHA1(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getSize(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getStats(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___isDir(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___isFile(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___readBlock(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)Ice.DispatchStatus__dispatch(IceInternal.Incoming in, Ice.Current __current)protected void__readImpl(IceInternal.BasicStream __is)protected void__writeImpl(IceInternal.BasicStream __os)booleanfileExists(java.lang.String fileId)Query the existence of a file An exception will be raised if the method fails to determine the existence.floatgetATime(java.lang.String fileId)Get atime of a file An exception will be raised if the file no longer exists or is inaccessible.java.lang.StringgetBaseName(java.lang.String fileId)Get base name of a file, this is the name stripped of any path, e.g.FileStats[]getBulkDirectory(java.lang.String absPath, java.lang.String filter)Get an absolute directory from an OMERO.fs server.floatgetCTime(java.lang.String fileId)Get ctime of a file An exception will be raised if the file no longer exists or is inaccessible.java.lang.String[]getDirectory(java.lang.String absPath, java.lang.String filter)Get an absolute directory from an OMERO.fs server.floatgetMTime(java.lang.String fileId)Get mtime of a file An exception will be raised if the file no longer exists or is inaccessible.java.lang.StringgetOwner(java.lang.String fileId)Get owner of a file An exception will be raised if the file no longer exists or is inaccessible.java.lang.StringgetSHA1(java.lang.String fileId)Get SHA1 of a file An exception will be raised if the file no longer exists or is inaccessible.longgetSize(java.lang.String fileId)Get size of a file in bytes An exception will be raised if the file no longer exists or is inaccessible.FileStatsgetStats(java.lang.String fileId)Get all FileStats of a file An exception will be raised if the file no longer exists or is inaccessible.protected voidice_copyStateFrom(Ice.Object __obj)java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()booleanisDir(java.lang.String fileId)Query whether file is a directory An exception will be raised if the file no longer exists or is inaccessible.booleanisFile(java.lang.String fileId)Query whether file is a file An exception will be raised if the file no longer exists or is inaccessible.byte[]readBlock(java.lang.String fileId, long offset, int size)readBlock should open, read size bytes from offset and then close the file.-
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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.grid.monitors._FileServerOperations
fileExists, getATime, getBaseName, getBulkDirectory, getCTime, getDirectory, getMTime, getOwner, getSHA1, getSize, getStats, isDir, isFile, readBlock
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
ice_copyStateFrom
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException
-
ice_isA
public boolean ice_isA(java.lang.String s)
- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
fileExists
public final boolean fileExists(java.lang.String fileId) throws OmeroFSErrorQuery the existence of a file An exception will be raised if the method fails to determine the existence.- Specified by:
fileExistsin interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- existence of file.
- Throws:
OmeroFSError
-
getATime
public final float getATime(java.lang.String fileId) throws OmeroFSErrorGet atime of a file An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getATimein interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- atime of file (float).
- Throws:
OmeroFSError
-
getBaseName
public final java.lang.String getBaseName(java.lang.String fileId) throws OmeroFSErrorGet base name of a file, this is the name stripped of any path, e.g. file.ext An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getBaseNamein interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- base name.
- Throws:
OmeroFSError
-
getBulkDirectory
public final FileStats[] getBulkDirectory(java.lang.String absPath, java.lang.String filter) throws OmeroFSError
Get an absolute directory from an OMERO.fs server. The returned list will contain the file stats for each directory entry. An exception will be raised if the path does not exist or is inaccessible to the OMERO.fs server. An exception will be raised if directory list cannot be returned for any other reason.- Specified by:
getBulkDirectoryin interface_FileServerOperationsNC- Parameters:
absPath- an absolute path on the monitor's watch path (string).filter- a filter to apply to the listing, cf. ls (string).- Returns:
- a directory listing (FileStatsList).
- Throws:
OmeroFSError
-
getCTime
public final float getCTime(java.lang.String fileId) throws OmeroFSErrorGet ctime of a file An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getCTimein interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- ctime of file (float).
- Throws:
OmeroFSError
-
getDirectory
public final java.lang.String[] getDirectory(java.lang.String absPath, java.lang.String filter) throws OmeroFSErrorGet an absolute directory from an OMERO.fs server. The returned list will contain just the file names for each directory entry. An exception will be raised if the path does not exist or is inaccessible to the OMERO.fs server. An exception will be raised if directory list cannot be returned for any other reason.- Specified by:
getDirectoryin interface_FileServerOperationsNC- Parameters:
absPath- an absolute path on the monitor's watch path (string).filter- a filter to apply to the listing, cf. ls (string).- Returns:
- a directory listing (Ice::StringSeq).
- Throws:
OmeroFSError
-
getMTime
public final float getMTime(java.lang.String fileId) throws OmeroFSErrorGet mtime of a file An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getMTimein interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- mtime of file (float).
- Throws:
OmeroFSError
-
getOwner
public final java.lang.String getOwner(java.lang.String fileId) throws OmeroFSErrorGet owner of a file An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getOwnerin interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- owner of file (string).
- Throws:
OmeroFSError
-
getSHA1
public final java.lang.String getSHA1(java.lang.String fileId) throws OmeroFSErrorGet SHA1 of a file An exception will be raised if the file no longer exists or is inaccessible. An exception will be raised if the SHA1 cannot be generated for any reason.- Specified by:
getSHA1in interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- SHA1 hex hash digest of file (string).
- Throws:
OmeroFSError
-
getSize
public final long getSize(java.lang.String fileId) throws OmeroFSErrorGet size of a file in bytes An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getSizein interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- byte size of file (long).
- Throws:
OmeroFSError
-
getStats
public final FileStats getStats(java.lang.String fileId) throws OmeroFSError
Get all FileStats of a file An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
getStatsin interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- file stats (FileStats).
- Throws:
OmeroFSError
-
isDir
public final boolean isDir(java.lang.String fileId) throws OmeroFSErrorQuery whether file is a directory An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
isDirin interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- true is directory (bool).
- Throws:
OmeroFSError
-
isFile
public final boolean isFile(java.lang.String fileId) throws OmeroFSErrorQuery whether file is a file An exception will be raised if the file no longer exists or is inaccessible.- Specified by:
isFilein interface_FileServerOperationsNC- Parameters:
fileId- see above.- Returns:
- true if file (bool).
- Throws:
OmeroFSError
-
readBlock
public final byte[] readBlock(java.lang.String fileId, long offset, int size) throws OmeroFSErrorreadBlock should open, read size bytes from offset and then close the file. An exception will be raised if the file no longer exists or is inaccessible. An exception will be raised if the file read fails for any other reason.- Specified by:
readBlockin interface_FileServerOperationsNC- Parameters:
fileId- see above.offset- byte offset into file from where read should begin (long).size- number of bytes that should be read (int).- Returns:
- byte sequence of upto size bytes.
- Throws:
OmeroFSError
-
___getDirectory
public static Ice.DispatchStatus ___getDirectory(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getBulkDirectory
public static Ice.DispatchStatus ___getBulkDirectory(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___fileExists
public static Ice.DispatchStatus ___fileExists(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getBaseName
public static Ice.DispatchStatus ___getBaseName(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getStats
public static Ice.DispatchStatus ___getStats(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getSize
public static Ice.DispatchStatus ___getSize(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getOwner
public static Ice.DispatchStatus ___getOwner(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getCTime
public static Ice.DispatchStatus ___getCTime(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getMTime
public static Ice.DispatchStatus ___getMTime(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getATime
public static Ice.DispatchStatus ___getATime(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isDir
public static Ice.DispatchStatus ___isDir(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___isFile
public static Ice.DispatchStatus ___isFile(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getSHA1
public static Ice.DispatchStatus ___getSHA1(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___readBlock
public static Ice.DispatchStatus ___readBlock(FileServer __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
__dispatch
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)- Specified by:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
-