Apache Karaf Decanter 2.x - Documentationproperty using a custom DecanterCamelEventExtender: public interface DecanterCamelEventExtender { void extend(MapdecanterData, Exchange camelExchange); } You can inject your extender inprogressRequests = Gauge.build() .name("inprogress_requests").help("Inprogress requests.").register(); void processRequest() { inprogressRequests.inc(); // Your code here. inprogressRequests.dec(); BundleCollector(Event dispatcher) { this.dispatcher = dispatcher; } @Override public void bundleChanged(BundleEvent bundleEvent) { HashMap data = new HashMap<>(); 0 码力 | 64 页 | 812.01 KB | 1 年前3
Apache Karaf Decanter 1.x - Documentationuri="log:test"/> public interface DecanterCamelEventExtender { void extend(MapdecanterData, Exchange camelExchange); } It’s very similar to the Decanter eventAdmin; public BundleCollector(Event eventAdmin) { this.eventAdmin = eventAdmin; } @Override public void bundleChanged(BundleEvent bundleEvent) { HashMap data = new HashMap<>(); data.put("type" ServiceTracker; public class Activator implements BundleActivator { private BundleCollector collector; public void start(final BundleContext bundleContext) { ServiceTracker tracker = new ServiceTracker(bundleContext 0 码力 | 67 页 | 213.16 KB | 1 年前3
Apache Karaf Cave 4.x - Documentationcave:* commands: • void createRepository(String name, String location, boolean generate, boolean install) throws Exception; • void destroyRepository(String name) throws Exception; • void installRepository(String throws Exception; • void uninstallRepository(String name) throws Exception; • void populateRepository(String name, String url, boolean generate, String filter) throws Exception; • void proxyRepository(String name, String url, boolean generate, String filter) throws Exception; • void updateRepository(String name) throws Exception; • void uploadArtifact(String repository, String artifactUrl, boolean generate)0 码力 | 11 页 | 88.13 KB | 1 年前3
Apache Karaf Cave 3.x - Documentationcommands: • void createRepository(String name, String location, boolean generateObr, boolean install) throws Exception; • void destroyRepository(String name) throws Exception; • void installRepository(String throws Exception; • void uninstallRepository(String name) throws Exception; • void populateRepository(String name, String url, boolean generateObr, String filter) throws Exception; • void proxyRepository(String String url, boolean generateObr, String filter) throws Exception; • void updateRepository(String name) throws Exception; • void uploadArtifact(String repository, String artifactUrl, boolean generateObr)0 码力 | 18 页 | 101.41 KB | 1 年前3
Apache Karaf Container 4.x - DocumentationXPRESSION + "=0 0/10 * * * ?", } ) public class SchedulerPing implements Job { @Override public void execute(JobContext context) { // .. } } karaf@root()> scheduler:list Name │ ", "scheduler.name=PingJob" } ) public class PingThread implements Runnable { @Override public void run() { // .. } } karaf@root()> scheduler:list Name │ Schedule ──────── ", "scheduler.name=PingJob" } ) public class PingThread implements Runnable { @Override public void run() { // .. } } 4.20.4. Schedule a new Job using the Gogo Shell karaf@root()> scheduler:schedule-script0 码力 | 370 页 | 1.03 MB | 1 年前3
Apache Karaf 3.0.5 GuidesSshClient; import org.apache.sshd.client.future.ConnectFuture; public class Main { public static void main(String[] args) throws Exception { String host = "localhost"; int port = 8101; String user = Apache Karaf remotely via the JMX layer: javax.management.*; public class Main { public static void main(String[] args) throws Exception { JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:/ type("zip").versionAsInProject()) .karafVersion("2.2.4").name("Apache Karaf")}; } @Test public void test() throws Exception { assertTrue(true); } } COMMANDS Basically the Pax Exam - Karaf bridge0 码力 | 203 页 | 534.36 KB | 1 年前3
共 6 条
- 1













