org.jpos.q2
Class Q2

java.lang.Object
  extended by org.jpos.q2.Q2
All Implemented Interfaces:
FileFilter, Runnable

public class Q2
extends Object
implements FileFilter, Runnable

Version:
$Revision$ $Date$
Author:
Alireza Taherkordi, Alejandro P. Revilla, Alwyn Schoeman, Victor Salaman

Nested Class Summary
static class Q2.QEntry
           
 
Field Summary
static String DEFAULT_DEPLOY_DIR
           
static String DUPLICATE_EXTENSION
           
static String ENV_EXTENSION
           
static String ERROR_EXTENSION
           
static String JMX_NAME
           
static String LICENSEE
           
static String LOGGER_CONFIG
           
static String LOGGER_NAME
           
static String PROTECTED_QBEAN
           
static String Q2_CLASS_LOADER
           
static String QBEAN_NAME
           
static String REALM
           
static int SCAN_INTERVAL
           
static long SHUTDOWN_TIMEOUT
           
 
Constructor Summary
Q2()
           
Q2(String deployDir)
           
Q2(String[] args)
           
 
Method Summary
 boolean accept(File f)
           
protected  org.jdom.Document decrypt(org.jdom.Document doc)
           
 void deployElement(org.jdom.Element e, String fileName, boolean encrypt, boolean isTransient)
           
 void displayVersion()
           
protected  org.jdom.Document encrypt(org.jdom.Document doc)
           
static String getBuildTimestamp()
           
 String[] getCommandLineArgs()
           
 File getDeployDir()
           
 QFactory getFactory()
           
 UUID getInstanceId()
           
protected  byte[] getKey()
           
static String getLicensee()
           
 QClassLoader getLoader()
           
 Log getLog()
           
 MBeanServer getMBeanServer()
           
static String getRelease()
           
static String getRevision()
           
 long getUptime()
           
static String getVersion()
           
static String getVersionString()
           
static void main(String[] args)
           
 void relax()
           
 void relax(long sleep)
           
 void run()
           
 boolean running()
           
 void shutdown()
           
 void shutdown(boolean join)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DEPLOY_DIR

public static final String DEFAULT_DEPLOY_DIR
See Also:
Constant Field Values

JMX_NAME

public static final String JMX_NAME
See Also:
Constant Field Values

LOGGER_NAME

public static final String LOGGER_NAME
See Also:
Constant Field Values

REALM

public static final String REALM
See Also:
Constant Field Values

LOGGER_CONFIG

public static final String LOGGER_CONFIG
See Also:
Constant Field Values

QBEAN_NAME

public static final String QBEAN_NAME
See Also:
Constant Field Values

Q2_CLASS_LOADER

public static final String Q2_CLASS_LOADER
See Also:
Constant Field Values

DUPLICATE_EXTENSION

public static final String DUPLICATE_EXTENSION
See Also:
Constant Field Values

ERROR_EXTENSION

public static final String ERROR_EXTENSION
See Also:
Constant Field Values

ENV_EXTENSION

public static final String ENV_EXTENSION
See Also:
Constant Field Values

LICENSEE

public static final String LICENSEE
See Also:
Constant Field Values

PROTECTED_QBEAN

public static final String PROTECTED_QBEAN
See Also:
Constant Field Values

SCAN_INTERVAL

public static final int SCAN_INTERVAL
See Also:
Constant Field Values

SHUTDOWN_TIMEOUT

public static final long SHUTDOWN_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

Q2

public Q2(String[] args)

Q2

public Q2()

Q2

public Q2(String deployDir)
Method Detail

start

public void start()

stop

public void stop()

run

public void run()
Specified by:
run in interface Runnable

shutdown

public void shutdown()

running

public boolean running()

shutdown

public void shutdown(boolean join)

getLoader

public QClassLoader getLoader()

getFactory

public QFactory getFactory()

getCommandLineArgs

public String[] getCommandLineArgs()

accept

public boolean accept(File f)
Specified by:
accept in interface FileFilter

getDeployDir

public File getDeployDir()

relax

public void relax(long sleep)

relax

public void relax()

getLog

public Log getLog()

getMBeanServer

public MBeanServer getMBeanServer()

getUptime

public long getUptime()

displayVersion

public void displayVersion()

getInstanceId

public UUID getInstanceId()

getVersionString

public static String getVersionString()

getLicensee

public static String getLicensee()

deployElement

public void deployElement(org.jdom.Element e,
                          String fileName,
                          boolean encrypt,
                          boolean isTransient)
                   throws ISOException,
                          IOException,
                          GeneralSecurityException
Throws:
ISOException
IOException
GeneralSecurityException

getKey

protected byte[] getKey()

encrypt

protected org.jdom.Document encrypt(org.jdom.Document doc)
                             throws GeneralSecurityException,
                                    IOException
Throws:
GeneralSecurityException
IOException

decrypt

protected org.jdom.Document decrypt(org.jdom.Document doc)
                             throws GeneralSecurityException,
                                    IOException,
                                    org.jdom.JDOMException
Throws:
GeneralSecurityException
IOException
org.jdom.JDOMException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

getVersion

public static String getVersion()

getRevision

public static String getRevision()

getBuildTimestamp

public static String getBuildTimestamp()

getRelease

public static String getRelease()


Copyright © 1998-2012 jPOS.org. All Rights Reserved.