public class IQM extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
IQM.ShutdownHook
Custom
IQM.ShutdownHook for IQM, which releases the lock on the file
after the shutdown has been initiated. |
| Modifier and Type | Field and Description |
|---|---|
private static FileChannel |
channel |
private static File |
f |
private static FileLock |
lock |
private static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
IQM(boolean ignored)
Constructs a new instance of the IQM application.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
applyDefaultLookAndFeel()
Apply the system's look-and-feel setting before initializing the
configuration from
ConfigManager. |
protected void |
checkAlreadyStarted()
This method checks, whether another instance of IQM is already running.
|
protected static void |
checkJavaVersion() |
static void |
main(String[] args)
This is the entry point for the extended IQM application.
|
private static void |
unlockFile()
Unlock the file, enabling another IQM instance to start up.
|
private static final org.apache.log4j.Logger logger
private static File f
private static FileChannel channel
private static FileLock lock
protected void checkAlreadyStarted()
throws RuntimeException
RuntimeExceptionprivate static void unlockFile()
protected static void applyDefaultLookAndFeel()
ConfigManager.public static void main(String[] args) throws IOException, URISyntaxException
args - IOExceptionURISyntaxExceptionprotected static void checkJavaVersion()
Copyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.