public class STAFProcessHelpers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static GetText |
errorText |
protected static java.lang.String |
NULL_ERROR |
Modifier and Type | Method and Description |
---|---|
static java.util.Enumeration |
getSTAFHelperProcessNames()
Retrieve the Process Names of any registered STAFHelpers--regardless of Class.
|
static boolean |
hasSTAFHelpers() |
static STAFHelper |
launchSTAFProc(java.lang.String processName)
Attempt to launch STAF.
|
static STAFHelper |
launchSTAFProcClass(java.lang.String processName,
java.lang.Class clazz)
Attempt to launch STAF.
|
static STAFHelper |
registerHelper(java.lang.String process_name)
Create/Register/Retrieve a STAFHelper with the given process name.
|
static STAFHelper |
registerHelperClass(java.lang.String process_name,
java.lang.Class clazz)
create/Register/Retrieve a STAFHelper with the given process name.
|
static void |
shutdownDebugLog()
Attempt to shutdown the SAFS Debug Log, if any.
|
static void |
shutdownSTAFProc()
Attempt to shutdown STAF.
|
static void |
unRegisterALLHelpers()
Unregisters ALL STAFHelpers for ALL processes ever registered via this class.
|
static void |
unRegisterHelper(java.lang.String process_name)
unRegister a STAFHelper with the given process name.
|
protected static GetText errorText
protected static final java.lang.String NULL_ERROR
public static STAFHelper registerHelperClass(java.lang.String process_name, java.lang.Class clazz) throws SAFSSTAFRegistrationException
If the STAFHelper was not already registered then a STAFHelper of the provided subclass will be instantiated.
process_name
- The name of the process to register with STAF.clazz
- Allows us to specify a specific STAFHelper subclass to instantiate, if needed.SAFSStafRegistrationException
- may be thrown if the process was registered
by some other means outside of the control of this class.SAFSSTAFRegistrationException
public static STAFHelper registerHelper(java.lang.String process_name) throws SAFSSTAFRegistrationException
process_name
- The name of the process to register with STAF.SAFSStafRegistrationException
- may be thrown if the process was registered
by some other means outside of the control of this class.SAFSSTAFRegistrationException
public static void unRegisterHelper(java.lang.String process_name) throws SAFSSTAFRegistrationException
The user can also simply wait until the end of everything and call the unRegisterALLHelpers method. This will unRegister all known STAFHelpers for all processes ever registered via this class.
process_name
- The name of the process to unRegister with STAF.SAFSStafRegistrationException
- may be thrown if some problem occurs.SAFSSTAFRegistrationException
public static void unRegisterALLHelpers()
public static STAFHelper launchSTAFProc(java.lang.String processName) throws SAFSSTAFRegistrationException
processName
- to automatically register with STAF and detect ServiceLoader.SAFSSTAFRegistrationException
public static STAFHelper launchSTAFProcClass(java.lang.String processName, java.lang.Class clazz) throws SAFSSTAFRegistrationException
processName
- to automatically register with STAF and detect ServiceLoader.a
- STAFHelper subclass Class to instantiate.SAFSSTAFRegistrationException
registerHelperClass(String, Class)
public static void shutdownDebugLog() throws SAFSException
SAFSException
public static void shutdownSTAFProc() throws SAFSException
However, calling this routine will make an attempt to shutdown any running SAFS Debug Log.
SAFSException
shutdownDebugLog()
public static boolean hasSTAFHelpers()
public static java.util.Enumeration getSTAFHelperProcessNames() throws java.lang.NullPointerException
java.lang.NullPointerException
Copyright © SAS Institute. All Rights Reserved.