Class _FileServerDisp

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String[] __ids  
      static long serialVersionUID  
      • Fields inherited from interface Ice.Object

        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)  
      boolean fileExists​(java.lang.String fileId)
      Query the existence of a file An exception will be raised if the method fails to determine the existence.
      float getATime​(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.String getBaseName​(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.
      float getCTime​(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.
      float getMTime​(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.String getOwner​(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.String getSHA1​(java.lang.String fileId)
      Get SHA1 of a file An exception will be raised if the file no longer exists or is inaccessible.
      long getSize​(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.
      FileStats getStats​(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 void ice_copyStateFrom​(Ice.Object __obj)  
      java.lang.String ice_id()  
      java.lang.String ice_id​(Ice.Current __current)  
      java.lang.String[] ice_ids()  
      java.lang.String[] ice_ids​(Ice.Current __current)  
      boolean ice_isA​(java.lang.String s)  
      boolean ice_isA​(java.lang.String s, Ice.Current __current)  
      static java.lang.String ice_staticId()  
      boolean isDir​(java.lang.String fileId)
      Query whether file is a directory An exception will be raised if the file no longer exists or is inaccessible.
      boolean isFile​(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 Ice.Object

        __read, __read, __write, __write, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
    • Field Detail

      • __ids

        public static final java.lang.String[] __ids
    • Constructor Detail

      • _FileServerDisp

        public _FileServerDisp()
    • 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_isA in interface Ice.Object
        Overrides:
        ice_isA in class Ice.ObjectImpl
      • ice_isA

        public boolean ice_isA​(java.lang.String s,
                               Ice.Current __current)
        Specified by:
        ice_isA in interface Ice.Object
        Overrides:
        ice_isA in class Ice.ObjectImpl
      • ice_ids

        public java.lang.String[] ice_ids()
        Specified by:
        ice_ids in interface Ice.Object
        Overrides:
        ice_ids in class Ice.ObjectImpl
      • ice_ids

        public java.lang.String[] ice_ids​(Ice.Current __current)
        Specified by:
        ice_ids in interface Ice.Object
        Overrides:
        ice_ids in class Ice.ObjectImpl
      • ice_id

        public java.lang.String ice_id()
        Specified by:
        ice_id in interface Ice.Object
        Overrides:
        ice_id in class Ice.ObjectImpl
      • ice_id

        public java.lang.String ice_id​(Ice.Current __current)
        Specified by:
        ice_id in interface Ice.Object
        Overrides:
        ice_id in class Ice.ObjectImpl
      • ice_staticId

        public static java.lang.String ice_staticId()
      • fileExists

        public final boolean fileExists​(java.lang.String fileId)
                                 throws OmeroFSError
        Query the existence of a file An exception will be raised if the method fails to determine the existence.
        Specified by:
        fileExists in interface _FileServerOperationsNC
        Parameters:
        fileId - see above.
        Returns:
        existence of file.
        Throws:
        OmeroFSError
      • getATime

        public final float getATime​(java.lang.String fileId)
                             throws OmeroFSError
        Get atime of a file An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        getATime in 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 OmeroFSError
        Get 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:
        getBaseName in 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:
        getBulkDirectory in 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 OmeroFSError
        Get ctime of a file An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        getCTime in 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 OmeroFSError
        Get 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:
        getDirectory in 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 OmeroFSError
        Get mtime of a file An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        getMTime in 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 OmeroFSError
        Get owner of a file An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        getOwner in 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 OmeroFSError
        Get 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:
        getSHA1 in 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 OmeroFSError
        Get size of a file in bytes An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        getSize in 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:
        getStats in interface _FileServerOperationsNC
        Parameters:
        fileId - see above.
        Returns:
        file stats (FileStats).
        Throws:
        OmeroFSError
      • isDir

        public final boolean isDir​(java.lang.String fileId)
                            throws OmeroFSError
        Query whether file is a directory An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        isDir in interface _FileServerOperationsNC
        Parameters:
        fileId - see above.
        Returns:
        true is directory (bool).
        Throws:
        OmeroFSError
      • isFile

        public final boolean isFile​(java.lang.String fileId)
                             throws OmeroFSError
        Query whether file is a file An exception will be raised if the file no longer exists or is inaccessible.
        Specified by:
        isFile in 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 OmeroFSError
        readBlock 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:
        readBlock in 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:
        __dispatch in interface Ice.Object
        Overrides:
        __dispatch in class Ice.ObjectImpl
      • __writeImpl

        protected void __writeImpl​(IceInternal.BasicStream __os)
        Overrides:
        __writeImpl in class Ice.ObjectImpl
      • __readImpl

        protected void __readImpl​(IceInternal.BasicStream __is)
        Overrides:
        __readImpl in class Ice.ObjectImpl