2015-12-08 14:04:35 +01:00
|
|
|
/*
|
2017-03-19 22:01:23 +01:00
|
|
|
* Copyright (c) 2012-2017 The original author or authors
|
2015-12-08 14:04:35 +01:00
|
|
|
* ------------------------------------------------------
|
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
|
|
|
* and Apache License v2.0 which accompanies this distribution.
|
|
|
|
|
*
|
|
|
|
|
* The Eclipse Public License is available at
|
|
|
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
|
*
|
|
|
|
|
* The Apache License v2.0 is available at
|
|
|
|
|
* http://www.opensource.org/licenses/apache2.0.php
|
|
|
|
|
*
|
|
|
|
|
* You may elect to redistribute this code under either of these licenses.
|
|
|
|
|
*/
|
2017-02-01 15:01:05 +01:00
|
|
|
|
2015-12-08 14:04:35 +01:00
|
|
|
package io.moquette;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
|
2017-04-12 17:40:32 +02:00
|
|
|
public final class BrokerConstants {
|
2017-02-01 15:01:05 +01:00
|
|
|
|
|
|
|
|
public static final String INTERCEPT_HANDLER_PROPERTY_NAME = "intercept.handler";
|
2017-01-10 17:23:15 +01:00
|
|
|
public static final String BROKER_INTERCEPTOR_THREAD_POOL_SIZE = "intercept.thread_pool.size";
|
2015-12-08 14:04:35 +01:00
|
|
|
public static final String PERSISTENT_STORE_PROPERTY_NAME = "persistent_store";
|
|
|
|
|
public static final String AUTOSAVE_INTERVAL_PROPERTY_NAME = "autosave_interval";
|
|
|
|
|
public static final String PASSWORD_FILE_PROPERTY_NAME = "password_file";
|
|
|
|
|
public static final String PORT_PROPERTY_NAME = "port";
|
|
|
|
|
public static final String HOST_PROPERTY_NAME = "host";
|
|
|
|
|
public static final String DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME = "moquette_store.mapdb";
|
2017-02-01 15:01:05 +01:00
|
|
|
public static final String DEFAULT_PERSISTENT_PATH = System.getProperty("user.dir") + File.separator
|
|
|
|
|
+ DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME;
|
2015-12-08 14:04:35 +01:00
|
|
|
public static final String WEB_SOCKET_PORT_PROPERTY_NAME = "websocket_port";
|
|
|
|
|
public static final String WSS_PORT_PROPERTY_NAME = "secure_websocket_port";
|
|
|
|
|
public static final String SSL_PORT_PROPERTY_NAME = "ssl_port";
|
|
|
|
|
public static final String JKS_PATH_PROPERTY_NAME = "jks_path";
|
|
|
|
|
public static final String KEY_STORE_PASSWORD_PROPERTY_NAME = "key_store_password";
|
|
|
|
|
public static final String KEY_MANAGER_PASSWORD_PROPERTY_NAME = "key_manager_password";
|
|
|
|
|
public static final String ALLOW_ANONYMOUS_PROPERTY_NAME = "allow_anonymous";
|
2016-08-07 13:17:41 +02:00
|
|
|
public static final String ALLOW_ZERO_BYTE_CLIENT_ID_PROPERTY_NAME = "allow_zero_byte_client_id";
|
2015-12-08 14:04:35 +01:00
|
|
|
public static final String ACL_FILE_PROPERTY_NAME = "acl_file";
|
|
|
|
|
public static final String AUTHORIZATOR_CLASS_NAME = "authorizator_class";
|
|
|
|
|
public static final String AUTHENTICATOR_CLASS_NAME = "authenticator_class";
|
2016-05-13 11:29:08 +02:00
|
|
|
public static final String DB_AUTHENTICATOR_DRIVER = "authenticator.db.driver";
|
|
|
|
|
public static final String DB_AUTHENTICATOR_URL = "authenticator.db.url";
|
|
|
|
|
public static final String DB_AUTHENTICATOR_QUERY = "authenticator.db.query";
|
|
|
|
|
public static final String DB_AUTHENTICATOR_DIGEST = "authenticator.db.digest";
|
2015-12-08 14:04:35 +01:00
|
|
|
public static final int PORT = 1883;
|
|
|
|
|
public static final int WEBSOCKET_PORT = 8080;
|
2016-05-18 00:09:40 +02:00
|
|
|
public static final String DISABLED_PORT_BIND = "disabled";
|
2015-12-08 14:04:35 +01:00
|
|
|
public static final String HOST = "0.0.0.0";
|
2016-02-17 12:02:52 +01:00
|
|
|
public static final String NEED_CLIENT_AUTH = "need_client_auth";
|
2016-06-28 17:27:35 +02:00
|
|
|
public static final String HAZELCAST_CONFIGURATION = "hazelcast.configuration";
|
2017-01-15 14:40:08 +01:00
|
|
|
public static final String NETTY_SO_BACKLOG_PROPERTY_NAME = "netty.so_backlog";
|
|
|
|
|
public static final String NETTY_SO_REUSEADDR_PROPERTY_NAME = "netty.so_reuseaddr";
|
|
|
|
|
public static final String NETTY_TCP_NODELAY_PROPERTY_NAME = "netty.tcp_nodelay";
|
|
|
|
|
public static final String NETTY_SO_KEEPALIVE_PROPERTY_NAME = "netty.so_keepalive";
|
|
|
|
|
public static final String NETTY_CHANNEL_TIMEOUT_SECONDS_PROPERTY_NAME = "netty.channel_timeout.seconds";
|
2017-01-31 18:06:03 +01:00
|
|
|
public static final String STORAGE_CLASS_NAME = "storage_class";
|
2017-04-12 17:40:32 +02:00
|
|
|
|
|
|
|
|
private BrokerConstants() {
|
|
|
|
|
}
|
2015-12-08 14:04:35 +01:00
|
|
|
}
|