All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.server.plugin.python.Deephaven2ServerPluginModule Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.server.plugin.python;

import org.jpy.PyLib.CallableKind;
import org.jpy.PyModule;

interface Deephaven2ServerPluginModule extends AutoCloseable {

    String MODULE = "deephaven_internal.plugin";

    static Deephaven2ServerPluginModule of() {
        final PyModule module = PyModule.importModule(MODULE);
        if (module == null) {
            throw new IllegalStateException(String.format("Unable to find `%s` module", MODULE));
        }
        return (Deephaven2ServerPluginModule) module.createProxy(CallableKind.FUNCTION,
                Deephaven2ServerPluginModule.class);
    }

    void initialize_all_and_register_into(CallbackAdapter callback);

    @Override
    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy