Apache Karaf Cellar 3.x Documentation
command execution have elapsed, the list is moved to a blocking queue from which the result can be retrieved. The following code snippet shows what happens when a command is sent for execution: public it with the result. commandStore.getPending().put(command.getId(), command); //I create a timeout task and schedule it TimeoutTask timeoutTask = new TimeoutTask(command, commandStore); ScheduledFuture0 码力 | 34 页 | 157.07 KB | 1 年前3Apache Karaf Cellar 4.x - Documentation
command execution have elapsed, the list is moved to a blocking queue from which the result can be retrieved. The following code snippet shows what happens when a command is sent for execution: public it with the result. commandStore.getPending().put(command.getId(), command); //I create a timeout task and schedule it TimeoutTask timeoutTask = new TimeoutTask(command, commandStore); ScheduledFuture0 码力 | 39 页 | 177.09 KB | 1 年前3Apache Karaf Container 4.x - Documentation
contained in a script • shell:stack-traces-print prints the full stack trace in the console when the execution of a command throws an exception • shell:tac captures the STDIN and returns it as a string • defined in etc/ org.apache.karaf.log.cfg . You can also change the pattern dynamically (for one execution) using the -p option: The pattern is a regular Log4j pattern where you can use keywords like %d -emp and mvn -ep passwords and manually configure ~/.m2/settings-security.xml file. Karaf makes the task of managing credentials easier. In order to use encrypted repository (or http proxy) passwords inside0 码力 | 370 页 | 1.03 MB | 1 年前3Apache Karaf 3.0.5 Guides
0)(!(version>=4.0.0))) [81.0] osgi.wiring.package; (&(osgi.wiring.package=org.jboss.netty.handler.execution)(version>=3.4.0)(!(version>=4.0.0))) [81.0] osgi.wiring.package; (&(osgi.wiring.package=org.mortbay STACK TRACES PRINTOUT The shell:stack-traces-print command prints the full stack trace when the execution of a command throws an exception. You can enable or disable this behaviour by passing true (to introduced the scripting support. ASSIGNATION You already know the first usage of scripting: execution of command. karaf@root()> echo hello world hello world You can also assign value to session variables:0 码力 | 203 页 | 534.36 KB | 1 年前3Apache Karaf Decanter 2.x - Documentation
(attribute values) are send to the appenders. In addition, the JMX collector also supports the execution of operations on dedicated ObjectName that Apache Karaf Decanter 2.x - Documentation - 6 you configure Decanter Scheduler). This collector executes operating system commands (or scripts) and send the execution output to the appenders. The decanter-collector-system feature installs the system collector: name=system_command The collector will execute each command described in this file, and send the execution output to the appenders. For instance, if you want to periodically send the free space available0 码力 | 64 页 | 812.01 KB | 1 年前3Apache Karaf Decanter 1.x - Documentation
Decanter Scheduler). This collector executes operating system commands (or scripts) and send the execution output to the appenders. The decanter-collector-system feature installs the system collector: using the format: The collector will execute each command described in this file, and send the execution output to the appenders. For instance, if you want to periodically send the free space available0 码力 | 67 页 | 213.16 KB | 1 年前3
共 6 条
- 1