public class StandardEnvironment extends AbstractLoggingBean implements Environment
logENV_COLUMNS, ENV_LINES, ENV_TERM, ENV_USER| Constructor and Description |
|---|
StandardEnvironment() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSignalListener(SignalListener listener,
Collection<Signal> signals)
Add a qualified listener for the specific signals
|
Map<String,String> |
getEnv()
Retrieve the environment map
|
Map<PtyMode,Integer> |
getPtyModes()
Retrieve the PTY modes settings
|
protected Collection<SignalListener> |
getSignalListeners(Signal signal,
boolean create)
Retrieves the set of listeners registered for a signal
|
void |
removeSignalListener(SignalListener listener)
Remove a previously registered listener for all the signals it was registered
|
void |
set(String key,
String value)
Adds a variable to the environment.
|
void |
signal(Channel channel,
Signal signal) |
String |
toString() |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSignalListener, addSignalListenerpublic void addSignalListener(SignalListener listener, Collection<Signal> signals)
EnvironmentaddSignalListener in interface Environmentlistener - the SignalListener to registersignals - the Signals the listener is interested inpublic Map<String,String> getEnv()
EnvironmentgetEnv in interface EnvironmentMap - never nullpublic Map<PtyMode,Integer> getPtyModes()
EnvironmentgetPtyModes in interface EnvironmentMap of PtyModes - never nullpublic void removeSignalListener(SignalListener listener)
EnvironmentremoveSignalListener in interface Environmentlistener - the SignalListener to removepublic void set(String key, String value)
set according to the name of the
appropriate posix command setkey - environment variable name - never null/emptyvalue - environment variable valueprotected Collection<SignalListener> getSignalListeners(Signal signal, boolean create)
signal - The specified Signalcreate - If true and no current listeners are mapped then creates a new CollectionCollection of listeners registered for the signal - may be null in case
create is falseCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.