org.kie.server.client.KieServicesClient Maven / Gradle / Ivy
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* 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.kie.server.client;
import org.kie.api.command.Command;
import org.kie.server.api.commands.CommandScript;
import org.kie.server.api.model.KieContainerResource;
import org.kie.server.api.model.KieContainerResourceList;
import org.kie.server.api.model.KieScannerResource;
import org.kie.server.api.model.KieServerConfig;
import org.kie.server.api.model.KieServerInfo;
import org.kie.server.api.model.ReleaseId;
import org.kie.server.api.model.ServiceResponse;
import org.kie.server.api.model.ServiceResponsesList;
public interface KieServicesClient {
T getServicesClient(Class serviceClient);
ServiceResponse getServerInfo();
ServiceResponse listContainers();
ServiceResponse createContainer(String id, KieContainerResource resource);
ServiceResponse getContainerInfo(String id);
ServiceResponse disposeContainer(String id);
ServiceResponsesList executeScript(CommandScript script);
ServiceResponse getScannerInfo(String id);
ServiceResponse updateScanner(String id, KieScannerResource resource);
ServiceResponse updateReleaseId(String id, ReleaseId releaseId);
// for backward compatibility reason
/**
* This method is deprecated on KieServicesClient as it was moved to RuleServicesClient
* @see RuleServicesClient#executeCommands(String, String)
* @deprecated
*/
@Deprecated
ServiceResponse executeCommands(String id, String payload);
/**
* This method is deprecated on KieServicesClient as it was moved to RuleServicesClient
* @see RuleServicesClient#executeCommands(String, Command)
* @deprecated
*/
@Deprecated
ServiceResponse executeCommands(String id, Command> cmd);
/**
* Sets the classloader for user class unmarshalling
* @param classLoader
*/
void setClassLoader(ClassLoader classLoader);
/**
* Returns the current classloader in use for unmarshalling
* @return
*/
ClassLoader getClassLoader();
String getConversationId();
void completeConversation();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy