summaryrefslogtreecommitdiffstats
path: root/daemon/src/main/java/org/openslx/taskmanager/Global.java
blob: 7ca2c2d4c3fbce669adb7acbd5a7f667c936c249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.openslx.taskmanager;

import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class Global
{

	public static final int LISTEN_PORT = 9215;

	public static final String TASK_PACKAGE_NAME = "org.openslx.taskmanager.tasks";

	public static final long MAX_TASK_AGE = 24l * 3600l * 1000l;

	public static final InetAddress LISTEN_ADDRESS;

	public static volatile boolean doShutdown = false;

	static
	{
		InetAddress la;
		try {
			la = Inet4Address.getByName( "127.0.0.1" );
		} catch ( UnknownHostException e ) {
			la = null;
			e.printStackTrace();
		}
		LISTEN_ADDRESS = la;
	}

}