railo.runtime.registry
Class RegistryQuery

java.lang.Object
  extended by railo.runtime.registry.RegistryQuery

public final class RegistryQuery
extends Object


Constructor Summary
RegistryQuery()
           
 
Method Summary
static void deleteValue(String branch, String entry)
          deletes a value or a key
static String executeQuery(String[] cmd)
          execute a String query on command line
static RegistryEntry getValue(String branch, String entry, short type)
          gets a single value form the registry
static RegistryEntry[] getValues(String branch, short type)
          gets all entries of one branch
static void setValue(String branch, String entry, short type, String value)
          writes a value to registry
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryQuery

public RegistryQuery()
Method Detail

executeQuery

public static String executeQuery(String[] cmd)
                           throws IOException,
                                  InterruptedException
execute a String query on command line

Parameters:
query - String to execute
Returns:
Throws:
IOException
InterruptedException

getValue

public static RegistryEntry getValue(String branch,
                                     String entry,
                                     short type)
                              throws RegistryException,
                                     IOException,
                                     InterruptedException
gets a single value form the registry

Parameters:
branch - brach to get value from
entry - entry to get
type - type of the registry entry to get
Returns:
registry entry or null of not exist
Throws:
RegistryException
IOException
InterruptedException

getValues

public static RegistryEntry[] getValues(String branch,
                                        short type)
                                 throws RegistryException,
                                        IOException,
                                        InterruptedException
gets all entries of one branch

Parameters:
branch -
type -
Returns:
Throws:
RegistryException
IOException
InterruptedException

setValue

public static void setValue(String branch,
                            String entry,
                            short type,
                            String value)
                     throws RegistryException,
                            IOException,
                            InterruptedException
writes a value to registry

Parameters:
branch -
entry -
type -
value -
Throws:
RegistryException
IOException
InterruptedException

deleteValue

public static void deleteValue(String branch,
                               String entry)
                        throws IOException,
                               InterruptedException
deletes a value or a key

Parameters:
branch -
entry -
Throws:
IOException
InterruptedException


Copyright © 2012 Railo