Package omero.gateway

Class Gateway

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class Gateway
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A Gateway for simplifying access to an OMERO server
    Since:
    5.1
    • Field Detail

      • PROP_CONNECTOR_CREATED

        public static final java.lang.String PROP_CONNECTOR_CREATED
        Property to indicate that a Connector has been created
        See Also:
        Constant Field Values
      • PROP_CONNECTOR_CLOSED

        public static final java.lang.String PROP_CONNECTOR_CLOSED
        Property to indicate that a Connector has been closed
        See Also:
        Constant Field Values
      • PROP_SESSION_CREATED

        public static final java.lang.String PROP_SESSION_CREATED
        Property to indicate that a session has been created
        See Also:
        Constant Field Values
      • PROP_SESSION_CLOSED

        public static final java.lang.String PROP_SESSION_CLOSED
        Property to indicate that a session has been closed
        See Also:
        Constant Field Values
      • PROP_SESSION_DETACHED

        public static final java.lang.String PROP_SESSION_DETACHED
        Property to indicate that client got detached from a session
        See Also:
        Constant Field Values
      • PROP_FACILITY_CREATED

        public static final java.lang.String PROP_FACILITY_CREATED
        Property to indicate that a Facility has been created
        See Also:
        Constant Field Values
      • PROP_FACILITY_CLOSED

        public static final java.lang.String PROP_FACILITY_CLOSED
        Property to indicate that a Facility has been closed
        See Also:
        Constant Field Values
      • PROP_IMPORTSTORE_CREATED

        public static final java.lang.String PROP_IMPORTSTORE_CREATED
        Property to indicate that an import store has been created
        See Also:
        Constant Field Values
      • PROP_IMPORTSTORE_CLOSED

        public static final java.lang.String PROP_IMPORTSTORE_CLOSED
        Property to indicate that an import store has been closed
        See Also:
        Constant Field Values
      • PROP_RENDERINGENGINE_CREATED

        public static final java.lang.String PROP_RENDERINGENGINE_CREATED
        Property to indicate that a rendering engine has been created
        See Also:
        Constant Field Values
      • PROP_RENDERINGENGINE_CLOSED

        public static final java.lang.String PROP_RENDERINGENGINE_CLOSED
        Property to indicate that a rendering engine has been closed
        See Also:
        Constant Field Values
      • PROP_STATEFUL_SERVICE_CREATED

        public static final java.lang.String PROP_STATEFUL_SERVICE_CREATED
        Property to indicate that a stateful service has been created
        See Also:
        Constant Field Values
      • PROP_STATEFUL_SERVICE_CLOSED

        public static final java.lang.String PROP_STATEFUL_SERVICE_CLOSED
        Property to indicate that a stateful service has been closed
        See Also:
        Constant Field Values
      • PROP_STATELESS_SERVICE_CREATED

        public static final java.lang.String PROP_STATELESS_SERVICE_CREATED
        Property to indicate that a stateless service has been created
        See Also:
        Constant Field Values
    • Constructor Detail

      • Gateway

        public Gateway​(omero.log.Logger log)
        Creates a new Gateway instance
        Parameters:
        log - A Logger
      • Gateway

        @Deprecated
        public Gateway​(omero.log.Logger log,
                       CacheService cacheService)
        Deprecated.
        This constructor will be removed in future. Please use instead
        Creates a new Gateway instance
        Parameters:
        log - A Logger
        cacheService - A CacheService, can be null
      • Gateway

        @Deprecated
        public Gateway​(omero.log.Logger log,
                       CacheService cacheService,
                       java.util.concurrent.ExecutorService executorService,
                       boolean executorShutdownOnDisconnect)
        Deprecated.
        This constructor will be removed in future. Please use instead
        Creates a new Gateway instance
        Parameters:
        log - A Logger
        cacheService - A CacheService, can be null
        executorService - A ExecutorService for handling asynchronous tasks, can be null (in which case the Java built-in cached thread pool will be used)
        executorShutdownOnDisconnect - Flag to indicate that executor threads should be shutdown on disconnect (only taken into account if an ExecutorService was provided; the default cached thread pool will be shut down by default)
      • Gateway

        public Gateway​(omero.log.Logger log,
                       java.util.concurrent.ExecutorService executorService,
                       boolean executorShutdownOnDisconnect)
        Creates a new Gateway instance
        Parameters:
        log - A Logger
        executorService - A ExecutorService for handling asynchronous tasks, can be null (in which case the Java built-in cached thread pool will be used)
        executorShutdownOnDisconnect - Flag to indicate that executor threads should be shutdown on disconnect (only taken into account if an ExecutorService was provided; the default cached thread pool will be shut down by default)