476 lines
13 KiB
Java
476 lines
13 KiB
Java
package _VisualDVM;
|
||
import Common.Utils.Vector_;
|
||
|
||
import java.util.Vector;
|
||
public class Constants {
|
||
public static final int version = 1248;
|
||
public static final int planner_version = 24;
|
||
public static final int testingMaxKernels = 64;
|
||
//--
|
||
public static final String ApplicationFileName = "VisualSapfor.jar";
|
||
//--
|
||
public static final String ComponentsDirectoryName = "Components";
|
||
public static final String DataDirectoryName = "Data";
|
||
public static final String DownloadsDirectoryName = "Downloads";
|
||
public static final String BugsDirectoryName = "Bugs";
|
||
public static final String BackUpsDirectoryName = "BackUps";
|
||
public static final String DataBackUpsDirectoryName = "DataBackUps";
|
||
public static final String TempDirectoryName = "Temp";
|
||
public static final String ProjectsDirectoryName = "Projects";
|
||
public static final String CompilationTasksDirectoryName = "CompilationTasks";
|
||
public static final String RunTasksDirectoryName = "RunTasks";
|
||
public static final String StsDirectoryName = "Sts";
|
||
public static final String RepoDirectoryName = "Repo";
|
||
public static final String TestsDirectoryName = "Tests";
|
||
public static final String DVMPackagesDirectoryName = "DVMPackages";
|
||
public static final String PerformanceAnalyzerDirectoryName = "PerformanceAnalyzer";
|
||
public static final String KeyDirectoryName = "Keys";
|
||
//--
|
||
//GIT
|
||
public static final String DVM_TESTS_REPOSITORY = "https://dvmguest:dvmguest@dvm.keldysh.ru/dvm-system/dvm-auto-test";
|
||
public static final String SAPFOR_REPOSITORY = "http://dvmh-server.ddns.net:3000/Alexander_KS/SAPFOR.git";
|
||
public static final String SAPFOR_VERSION_URL = "http://dvmh-server.ddns.net:3000/Alexander_KS/SAPFOR/raw/branch/master/src/Utils/version.h";
|
||
//-вывод задач
|
||
public final static String parse_out_file = "parse_out.txt";
|
||
public final static String parse_err_file = "parse_err.txt";
|
||
public final static String out_file = "out.txt";
|
||
public final static String err_file = "err.txt";
|
||
public final static String script = "script.sh";
|
||
public final static String time_file = "total_time";
|
||
//-служебные разделы проекта.
|
||
public static final String data = "visualiser_data";
|
||
public static final String MailAddress = "sapfor.tracker@internet.ru";
|
||
// public static final String MailPassword = "3s4w9e5fs3c1a89AA"; основной пароль.
|
||
public static final String MailPassword = "knKn2PpfrC348ZxHtMnT"; //пароль для сапфора как внешнего приложения.
|
||
public static final String SMTPHost = "smtp.mail.ru";
|
||
public static final int SMTPPort = 465;
|
||
public static final int MailSocketPort = 465;
|
||
//
|
||
//7998 отладочный порт. теперь.
|
||
public static final int ComponentsServerPort = 7995; //7795
|
||
public static final int TestingServerPort = 7996; //7996
|
||
public static final int SocketTimeout = 0;
|
||
//-
|
||
public static final String ServerAddress = "alex-freenas.ddns.net";
|
||
public static final String ServerUserName = "testuser";
|
||
public static final int ServerUserSHHPort = 2000;
|
||
//--
|
||
public static final String package_json = "package_json";
|
||
public static final String results_json = "results_json";
|
||
//--
|
||
public static final int parser_group = -1;
|
||
public static final int compiler_group = -2;
|
||
// DBProjectFile
|
||
public static final String no_data = "Нет данных";
|
||
public static final String dep = ".dep";
|
||
public static final String out = ".out";
|
||
public static final String err = ".err";
|
||
public static final String makefile = "Makefile";
|
||
//db_project_info
|
||
public static final String launch_script_name = "run";
|
||
public static final String default_binary_name = "0";
|
||
public static final String spf = "spf.proj";
|
||
public static final String options = "options";
|
||
public static final String gcov = "gcov";
|
||
public static final String attachments = "attachments";
|
||
public static final String statistic = "statistic";
|
||
public static final String unknown_metric = " — ";
|
||
public static final String tests_db_name = "tests2027";
|
||
public static final String dateNaN = "NaN";
|
||
//--
|
||
public static final String pause = "pause";
|
||
//--
|
||
public static final String[] crushed_cases = new String[]{
|
||
"rts err",
|
||
"rts stack trace",
|
||
"rts fatal err",
|
||
"sigegv",
|
||
"sigsegv",
|
||
"segmentation fault",
|
||
"there are not enough slots available in the system to satisfy the",
|
||
"forrtl: severe",
|
||
"invalid pointer",
|
||
"forrtl: error",
|
||
"fatal error",
|
||
"unknown error class",
|
||
"failed",
|
||
"killed by signal",
|
||
"bad termination"
|
||
};
|
||
public final static String separator = "----------------------------------";
|
||
//-------------------------------------------------------
|
||
public static String[] resourses_names = new String[]{
|
||
//--
|
||
"Process_r.h",
|
||
"starter.cpp",
|
||
"launcher.cpp",
|
||
//--
|
||
"Array.h",
|
||
"CompilationSupervisor.h",
|
||
"CompilationTask.h",
|
||
"File.h",
|
||
"Global.h",
|
||
"planner.cpp",
|
||
"RunSupervisor.h",
|
||
"RunTask.h",
|
||
"String.h",
|
||
"Supervisor.h",
|
||
"Task.h",
|
||
"Text.h",
|
||
"Utils.h",
|
||
"version.h"
|
||
};
|
||
//пробный коммит. изменение комментария.++
|
||
//кронтаб и перезагрузка
|
||
//https://snipp.ru/raznoe/crontab
|
||
// /var/spool/cron/crontabs/testuser что менять
|
||
//https://saribzhanov.ru/tehno/perezagruzka-ubuntu-po-cron/ //раз в сутки
|
||
//testuser ALL=NOPASSWD:/sbin/reboot
|
||
//0 2 2,15 * * reboot &>/var/log/reboot.log
|
||
//https://unix.stackexchange.com/questions/117148/how-can-i-run-reboot-as-a-normal-user-without-needing-to-enter-a-password
|
||
//--
|
||
//https://losst.ru/komandy-terminala-linux
|
||
public static String[] linux_system_commands = new String[]{
|
||
//<editor-fold desc="все линуксовые команды. их МНОГО">
|
||
"a2p",
|
||
"ac",
|
||
"addgroup",
|
||
"adduser",
|
||
"agrep",
|
||
"alias",
|
||
"apropos",
|
||
"apt",
|
||
"aptitude",
|
||
"ar",
|
||
"arch",
|
||
"arp",
|
||
"as",
|
||
"aspell",
|
||
"at",
|
||
"awk",
|
||
"basename",
|
||
"bash",
|
||
"bс",
|
||
"bdiff",
|
||
"bfs",
|
||
"bg",
|
||
"biff",
|
||
"break",
|
||
"bs",
|
||
"bye",
|
||
"cal",
|
||
"calendar",
|
||
"cancel",
|
||
"cat",
|
||
"cc",
|
||
"cd",
|
||
"cfdisk",
|
||
"chdir",
|
||
"checkeq",
|
||
"checknr",
|
||
"chfn",
|
||
"chgrp",
|
||
"chmod",
|
||
"chown",
|
||
"chroot",
|
||
"chsh",
|
||
"cksum",
|
||
"clear",
|
||
"cmp",
|
||
"col",
|
||
"comm",
|
||
"compress",
|
||
"continue",
|
||
"cp",
|
||
"cpio",
|
||
"crontab",
|
||
"csh",
|
||
"csplit",
|
||
"ctags",
|
||
"cu",
|
||
"curl",
|
||
"cut",
|
||
"date",
|
||
"dc",
|
||
"dd",
|
||
"delgroup",
|
||
"deluser",
|
||
"depmod",
|
||
"deroff",
|
||
"df",
|
||
"dhclient",
|
||
"dig",
|
||
"dircmp",
|
||
"dirname",
|
||
"dmesg",
|
||
"dos2unix",
|
||
"dpkg",
|
||
"dpost",
|
||
"du",
|
||
"echo",
|
||
"ed",
|
||
"edit",
|
||
"egrep",
|
||
"eject",
|
||
"elm",
|
||
"emacs",
|
||
"emerge",
|
||
"enable",
|
||
"env",
|
||
"eqn",
|
||
"ex",
|
||
"exit",
|
||
"expand",
|
||
"expr",
|
||
"fc",
|
||
"fdisk",
|
||
"fg",
|
||
"fgrep",
|
||
"file",
|
||
"find",
|
||
"findsmb",
|
||
"finger",
|
||
"fmt",
|
||
"fold",
|
||
"for",
|
||
"foreach",
|
||
"free",
|
||
"fsck",
|
||
"ftp",
|
||
"fuser",
|
||
"gawk",
|
||
"getfacl",
|
||
"gpasswd",
|
||
"gprof",
|
||
"grep",
|
||
"groupadd",
|
||
"groupdel",
|
||
"groupmod",
|
||
"gnuzip",
|
||
"gview",
|
||
"gvim",
|
||
"gzip",
|
||
"halt",
|
||
"head",
|
||
"help",
|
||
"history",
|
||
"host",
|
||
"hostid",
|
||
"hostname",
|
||
"htop",
|
||
"id",
|
||
"ifconfig",
|
||
"ifdown",
|
||
"ifquery",
|
||
"ifup",
|
||
"info",
|
||
"insmod",
|
||
"iostat",
|
||
"ip",
|
||
"iwconfig",
|
||
"jobs",
|
||
"join",
|
||
"kill",
|
||
"killall",
|
||
"ksh",
|
||
"last",
|
||
"ld",
|
||
"ldd",
|
||
"less",
|
||
"link",
|
||
"ln",
|
||
"lo",
|
||
"locate",
|
||
"login",
|
||
"logname",
|
||
"logout",
|
||
"losetup",
|
||
"ls",
|
||
"lsmod",
|
||
"lsof",
|
||
"lzcat",
|
||
"lzma",
|
||
"mach",
|
||
"mailx",
|
||
"make",
|
||
"man",
|
||
"merge",
|
||
"mesg",
|
||
"mkdir",
|
||
"mkfs",
|
||
"mkswap",
|
||
"modinfo",
|
||
"modprobe",
|
||
"more",
|
||
"mount",
|
||
"mt",
|
||
"mv",
|
||
"mysql",
|
||
"mysqldump",
|
||
"nc",
|
||
"netstat",
|
||
"newgrp",
|
||
"nice",
|
||
"niscat",
|
||
"nischmod",
|
||
"nischown",
|
||
"nischttl",
|
||
"nisdefaults",
|
||
"nistbladm",
|
||
"nl",
|
||
"nmap",
|
||
"nohup",
|
||
"nroff",
|
||
"nslookup",
|
||
"od",
|
||
"on",
|
||
"onintr",
|
||
"pack",
|
||
"pacman",
|
||
"pagesize",
|
||
"parted",
|
||
"partprobe",
|
||
"passwd",
|
||
"paste",
|
||
"pax",
|
||
"pact",
|
||
"perl",
|
||
"pg",
|
||
"pico",
|
||
"pine",
|
||
"pkill",
|
||
"poweroff",
|
||
"pr",
|
||
"printenv",
|
||
"printf",
|
||
"ps",
|
||
"pstree",
|
||
"pvs",
|
||
"pwd",
|
||
"quit",
|
||
"rcp",
|
||
"readlink",
|
||
"reboot",
|
||
"red",
|
||
"rename",
|
||
"repeat",
|
||
"replace",
|
||
"rlogin",
|
||
"rm",
|
||
"rmdir",
|
||
"rmmod",
|
||
"route",
|
||
"rpcinfo",
|
||
"rsh",
|
||
"rsync",
|
||
"s2p",
|
||
"scp",
|
||
"screen",
|
||
"script",
|
||
"sdiff",
|
||
"sed",
|
||
"sendmail",
|
||
"service",
|
||
"set",
|
||
"setfacl",
|
||
"sfdisk",
|
||
"sftp",
|
||
"sh",
|
||
"shred",
|
||
"shutdown",
|
||
"sleep",
|
||
"slogin",
|
||
"smbclient",
|
||
"sort",
|
||
"spell",
|
||
"split",
|
||
"startx",
|
||
"ss",
|
||
"ssh",
|
||
"stat",
|
||
"stop",
|
||
"strftime",
|
||
"strip",
|
||
"stty",
|
||
"su",
|
||
"sudo",
|
||
"swapoff",
|
||
"swapon",
|
||
"systemctl",
|
||
"tabs",
|
||
"tac",
|
||
"tail",
|
||
"talk",
|
||
"tar",
|
||
"tcopy",
|
||
"tcpdump",
|
||
"tcsh",
|
||
"tee",
|
||
"telnet",
|
||
"test",
|
||
"time",
|
||
"timex",
|
||
"todos",
|
||
"top",
|
||
"touch",
|
||
"traceroute",
|
||
"tree",
|
||
"tty",
|
||
"umask",
|
||
"umount",
|
||
"unalias",
|
||
"uname",
|
||
"uncompress",
|
||
"uniq",
|
||
"unlink",
|
||
"unlzma",
|
||
"unpack",
|
||
"until",
|
||
"unxz",
|
||
"unzip",
|
||
"uptime",
|
||
"useradd",
|
||
"userdel",
|
||
"usermod",
|
||
"vacation",
|
||
"vi",
|
||
"vim",
|
||
"w",
|
||
"wait",
|
||
"wall",
|
||
"wc",
|
||
"wget",
|
||
"whereis",
|
||
"which",
|
||
"while",
|
||
"who",
|
||
"whoami",
|
||
"whois",
|
||
"Xorg",
|
||
"xargs",
|
||
"xfd",
|
||
"xhost",
|
||
"xlsfonts",
|
||
"xrdb",
|
||
"xset",
|
||
"xz",
|
||
"xzcat",
|
||
"yacc",
|
||
"yes",
|
||
"yppasswd",
|
||
"yum",
|
||
"zcat",
|
||
"zipcloack",
|
||
"zipinfo",
|
||
"zipnote",
|
||
"zipsplit",
|
||
"zypper"
|
||
//</editor-fold>
|
||
};
|
||
public static Vector<String> admins_mails = new Vector_<>(
|
||
"sapfor.tracker@internet.ru",
|
||
"vmk-post@yandex.ru"
|
||
, "79854210702@ya.ru"
|
||
);
|
||
}
|