• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java OServerParameterConfiguration类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.orientechnologies.orient.server.config.OServerParameterConfiguration的典型用法代码示例。如果您正苦于以下问题:Java OServerParameterConfiguration类的具体用法?Java OServerParameterConfiguration怎么用?Java OServerParameterConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OServerParameterConfiguration类属于com.orientechnologies.orient.server.config包,在下文中一共展示了OServerParameterConfiguration类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: get

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
public OServerHandlerConfiguration get() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OAutomaticBackup.class.getName();
    if (!enabled) {
        config.parameters = new OServerParameterConfiguration[]{
            new OServerParameterConfiguration("enabled", FALSE.toString())
        };
    } else {
        config.parameters = new OServerParameterConfiguration[]{
            new OServerParameterConfiguration("enabled", TRUE.toString()),
            new OServerParameterConfiguration("delay", delay.toDelaySetting()),
            new OServerParameterConfiguration("backup", backupDir.toAbsolutePath().toString()),
            new OServerParameterConfiguration("target.fileName", "${DBNAME}-${DATE:yyyyMMddHHmmss}.zip"),
            new OServerParameterConfiguration("compressionLevel", Integer.toString(compressionLevel)),
            new OServerParameterConfiguration("bufferSize", Integer.toString(bufferSizeMB * 1024 * 1000)),
            new OServerParameterConfiguration("db.include", databaseIncludes.stream().collect(Collectors.joining(","))),
            new OServerParameterConfiguration("db.exclude", databaseExcludes.stream().collect(Collectors.joining(",")))
        };

    }

    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:25,代码来源:OAutomaticBackupConfig.java


示例2: config

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
public void config(final OServer server, final OServerParameterConfiguration[] iParams) {
  this.server = server;

  for (OServerParameterConfiguration param : iParams) {
    if (param.name.equalsIgnoreCase("enabled")) {
      if (Boolean.parseBoolean(param.value))
        // ENABLE IT

        enabled = true;
    }
  }
  OLogManager.instance().info(this, "Elastic sync plugin enabled:: " + enabled);
}
 
开发者ID:orientechnologies,项目名称:orientdb-elasticsearch,代码行数:15,代码来源:OElasticSearchPlugin.java


示例3: JmxHandlerConfiguration

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
public JmxHandlerConfiguration() {
  clazz = OJMXPlugin.class.getName();
  parameters = new OServerParameterConfiguration[] {
      new OServerParameterConfiguration("enabled", "true"),
      new OServerParameterConfiguration("profilerManaged", "true")
  };
}
 
开发者ID:sonatype,项目名称:nexus-public,代码行数:8,代码来源:JmxHandlerConfiguration.java


示例4: get

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
public OServerHandlerConfiguration get() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OGraphServerHandler.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", Boolean.toString(enabled)),
        new OServerParameterConfiguration("graph.pool.max", Integer.toString(graphPoolMaxSize))
    };
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:11,代码来源:OGraphServerHandlerConfig.java


示例5: get

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
public OServerHandlerConfiguration get() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OServerSideScriptInterpreter.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", Boolean.toString(enabled)),
        new OServerParameterConfiguration("allowedLanguages", allowedLanguages.stream().collect(Collectors.joining(",")))
    };
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:11,代码来源:OServerSideScriptInterpreterConfig.java


示例6: networkConfigWithSSL

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private OServerNetworkConfiguration networkConfigWithSSL() {
    final OServerNetworkConfiguration network = new OServerNetworkConfiguration();

    final OServerSocketFactoryConfiguration sslConfig = new OServerSocketFactoryConfiguration("ssl", OServerSSLSocketFactory.class.getName());
    final NetworkSSLConfig ssl = networkSSLConfig.get();
    final ImmutableList.Builder<OServerParameterConfiguration> parameters = ImmutableList.<OServerParameterConfiguration>builder()
            .add(new OServerParameterConfiguration(PARAM_NETWORK_SSL_KEYSTORE, ssl.getServerKeyStorePath().toString()))
            .add(new OServerParameterConfiguration(PARAM_NETWORK_SSL_KEYSTORE_PASSWORD, ssl.getServerKeyStorePassword()));

    ssl.getServerTrustStorePath().ifPresent(trustStorePath -> {
        parameters.add(new OServerParameterConfiguration(PARAM_NETWORK_SSL_CLIENT_AUTH, "true"))
                .add(new OServerParameterConfiguration(PARAM_NETWORK_SSL_TRUSTSTORE, trustStorePath.toString()))
                .add(new OServerParameterConfiguration(PARAM_NETWORK_SSL_TRUSTSTORE_PASSWORD, ssl.getServerTrustStorePassword().get()));
    });

    sslConfig.parameters = parameters.build().stream().toArray(OServerParameterConfiguration[]::new);
    network.sockets = ImmutableList.of(sslConfig);

    network.protocols = ImmutableList.of(
            new OServerNetworkProtocolConfiguration("binary", ONetworkProtocolBinary.class.getName())
    );

    final OServerNetworkListenerConfiguration binaryListener = new OServerNetworkListenerConfiguration();
    binaryListener.ipAddress = getWeaveClusterHostIPAddress().orElse("0.0.0.0");
    binaryListener.protocol = "binary";
    binaryListener.portRange = Integer.toString(port);
    binaryListener.socket = sslConfig.name;
    network.listeners = ImmutableList.of(binaryListener);

    return network;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:32,代码来源:OServerNetworkConfigurationSupplier.java


示例7: oLiveQueryPlugin

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private Supplier<OServerHandlerConfiguration> oLiveQueryPlugin(final Config config) {
    return () -> {
        final OServerHandlerConfiguration handlerConfig = new OServerHandlerConfiguration();
        handlerConfig.clazz = OLiveQueryPlugin.class.getName();
        final String enabled = ConfigUtils.getBoolean(config, "server", "handlers", "OLiveQueryPluginConfig", "enabled").orElse(FALSE).toString();
        log.logp(INFO, getClass().getName(), "oLiveQueryPlugin", "enabled = {}", enabled);
        handlerConfig.parameters = new OServerParameterConfiguration[]{
            new OServerParameterConfiguration("enabled", enabled)
        };
        return handlerConfig;
    };
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:13,代码来源:OrientDBConfig.java


示例8: oJMXPlugin

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private Supplier<OServerHandlerConfiguration> oJMXPlugin(final Config config) {
    return () -> {
        final OServerHandlerConfiguration handlerConfig = new OServerHandlerConfiguration();
        handlerConfig.clazz = OJMXPlugin.class.getName();
        final String enabled = ConfigUtils.getBoolean(config, "server", "handlers", "OJMXPluginConfig", "enabled").orElse(FALSE).toString();
        log.logp(INFO, getClass().getName(), "oJMXPlugin", "enabled = {}", enabled);
        handlerConfig.parameters = new OServerParameterConfiguration[]{
            new OServerParameterConfiguration("enabled", enabled),
            new OServerParameterConfiguration("profilerManaged", enabled)
        };
        return handlerConfig;
    };
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:14,代码来源:OrientDBConfig.java


示例9: get

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
public OServerHandlerConfiguration get() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OrientDBPluginWithProvidedHazelcastInstance.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", Boolean.toString(enabled)),
        new OServerParameterConfiguration("nodeName", nodeName),
        new OServerParameterConfiguration("configuration.db.default", distributedDBConfigFilePath.toAbsolutePath().toString())
    };
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:12,代码来源:OHazelcastPluginConfig.java


示例10: oGraphServerHandler

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private static OServerHandlerConfiguration oGraphServerHandler() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OGraphServerHandler.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", "true"),
        new OServerParameterConfiguration("graph.pool.max", "50")
    };
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:10,代码来源:RunRightFastOrientDBLifeCycleListenerTest.java


示例11: oHazelcastPlugin

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private static OServerHandlerConfiguration oHazelcastPlugin() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OHazelcastPlugin.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", "true"),
        new OServerParameterConfiguration("nodeName", HOST),
        new OServerParameterConfiguration("configuration.db.default", new File(orientdbHome, "config/default-distributed-db-config.json").getAbsolutePath()),
        new OServerParameterConfiguration("configuration.hazelcast", new File(orientdbHome, "config/hazelcast.xml").getAbsolutePath())
    };
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:12,代码来源:RunRightFastOrientDBLifeCycleListenerTest.java


示例12: oServerSideScriptInterpreter

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private static OServerHandlerConfiguration oServerSideScriptInterpreter() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OServerSideScriptInterpreter.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", "true"),
        new OServerParameterConfiguration("allowedLanguages", "SQL")
    };
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:10,代码来源:RunRightFastOrientDBLifeCycleListenerTest.java


示例13: oServerNetworkConfiguration

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private static OServerNetworkConfiguration oServerNetworkConfiguration() {
    final OServerNetworkConfiguration network = new OServerNetworkConfiguration();

    final OServerSocketFactoryConfiguration sslConfig = new OServerSocketFactoryConfiguration("ssl", OServerSSLSocketFactory.class.getName());
    sslConfig.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_KEYSTORE, serverKeyStorePath().toString()),
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_KEYSTORE_PASSWORD, serverKeyStorePassword()),
        // client auth config
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_CLIENT_AUTH, "false"),
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_TRUSTSTORE, serverTrustStorePath().toString()),
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_TRUSTSTORE_PASSWORD, serverTrustStorePassword())

    };
    network.sockets = ImmutableList.of(sslConfig);

    network.protocols = ImmutableList.of(
            new OServerNetworkProtocolConfiguration("binary", ONetworkProtocolBinary.class.getName())
    );

    final OServerNetworkListenerConfiguration binaryListener = new OServerNetworkListenerConfiguration();
    binaryListener.ipAddress = "0.0.0.0";
    binaryListener.protocol = "binary";
    binaryListener.portRange = "2434-2440";
    binaryListener.socket = sslConfig.name;
    network.listeners = ImmutableList.of(binaryListener);

    setSSLSystemProperties();

    return network;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:31,代码来源:EmbeddedOrientDBServiceWithSSLTest.java


示例14: oServerNetworkConfiguration

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private static OServerNetworkConfiguration oServerNetworkConfiguration() {
    final OServerNetworkConfiguration network = new OServerNetworkConfiguration();

    final OServerSocketFactoryConfiguration sslConfig = new OServerSocketFactoryConfiguration("ssl", OServerSSLSocketFactory.class.getName());
    sslConfig.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_KEYSTORE, serverKeyStorePath().toString()),
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_KEYSTORE_PASSWORD, serverKeyStorePassword()),
        // client auth config
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_CLIENT_AUTH, "true"),
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_TRUSTSTORE, serverTrustStorePath().toString()),
        new OServerParameterConfiguration(PARAM_NETWORK_SSL_TRUSTSTORE_PASSWORD, serverTrustStorePassword())

    };
    network.sockets = ImmutableList.of(sslConfig);

    network.protocols = ImmutableList.of(
            new OServerNetworkProtocolConfiguration("binary", ONetworkProtocolBinary.class.getName())
    );

    final OServerNetworkListenerConfiguration binaryListener = new OServerNetworkListenerConfiguration();
    binaryListener.ipAddress = "0.0.0.0";
    binaryListener.protocol = "binary";
    binaryListener.portRange = "2434-2440";
    binaryListener.socket = sslConfig.name;
    network.listeners = ImmutableList.of(binaryListener);

    return network;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:29,代码来源:EmbeddedOrientDBServiceWithSSLWithClientAuthTest.java


示例15: oHazelcastPlugin

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private static OServerHandlerConfiguration oHazelcastPlugin() {
    final OServerHandlerConfiguration config = new OServerHandlerConfiguration();
    config.clazz = OrientDBPluginWithProvidedHazelcastInstance.class.getName();
    config.parameters = new OServerParameterConfiguration[]{
        new OServerParameterConfiguration("enabled", "true"),
        new OServerParameterConfiguration("nodeName", HOST),
        new OServerParameterConfiguration("configuration.db.default", new File(orientdbHome, "config/default-distributed-db-config.json").getAbsolutePath()),};
    return config;
}
 
开发者ID:runrightfast,项目名称:runrightfast-vertx,代码行数:10,代码来源:OrientDBHazelcastPluginTest.java


示例16: buildParameters

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private OServerParameterConfiguration[] buildParameters(final HttpsConnectorFactory con) {
    final List<OServerParameterConfiguration> res = new ArrayList<>();
    addIfSet(res, PARAM_NETWORK_SSL_KEYSTORE, con.getKeyStorePath());
    addIfSet(res, PARAM_NETWORK_SSL_KEYSTORE_TYPE, con.getKeyStoreType());
    addIfSet(res, PARAM_NETWORK_SSL_KEYSTORE_PASSWORD, con.getKeyStorePassword());
    addIfSet(res, PARAM_NETWORK_SSL_TRUSTSTORE, con.getTrustStorePath());
    addIfSet(res, PARAM_NETWORK_SSL_TRUSTSTORE_TYPE, con.getTrustStoreType());
    addIfSet(res, PARAM_NETWORK_SSL_TRUSTSTORE_PASSWORD, con.getTrustStorePassword());
    return res.toArray(new OServerParameterConfiguration[res.size()]);
}
 
开发者ID:xvik,项目名称:dropwizard-orient-server,代码行数:11,代码来源:AutoSslConfigurator.java


示例17: addIfSet

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
private void addIfSet(final List<OServerParameterConfiguration> res, final String key, final String val) {
    if (val != null) {
        res.add(new OServerParameterConfiguration(key, val));
    }
}
 
开发者ID:xvik,项目名称:dropwizard-orient-server,代码行数:6,代码来源:AutoSslConfigurator.java


示例18: configure

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
protected void configure(final OServerParameterConfiguration object, final String key, final String value) {
    object.name = key;
    object.value = value;
}
 
开发者ID:xvik,项目名称:dropwizard-orient-server,代码行数:6,代码来源:ParameterDeserializer.java


示例19: config

import com.orientechnologies.orient.server.config.OServerParameterConfiguration; //导入依赖的package包/类
@Override
public void config(OServer oServer, OServerParameterConfiguration[] iParams) {

}
 
开发者ID:orientechnologies,项目名称:orientdb-spatial,代码行数:5,代码来源:OLuceneSpatialIndexPlugin.java



注:本文中的com.orientechnologies.orient.server.config.OServerParameterConfiguration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SimpleSectionedListAdapter类代码示例发布时间:2022-05-23
下一篇:
Java ConfluenceActionSupport类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap