|
|
@ -14,6 +14,7 @@ |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.remote.utils; |
|
|
|
package org.apache.dolphinscheduler.remote.utils; |
|
|
|
|
|
|
|
|
|
|
|
import java.nio.charset.Charset; |
|
|
|
import java.nio.charset.Charset; |
|
|
@ -21,7 +22,7 @@ import java.nio.charset.StandardCharsets; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* constant |
|
|
|
* constant |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class Constants { |
|
|
|
public class Constants { |
|
|
|
|
|
|
|
|
|
|
@ -30,12 +31,12 @@ public class Constants { |
|
|
|
public static final String SLASH = "/"; |
|
|
|
public static final String SLASH = "/"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* charset |
|
|
|
* charset |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static final Charset UTF8 = StandardCharsets.UTF_8; |
|
|
|
public static final Charset UTF8 = StandardCharsets.UTF_8; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* cpus |
|
|
|
* cpus |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static final int CPUS = Runtime.getRuntime().availableProcessors(); |
|
|
|
public static final int CPUS = Runtime.getRuntime().availableProcessors(); |
|
|
|
|
|
|
|
|
|
|
@ -45,7 +46,7 @@ public class Constants { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* netty epoll enable switch |
|
|
|
* netty epoll enable switch |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static final String NETTY_EPOLL_ENABLE = System.getProperty("netty.epoll.enable"); |
|
|
|
public static final String NETTY_EPOLL_ENABLE = System.getProperty("netty.epoll.enable", "true"); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* OS Name |
|
|
|
* OS Name |
|
|
|