All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uw.task.conf.TaskProperties Maven / Gradle / Ivy

Go to download

uw-task包是一个分布式任务框架,通过uw-task可以快速构建基于docker的分布式任务体系,同时支持基于influx的任务运维监控。

The newest version!
package uw.task.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 任务配置类。
 * @author axeon
 *
 */
@Configuration
@ConfigurationProperties(prefix = "task")
public class TaskProperties {

	/**
	 * 任务名,必须设置为基础包名。
	 */
	private String project;

	/**
	 * 任务服务器相关配置
	 */
	private Server server = new Server();
	
	/**
	 * @return the server
	 */
	public Server getServer() {
		return server;
	}

	/**
	 * @param server the server to set
	 */
	public void setServer(Server server) {
		this.server = server;
	}
	
	/**
	 * @return the project
	 */
	public String getProject() {
		return project;
	}

	/**
	 * @param project the project to set
	 */
	public void setProject(String project) {
		this.project = project;
	}



	/**
	 * 监控信息配置
	 * @author axeon
	 *
	 */
	public static class Server {
		
		
		/**
		 * influxdb主机
		 */
		String host="http://localhost:8080";
		
		/**
		 * influxdb用户名
		 */
		String username ="root";
		
		/**
		 * influx密码
		 */
		String password ="root";
		
		/**
		 * @return the host
		 */
		public String getHost() {
			return host;
		}

		/**
		 * @param host
		 *            the host to set
		 */
		public void setHost(String host) {
			this.host = host;
		}

		/**
		 * @return the usernmae
		 */
		public String getUsername() {
			return username;
		}

		/**
		 * @param usernmae
		 *            the usernmae to set
		 */
		public void setUsername(String username) {
			this.username = username;
		}

		/**
		 * @return the password
		 */
		public String getPassword() {
			return password;
		}

		/**
		 * @param password
		 *            the password to set
		 */
		public void setPassword(String password) {
			this.password = password;
		}

	}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy