Class InVMConnector

    • Field Detail

      • INVM_CONNECTOR_TYPE

        public static String INVM_CONNECTOR_TYPE
      • failOnCreateConnection

        public static volatile boolean failOnCreateConnection
      • numberOfFailures

        public static volatile int numberOfFailures
      • id

        protected final int id
    • Method Detail

      • resetFailures

        public static void resetFailures()
      • resetThreadPool

        public static void resetThreadPool()
      • getAcceptor

        public Acceptor getAcceptor()
      • close

        public void close()
        Description copied from interface: Connector
        closes the connector
      • isStarted

        public boolean isStarted()
        Description copied from interface: Connector
        returns true if the connector is started, oterwise false.
        Returns:
        true if the connector is started
      • createConnection

        public Connection createConnection()
        Description copied from interface: Connector
        Create and return a connection from this connector.

        This method must NOT throw an exception if it fails to create the connection (e.g. network is not available), in this case it MUST return null

        Returns:
        The connection, or null if unable to create a connection (e.g. network is unavailable)
      • start

        public void start()
        Description copied from interface: Connector
        starts the connector
      • disconnect

        public void disconnect​(String connectionID)
      • isEquivalent

        public boolean isEquivalent​(Map<String,​Object> configuration)
        Description copied from interface: Connector
        If the configuration is equivalent to this connector, which means if the parameter configuration is used to create a connection to a target node, it will be the same node as of the connections made with this connector.
        Returns:
        true means the configuration is equivalent to the connector. false otherwise.