public class Q2
extends java.lang.Object
implements java.io.FileFilter, java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
Q2.QEntry |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DEPLOY_DIR |
static java.lang.String |
DUPLICATE_EXTENSION |
static java.lang.String |
ENV_EXTENSION |
static java.lang.String |
ERROR_EXTENSION |
static java.lang.String |
JMX_NAME |
static java.lang.String |
LICENSEE |
static java.lang.String |
LOGGER_CONFIG |
static java.lang.String |
LOGGER_NAME |
static java.lang.String |
PROTECTED_QBEAN |
static byte[] |
PUBKEYHASH |
static java.lang.String |
Q2_CLASS_LOADER |
static java.lang.String |
QBEAN_NAME |
static java.lang.String |
REALM |
static int |
SCAN_INTERVAL |
static long |
SHUTDOWN_TIMEOUT |
Constructor and Description |
---|
Q2() |
Q2(java.lang.String deployDir) |
Q2(java.lang.String[] args) |
Q2(java.lang.String[] args,
org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f) |
protected org.jdom2.Document |
decrypt(org.jdom2.Document doc) |
void |
deployElement(org.jdom2.Element e,
java.lang.String fileName,
boolean encrypt,
boolean isTransient) |
void |
displayVersion() |
protected org.jdom2.Document |
encrypt(org.jdom2.Document doc) |
static java.lang.String |
getAppVersionString() |
static java.lang.String |
getBranch() |
static java.lang.String |
getBuildTimestamp() |
java.lang.String[] |
getCommandLineArgs() |
java.io.File |
getDeployDir() |
QFactory |
getFactory() |
java.util.UUID |
getInstanceId() |
protected byte[] |
getKey() |
QClassLoader |
getLoader() |
Log |
getLog() |
javax.management.MBeanServer |
getMBeanServer() |
org.osgi.framework.launch.Framework |
getOSGIFramework() |
static Q2 |
getQ2() |
static Q2 |
getQ2(long timeout) |
static java.lang.String |
getRelease() |
static java.lang.String |
getRevision() |
long |
getUptime() |
static java.lang.String |
getVersion() |
static java.lang.String |
getVersionString() |
java.lang.String |
getWatchServiceClassname() |
boolean |
isDisableDynamicClassloader() |
static void |
main(java.lang.String[] args) |
boolean |
ready() |
boolean |
ready(long millis) |
void |
relax() |
void |
relax(long sleep) |
void |
run() |
boolean |
running() |
void |
shutdown() |
void |
shutdown(boolean join) |
void |
start() |
void |
stop() |
public static final java.lang.String DEFAULT_DEPLOY_DIR
public static final java.lang.String JMX_NAME
public static final java.lang.String LOGGER_NAME
public static final java.lang.String REALM
public static final java.lang.String LOGGER_CONFIG
public static final java.lang.String QBEAN_NAME
public static final java.lang.String Q2_CLASS_LOADER
public static final java.lang.String DUPLICATE_EXTENSION
public static final java.lang.String ERROR_EXTENSION
public static final java.lang.String ENV_EXTENSION
public static final java.lang.String LICENSEE
public static final byte[] PUBKEYHASH
public static final java.lang.String PROTECTED_QBEAN
public static final int SCAN_INTERVAL
public static final long SHUTDOWN_TIMEOUT
public Q2(java.lang.String[] args, org.osgi.framework.BundleContext bundleContext)
public Q2()
public Q2(java.lang.String deployDir)
public Q2(java.lang.String[] args)
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
public void shutdown()
public boolean running()
public boolean ready()
public boolean ready(long millis)
public void shutdown(boolean join)
public QClassLoader getLoader()
public QFactory getFactory()
public java.lang.String[] getCommandLineArgs()
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
public java.io.File getDeployDir()
public java.lang.String getWatchServiceClassname()
public static Q2 getQ2()
public static Q2 getQ2(long timeout)
public void relax(long sleep)
public void relax()
public Log getLog()
public javax.management.MBeanServer getMBeanServer()
public long getUptime()
public void displayVersion()
public java.util.UUID getInstanceId()
public static java.lang.String getVersionString()
public void deployElement(org.jdom2.Element e, java.lang.String fileName, boolean encrypt, boolean isTransient) throws ISOException, java.io.IOException, java.security.GeneralSecurityException
ISOException
java.io.IOException
java.security.GeneralSecurityException
public org.osgi.framework.launch.Framework getOSGIFramework()
protected byte[] getKey()
protected org.jdom2.Document encrypt(org.jdom2.Document doc) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
protected org.jdom2.Document decrypt(org.jdom2.Document doc) throws java.security.GeneralSecurityException, java.io.IOException, org.jdom2.JDOMException
java.security.GeneralSecurityException
java.io.IOException
org.jdom2.JDOMException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getVersion()
public static java.lang.String getRevision()
public static java.lang.String getBranch()
public static java.lang.String getBuildTimestamp()
public static java.lang.String getRelease()
public static java.lang.String getAppVersionString()
public boolean isDisableDynamicClassloader()