本文整理汇总了Java中com.orientechnologies.orient.server.config.OServerParameterConfiguration类的典型用法代码示例。如果您正苦于以下问题:Java OServerParameterConfiguration类的具体用法?Java OServerParameterConfiguration怎么用?Java OServerParameterConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OServerParameterConfiguration类属于com.orientechnologies.orient.server.config包,在下文中一共展示了OServerParameterConfiguration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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);
}
示例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")
};
}
示例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;
}
示例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;
}
示例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;
}
示例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;
};
}
示例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;
};
}
示例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;
}
示例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;
}
示例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;
}