Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.apache.camel.karaf.commands;
CamelController interface defines the expected behaviors to manipulate Camel resources (context, route, etc).
public interface CamelController {

    
Get the list of Camel context.

Returns:
the list of Camel contexts.
    List<CamelContextgetCamelContexts();

    
Get a Camel context identified by the given name.

Parameters:
name the Camel context name.
Returns:
the Camel context or null if not found.
    CamelContext getCamelContext(String name);

    
Get all routes. If Camel context name is null, all routes from all contexts are listed.

Parameters:
camelContextName the Camel context name. If null, all contexts are considered.
Returns:
the list of the Camel routes.
    List<RoutegetRoutes(String camelContextName);
    
    
Get all routes filtered by the regex.

Parameters:
camelContextName the Camel context name. If null, all contexts are considered.
filter the filter which supports * and ? as wildcards
Returns:
the list of the Camel routes.
    List<RoutegetRoutes(String camelContextNameString filter);

    
Return the route with the given route ID.

Parameters:
routeId the route ID.
camelContextName the Camel context name.
Returns:
the route.
    Route getRoute(String routeIdString camelContextName);

    
Return the definition of a route identified by a ID and a Camel context.

Parameters:
routeId the route ID.
camelContextName the Camel context.
Returns:
the RouteDefinition.
    RouteDefinition getRouteDefinition(String routeIdString camelContextName);

    
Return the endpoints

Parameters:
camelContextName the Camel context.
Returns:
the endpoints
    List<EndpointgetEndpoints(String camelContextName);
New to GrepCode? Check out our FAQ X