public class MSystem extends Object
MSystem class.
| Modifier and Type | Class and Description |
|---|---|
static class |
MSystem.ScriptResult |
| Constructor and Description |
|---|
MSystem() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beep()
makeshift system beep if awt.Toolkit.beep is not available.
|
static boolean |
equals(Object a,
Object b)
equals.
|
static <A extends Annotation> |
findAnnotation(Class<?> clazz,
Class<A> annotation)
findAnnotation.
|
static String |
findSource(int returns)
findSource.
|
static String |
getAppIdent()
getAppIdent.
|
static String |
getClassName(Object obj)
getClassName.
|
static String |
getHostname()
Returns the name of the current system.
|
static String |
getMainClassName()
Return the name of the main class or null if not found.
|
static String |
getObjectId(Object o)
getObjectId.
|
static String |
getPid()
Returns the process id of the current application.
|
static String |
getTmpDirectory()
Return the system temp directory.
|
static Properties |
loadProperties(Object owner,
Properties properties,
String propertyFile)
Load and return a properties file.
|
static URL |
locateResource(Object owner,
String propertyFile)
1.
|
static MSystem.ScriptResult |
startScript(File dir,
String script,
long timeout)
startScript.
|
static String |
toString(Object sender,
Object... attributes)
toString.
|
public static String getHostname()
String object.public static String getPid()
String object.public static Properties loadProperties(Object owner, Properties properties, String propertyFile)
owner - null or reference object for the class pathproperties - A pre-instanciated properties objectpropertyFile - Name of the properties file, e.g. something.propertiespublic static URL locateResource(Object owner, String propertyFile) throws IOException
owner - a Object object.propertyFile - a String object.URL object.IOException - if any.public static void beep()
public static String findSource(int returns)
findSource.
returns - a int.String object.public static String getMainClassName()
String object.public static String getTmpDirectory()
String object.public static <A extends Annotation> A findAnnotation(Class<?> clazz, Class<A> annotation)
findAnnotation.
public static MSystem.ScriptResult startScript(File dir, String script, long timeout)
startScript.
dir - a File object.script - a String object.timeout - a long.MSystem.ScriptResult object.Copyright © 2016. All Rights Reserved.