All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rapture.common.client.HttpRunnerApi Maven / Gradle / Ivy

/**
 * The MIT License (MIT)
 *
 * Copyright (C) 2011-2016 Incapture Technologies LLC
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * This file is autogenerated and any changes will be overwritten.
 */

package rapture.common.client;

import java.util.List;
import java.util.Map;
import rapture.common.api.RunnerApi;
import rapture.common.api.ScriptRunnerApi;
import rapture.common.CallingContext;
import rapture.common.model.GeneralResponse;
import rapture.common.model.BasePayload;
import rapture.common.exception.RaptureException;
import rapture.common.impl.jackson.JacksonUtil;

import com.fasterxml.jackson.core.type.TypeReference;

import org.apache.log4j.Logger;

import rapture.common.RaptureLibraryDefinition;
import rapture.common.RaptureRunnerConfig;
import rapture.common.RaptureRunnerStatus;
import rapture.common.RaptureApplicationDefinition;
import rapture.common.RaptureServerGroup;
import rapture.common.RaptureInstanceCapabilities;
import rapture.common.model.RaptureApplicationStatus;
import rapture.common.RaptureApplicationInstance;
import rapture.common.model.RaptureApplicationStatusStep;

import rapture.common.shared.runner.CreateServerGroupPayload;

import rapture.common.shared.runner.DeleteServerGroupPayload;

import rapture.common.shared.runner.GetAllServerGroupsPayload;

import rapture.common.shared.runner.GetAllApplicationDefinitionsPayload;

import rapture.common.shared.runner.GetAllLibraryDefinitionsPayload;

import rapture.common.shared.runner.GetAllApplicationInstancesPayload;

import rapture.common.shared.runner.GetServerGroupPayload;

import rapture.common.shared.runner.AddGroupInclusionPayload;

import rapture.common.shared.runner.RemoveGroupInclusionPayload;

import rapture.common.shared.runner.AddGroupExclusionPayload;

import rapture.common.shared.runner.RemoveGroupExclusionPayload;

import rapture.common.shared.runner.RemoveGroupEntryPayload;

import rapture.common.shared.runner.CreateApplicationDefinitionPayload;

import rapture.common.shared.runner.DeleteApplicationDefinitionPayload;

import rapture.common.shared.runner.UpdateApplicationVersionPayload;

import rapture.common.shared.runner.CreateLibraryDefinitionPayload;

import rapture.common.shared.runner.DeleteLibraryDefinitionPayload;

import rapture.common.shared.runner.GetLibraryDefinitionPayload;

import rapture.common.shared.runner.UpdateLibraryVersionPayload;

import rapture.common.shared.runner.AddLibraryToGroupPayload;

import rapture.common.shared.runner.RemoveLibraryFromGroupPayload;

import rapture.common.shared.runner.CreateApplicationInstancePayload;

import rapture.common.shared.runner.RunApplicationPayload;

import rapture.common.shared.runner.RunCustomApplicationPayload;

import rapture.common.shared.runner.GetApplicationStatusPayload;

import rapture.common.shared.runner.GetApplicationStatusesPayload;

import rapture.common.shared.runner.GetApplicationStatusDatesPayload;

import rapture.common.shared.runner.ArchiveApplicationStatusesPayload;

import rapture.common.shared.runner.ChangeApplicationStatusPayload;

import rapture.common.shared.runner.RecordStatusMessagesPayload;

import rapture.common.shared.runner.TerminateApplicationPayload;

import rapture.common.shared.runner.DeleteApplicationInstancePayload;

import rapture.common.shared.runner.GetApplicationInstancePayload;

import rapture.common.shared.runner.UpdateStatusPayload;

import rapture.common.shared.runner.GetApplicationsForServerGroupPayload;

import rapture.common.shared.runner.GetApplicationsForServerPayload;

import rapture.common.shared.runner.GetApplicationDefinitionPayload;

import rapture.common.shared.runner.SetRunnerConfigPayload;

import rapture.common.shared.runner.DeleteRunnerConfigPayload;

import rapture.common.shared.runner.GetRunnerConfigPayload;

import rapture.common.shared.runner.RecordRunnerStatusPayload;

import rapture.common.shared.runner.RecordInstanceCapabilitiesPayload;

import rapture.common.shared.runner.GetCapabilitiesPayload;

import rapture.common.shared.runner.GetRunnerServersPayload;

import rapture.common.shared.runner.GetRunnerStatusPayload;

import rapture.common.shared.runner.CleanRunnerStatusPayload;

import rapture.common.shared.runner.MarkForRestartPayload;


@SuppressWarnings("all")
public class HttpRunnerApi extends BaseHttpApi implements RunnerApi, ScriptRunnerApi {
        private static final Logger log = Logger.getLogger(HttpRunnerApi.class);

	public HttpRunnerApi(HttpLoginApi login) {
		super(login, "runner");
	}
		
	    private static final class CreateServerGroupTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup createServerGroup(CallingContext context, String name, String description) {
	        CreateServerGroupPayload requestObj = new CreateServerGroupPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setDescription(description);
	        return doRequest(requestObj, "CREATESERVERGROUP", new CreateServerGroupTypeReference());    }

	    
	    @Override
	    public void deleteServerGroup(CallingContext context, String name) {
	        DeleteServerGroupPayload requestObj = new DeleteServerGroupPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        doRequest(requestObj, "DELETESERVERGROUP", null);    }

	    private static final class GetAllServerGroupsTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getAllServerGroups(CallingContext context) {
	        GetAllServerGroupsPayload requestObj = new GetAllServerGroupsPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETALLSERVERGROUPS", new GetAllServerGroupsTypeReference());    }

	    private static final class GetAllApplicationDefinitionsTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getAllApplicationDefinitions(CallingContext context) {
	        GetAllApplicationDefinitionsPayload requestObj = new GetAllApplicationDefinitionsPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETALLAPPLICATIONDEFINITIONS", new GetAllApplicationDefinitionsTypeReference());    }

	    private static final class GetAllLibraryDefinitionsTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getAllLibraryDefinitions(CallingContext context) {
	        GetAllLibraryDefinitionsPayload requestObj = new GetAllLibraryDefinitionsPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETALLLIBRARYDEFINITIONS", new GetAllLibraryDefinitionsTypeReference());    }

	    private static final class GetAllApplicationInstancesTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getAllApplicationInstances(CallingContext context) {
	        GetAllApplicationInstancesPayload requestObj = new GetAllApplicationInstancesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETALLAPPLICATIONINSTANCES", new GetAllApplicationInstancesTypeReference());    }

	    private static final class GetServerGroupTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup getServerGroup(CallingContext context, String name) {
	        GetServerGroupPayload requestObj = new GetServerGroupPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        return doRequest(requestObj, "GETSERVERGROUP", new GetServerGroupTypeReference());    }

	    private static final class AddGroupInclusionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup addGroupInclusion(CallingContext context, String name, String inclusion) {
	        AddGroupInclusionPayload requestObj = new AddGroupInclusionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setInclusion(inclusion);
	        return doRequest(requestObj, "ADDGROUPINCLUSION", new AddGroupInclusionTypeReference());    }

	    private static final class RemoveGroupInclusionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup removeGroupInclusion(CallingContext context, String name, String inclusion) {
	        RemoveGroupInclusionPayload requestObj = new RemoveGroupInclusionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setInclusion(inclusion);
	        return doRequest(requestObj, "REMOVEGROUPINCLUSION", new RemoveGroupInclusionTypeReference());    }

	    private static final class AddGroupExclusionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup addGroupExclusion(CallingContext context, String name, String exclusion) {
	        AddGroupExclusionPayload requestObj = new AddGroupExclusionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setExclusion(exclusion);
	        return doRequest(requestObj, "ADDGROUPEXCLUSION", new AddGroupExclusionTypeReference());    }

	    private static final class RemoveGroupExclusionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup removeGroupExclusion(CallingContext context, String name, String exclusion) {
	        RemoveGroupExclusionPayload requestObj = new RemoveGroupExclusionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setExclusion(exclusion);
	        return doRequest(requestObj, "REMOVEGROUPEXCLUSION", new RemoveGroupExclusionTypeReference());    }

	    private static final class RemoveGroupEntryTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup removeGroupEntry(CallingContext context, String name, String entry) {
	        RemoveGroupEntryPayload requestObj = new RemoveGroupEntryPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setEntry(entry);
	        return doRequest(requestObj, "REMOVEGROUPENTRY", new RemoveGroupEntryTypeReference());    }

	    private static final class CreateApplicationDefinitionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationDefinition createApplicationDefinition(CallingContext context, String name, String ver, String description) {
	        CreateApplicationDefinitionPayload requestObj = new CreateApplicationDefinitionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setVer(ver);
	        requestObj.setDescription(description);
	        return doRequest(requestObj, "CREATEAPPLICATIONDEFINITION", new CreateApplicationDefinitionTypeReference());    }

	    
	    @Override
	    public void deleteApplicationDefinition(CallingContext context, String name) {
	        DeleteApplicationDefinitionPayload requestObj = new DeleteApplicationDefinitionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        doRequest(requestObj, "DELETEAPPLICATIONDEFINITION", null);    }

	    private static final class UpdateApplicationVersionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationDefinition updateApplicationVersion(CallingContext context, String name, String ver) {
	        UpdateApplicationVersionPayload requestObj = new UpdateApplicationVersionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setVer(ver);
	        return doRequest(requestObj, "UPDATEAPPLICATIONVERSION", new UpdateApplicationVersionTypeReference());    }

	    private static final class CreateLibraryDefinitionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureLibraryDefinition createLibraryDefinition(CallingContext context, String name, String ver, String description) {
	        CreateLibraryDefinitionPayload requestObj = new CreateLibraryDefinitionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setVer(ver);
	        requestObj.setDescription(description);
	        return doRequest(requestObj, "CREATELIBRARYDEFINITION", new CreateLibraryDefinitionTypeReference());    }

	    
	    @Override
	    public void deleteLibraryDefinition(CallingContext context, String name) {
	        DeleteLibraryDefinitionPayload requestObj = new DeleteLibraryDefinitionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        doRequest(requestObj, "DELETELIBRARYDEFINITION", null);    }

	    private static final class GetLibraryDefinitionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureLibraryDefinition getLibraryDefinition(CallingContext context, String name) {
	        GetLibraryDefinitionPayload requestObj = new GetLibraryDefinitionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        return doRequest(requestObj, "GETLIBRARYDEFINITION", new GetLibraryDefinitionTypeReference());    }

	    private static final class UpdateLibraryVersionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureLibraryDefinition updateLibraryVersion(CallingContext context, String name, String ver) {
	        UpdateLibraryVersionPayload requestObj = new UpdateLibraryVersionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setVer(ver);
	        return doRequest(requestObj, "UPDATELIBRARYVERSION", new UpdateLibraryVersionTypeReference());    }

	    private static final class AddLibraryToGroupTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup addLibraryToGroup(CallingContext context, String serverGroup, String libraryName) {
	        AddLibraryToGroupPayload requestObj = new AddLibraryToGroupPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerGroup(serverGroup);
	        requestObj.setLibraryName(libraryName);
	        return doRequest(requestObj, "ADDLIBRARYTOGROUP", new AddLibraryToGroupTypeReference());    }

	    private static final class RemoveLibraryFromGroupTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureServerGroup removeLibraryFromGroup(CallingContext context, String serverGroup, String libraryName) {
	        RemoveLibraryFromGroupPayload requestObj = new RemoveLibraryFromGroupPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerGroup(serverGroup);
	        requestObj.setLibraryName(libraryName);
	        return doRequest(requestObj, "REMOVELIBRARYFROMGROUP", new RemoveLibraryFromGroupTypeReference());    }

	    private static final class CreateApplicationInstanceTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationInstance createApplicationInstance(CallingContext context, String name, String description, String serverGroup, String appName, String timeRange, int retryCount, String parameters, String apiUser) {
	        CreateApplicationInstancePayload requestObj = new CreateApplicationInstancePayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setDescription(description);
	        requestObj.setServerGroup(serverGroup);
	        requestObj.setAppName(appName);
	        requestObj.setTimeRange(timeRange);
	        requestObj.setRetryCount(retryCount);
	        requestObj.setParameters(parameters);
	        requestObj.setApiUser(apiUser);
	        return doRequest(requestObj, "CREATEAPPLICATIONINSTANCE", new CreateApplicationInstanceTypeReference());    }

	    private static final class RunApplicationTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationStatus runApplication(CallingContext context, String appName, String queueName, Map parameterInput, Map parameterOutput) {
	        RunApplicationPayload requestObj = new RunApplicationPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setAppName(appName);
	        requestObj.setQueueName(queueName);
	        requestObj.setParameterInput(parameterInput);
	        requestObj.setParameterOutput(parameterOutput);
	        return doRequest(requestObj, "RUNAPPLICATION", new RunApplicationTypeReference());    }

	    private static final class RunCustomApplicationTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationStatus runCustomApplication(CallingContext context, String appName, String queueName, Map parameterInput, Map parameterOutput, String customApplicationPath) {
	        RunCustomApplicationPayload requestObj = new RunCustomApplicationPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setAppName(appName);
	        requestObj.setQueueName(queueName);
	        requestObj.setParameterInput(parameterInput);
	        requestObj.setParameterOutput(parameterOutput);
	        requestObj.setCustomApplicationPath(customApplicationPath);
	        return doRequest(requestObj, "RUNCUSTOMAPPLICATION", new RunCustomApplicationTypeReference());    }

	    private static final class GetApplicationStatusTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationStatus getApplicationStatus(CallingContext context, String applicationStatusURI) {
	        GetApplicationStatusPayload requestObj = new GetApplicationStatusPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setApplicationStatusURI(applicationStatusURI);
	        return doRequest(requestObj, "GETAPPLICATIONSTATUS", new GetApplicationStatusTypeReference());    }

	    private static final class GetApplicationStatusesTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getApplicationStatuses(CallingContext context, String date) {
	        GetApplicationStatusesPayload requestObj = new GetApplicationStatusesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setDate(date);
	        return doRequest(requestObj, "GETAPPLICATIONSTATUSES", new GetApplicationStatusesTypeReference());    }

	    private static final class GetApplicationStatusDatesTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getApplicationStatusDates(CallingContext context) {
	        GetApplicationStatusDatesPayload requestObj = new GetApplicationStatusDatesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETAPPLICATIONSTATUSDATES", new GetApplicationStatusDatesTypeReference());    }

	    
	    @Override
	    public void archiveApplicationStatuses(CallingContext context) {
	        ArchiveApplicationStatusesPayload requestObj = new ArchiveApplicationStatusesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        doRequest(requestObj, "ARCHIVEAPPLICATIONSTATUSES", null);    }

	    private static final class ChangeApplicationStatusTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationStatus changeApplicationStatus(CallingContext context, String applicationStatusURI, RaptureApplicationStatusStep statusCode, String message) {
	        ChangeApplicationStatusPayload requestObj = new ChangeApplicationStatusPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setApplicationStatusURI(applicationStatusURI);
	        requestObj.setStatusCode(statusCode);
	        requestObj.setMessage(message);
	        return doRequest(requestObj, "CHANGEAPPLICATIONSTATUS", new ChangeApplicationStatusTypeReference());    }

	    
	    @Override
	    public void recordStatusMessages(CallingContext context, String applicationStatusURI, List messages) {
	        RecordStatusMessagesPayload requestObj = new RecordStatusMessagesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setApplicationStatusURI(applicationStatusURI);
	        requestObj.setMessages(messages);
	        doRequest(requestObj, "RECORDSTATUSMESSAGES", null);    }

	    private static final class TerminateApplicationTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationStatus terminateApplication(CallingContext context, String applicationStatusURI, String reasonMessage) {
	        TerminateApplicationPayload requestObj = new TerminateApplicationPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setApplicationStatusURI(applicationStatusURI);
	        requestObj.setReasonMessage(reasonMessage);
	        return doRequest(requestObj, "TERMINATEAPPLICATION", new TerminateApplicationTypeReference());    }

	    
	    @Override
	    public void deleteApplicationInstance(CallingContext context, String name, String serverGroup) {
	        DeleteApplicationInstancePayload requestObj = new DeleteApplicationInstancePayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setServerGroup(serverGroup);
	        doRequest(requestObj, "DELETEAPPLICATIONINSTANCE", null);    }

	    private static final class GetApplicationInstanceTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationInstance getApplicationInstance(CallingContext context, String name, String serverGroup) {
	        GetApplicationInstancePayload requestObj = new GetApplicationInstancePayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setServerGroup(serverGroup);
	        return doRequest(requestObj, "GETAPPLICATIONINSTANCE", new GetApplicationInstanceTypeReference());    }

	    
	    @Override
	    public void updateStatus(CallingContext context, String name, String serverGroup, String myServer, String status, Boolean finished) {
	        UpdateStatusPayload requestObj = new UpdateStatusPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setServerGroup(serverGroup);
	        requestObj.setMyServer(myServer);
	        requestObj.setStatus(status);
	        requestObj.setFinished(finished);
	        doRequest(requestObj, "UPDATESTATUS", null);    }

	    private static final class GetApplicationsForServerGroupTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getApplicationsForServerGroup(CallingContext context, String serverGroup) {
	        GetApplicationsForServerGroupPayload requestObj = new GetApplicationsForServerGroupPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerGroup(serverGroup);
	        return doRequest(requestObj, "GETAPPLICATIONSFORSERVERGROUP", new GetApplicationsForServerGroupTypeReference());    }

	    private static final class GetApplicationsForServerTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getApplicationsForServer(CallingContext context, String serverName) {
	        GetApplicationsForServerPayload requestObj = new GetApplicationsForServerPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerName(serverName);
	        return doRequest(requestObj, "GETAPPLICATIONSFORSERVER", new GetApplicationsForServerTypeReference());    }

	    private static final class GetApplicationDefinitionTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureApplicationDefinition getApplicationDefinition(CallingContext context, String name) {
	        GetApplicationDefinitionPayload requestObj = new GetApplicationDefinitionPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        return doRequest(requestObj, "GETAPPLICATIONDEFINITION", new GetApplicationDefinitionTypeReference());    }

	    
	    @Override
	    public void setRunnerConfig(CallingContext context, String name, String value) {
	        SetRunnerConfigPayload requestObj = new SetRunnerConfigPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        requestObj.setValue(value);
	        doRequest(requestObj, "SETRUNNERCONFIG", null);    }

	    
	    @Override
	    public void deleteRunnerConfig(CallingContext context, String name) {
	        DeleteRunnerConfigPayload requestObj = new DeleteRunnerConfigPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setName(name);
	        doRequest(requestObj, "DELETERUNNERCONFIG", null);    }

	    private static final class GetRunnerConfigTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureRunnerConfig getRunnerConfig(CallingContext context) {
	        GetRunnerConfigPayload requestObj = new GetRunnerConfigPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETRUNNERCONFIG", new GetRunnerConfigTypeReference());    }

	    
	    @Override
	    public void recordRunnerStatus(CallingContext context, String serverName, String serverGroup, String appInstance, String appName, String status) {
	        RecordRunnerStatusPayload requestObj = new RecordRunnerStatusPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerName(serverName);
	        requestObj.setServerGroup(serverGroup);
	        requestObj.setAppInstance(appInstance);
	        requestObj.setAppName(appName);
	        requestObj.setStatus(status);
	        doRequest(requestObj, "RECORDRUNNERSTATUS", null);    }

	    
	    @Override
	    public void recordInstanceCapabilities(CallingContext context, String serverName, String instanceName, Map capabilities) {
	        RecordInstanceCapabilitiesPayload requestObj = new RecordInstanceCapabilitiesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerName(serverName);
	        requestObj.setInstanceName(instanceName);
	        requestObj.setCapabilities(capabilities);
	        doRequest(requestObj, "RECORDINSTANCECAPABILITIES", null);    }

	    private static final class GetCapabilitiesTypeReference extends TypeReference> {
	    }    
	    @Override
	    public Map getCapabilities(CallingContext context, String serverName, List instanceNames) {
	        GetCapabilitiesPayload requestObj = new GetCapabilitiesPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerName(serverName);
	        requestObj.setInstanceNames(instanceNames);
	        return doRequest(requestObj, "GETCAPABILITIES", new GetCapabilitiesTypeReference());    }

	    private static final class GetRunnerServersTypeReference extends TypeReference> {
	    }    
	    @Override
	    public List getRunnerServers(CallingContext context) {
	        GetRunnerServersPayload requestObj = new GetRunnerServersPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        return doRequest(requestObj, "GETRUNNERSERVERS", new GetRunnerServersTypeReference());    }

	    private static final class GetRunnerStatusTypeReference extends TypeReference {
	    }    
	    @Override
	    public RaptureRunnerStatus getRunnerStatus(CallingContext context, String serverName) {
	        GetRunnerStatusPayload requestObj = new GetRunnerStatusPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerName(serverName);
	        return doRequest(requestObj, "GETRUNNERSTATUS", new GetRunnerStatusTypeReference());    }

	    
	    @Override
	    public void cleanRunnerStatus(CallingContext context, int ageInMinutes) {
	        CleanRunnerStatusPayload requestObj = new CleanRunnerStatusPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setAgeInMinutes(ageInMinutes);
	        doRequest(requestObj, "CLEANRUNNERSTATUS", null);    }

	    
	    @Override
	    public void markForRestart(CallingContext context, String serverName, String name) {
	        MarkForRestartPayload requestObj = new MarkForRestartPayload();
	        requestObj.setContext(context == null ? this.getContext() : context);
	        requestObj.setServerName(serverName);
	        requestObj.setName(name);
	        doRequest(requestObj, "MARKFORRESTART", null);    }

	
	    @Override
	    public RaptureServerGroup createServerGroup(String name, String description) {
	        return createServerGroup(null,name,description);    }

	    @Override
	    public void deleteServerGroup(String name) {
	        deleteServerGroup(null,name);    }

	    @Override
	    public List getAllServerGroups() {
	        return getAllServerGroups(null);    }

	    @Override
	    public List getAllApplicationDefinitions() {
	        return getAllApplicationDefinitions(null);    }

	    @Override
	    public List getAllLibraryDefinitions() {
	        return getAllLibraryDefinitions(null);    }

	    @Override
	    public List getAllApplicationInstances() {
	        return getAllApplicationInstances(null);    }

	    @Override
	    public RaptureServerGroup getServerGroup(String name) {
	        return getServerGroup(null,name);    }

	    @Override
	    public RaptureServerGroup addGroupInclusion(String name, String inclusion) {
	        return addGroupInclusion(null,name,inclusion);    }

	    @Override
	    public RaptureServerGroup removeGroupInclusion(String name, String inclusion) {
	        return removeGroupInclusion(null,name,inclusion);    }

	    @Override
	    public RaptureServerGroup addGroupExclusion(String name, String exclusion) {
	        return addGroupExclusion(null,name,exclusion);    }

	    @Override
	    public RaptureServerGroup removeGroupExclusion(String name, String exclusion) {
	        return removeGroupExclusion(null,name,exclusion);    }

	    @Override
	    public RaptureServerGroup removeGroupEntry(String name, String entry) {
	        return removeGroupEntry(null,name,entry);    }

	    @Override
	    public RaptureApplicationDefinition createApplicationDefinition(String name, String ver, String description) {
	        return createApplicationDefinition(null,name,ver,description);    }

	    @Override
	    public void deleteApplicationDefinition(String name) {
	        deleteApplicationDefinition(null,name);    }

	    @Override
	    public RaptureApplicationDefinition updateApplicationVersion(String name, String ver) {
	        return updateApplicationVersion(null,name,ver);    }

	    @Override
	    public RaptureLibraryDefinition createLibraryDefinition(String name, String ver, String description) {
	        return createLibraryDefinition(null,name,ver,description);    }

	    @Override
	    public void deleteLibraryDefinition(String name) {
	        deleteLibraryDefinition(null,name);    }

	    @Override
	    public RaptureLibraryDefinition getLibraryDefinition(String name) {
	        return getLibraryDefinition(null,name);    }

	    @Override
	    public RaptureLibraryDefinition updateLibraryVersion(String name, String ver) {
	        return updateLibraryVersion(null,name,ver);    }

	    @Override
	    public RaptureServerGroup addLibraryToGroup(String serverGroup, String libraryName) {
	        return addLibraryToGroup(null,serverGroup,libraryName);    }

	    @Override
	    public RaptureServerGroup removeLibraryFromGroup(String serverGroup, String libraryName) {
	        return removeLibraryFromGroup(null,serverGroup,libraryName);    }

	    @Override
	    public RaptureApplicationInstance createApplicationInstance(String name, String description, String serverGroup, String appName, String timeRange, int retryCount, String parameters, String apiUser) {
	        return createApplicationInstance(null,name,description,serverGroup,appName,timeRange,retryCount,parameters,apiUser);    }

	    @Override
	    public RaptureApplicationStatus runApplication(String appName, String queueName, Map parameterInput, Map parameterOutput) {
	        return runApplication(null,appName,queueName,parameterInput,parameterOutput);    }

	    @Override
	    public RaptureApplicationStatus runCustomApplication(String appName, String queueName, Map parameterInput, Map parameterOutput, String customApplicationPath) {
	        return runCustomApplication(null,appName,queueName,parameterInput,parameterOutput,customApplicationPath);    }

	    @Override
	    public RaptureApplicationStatus getApplicationStatus(String applicationStatusURI) {
	        return getApplicationStatus(null,applicationStatusURI);    }

	    @Override
	    public List getApplicationStatuses(String date) {
	        return getApplicationStatuses(null,date);    }

	    @Override
	    public List getApplicationStatusDates() {
	        return getApplicationStatusDates(null);    }

	    @Override
	    public void archiveApplicationStatuses() {
	        archiveApplicationStatuses(null);    }

	    @Override
	    public RaptureApplicationStatus changeApplicationStatus(String applicationStatusURI, RaptureApplicationStatusStep statusCode, String message) {
	        return changeApplicationStatus(null,applicationStatusURI,statusCode,message);    }

	    @Override
	    public void recordStatusMessages(String applicationStatusURI, List messages) {
	        recordStatusMessages(null,applicationStatusURI,messages);    }

	    @Override
	    public RaptureApplicationStatus terminateApplication(String applicationStatusURI, String reasonMessage) {
	        return terminateApplication(null,applicationStatusURI,reasonMessage);    }

	    @Override
	    public void deleteApplicationInstance(String name, String serverGroup) {
	        deleteApplicationInstance(null,name,serverGroup);    }

	    @Override
	    public RaptureApplicationInstance getApplicationInstance(String name, String serverGroup) {
	        return getApplicationInstance(null,name,serverGroup);    }

	    @Override
	    public void updateStatus(String name, String serverGroup, String myServer, String status, Boolean finished) {
	        updateStatus(null,name,serverGroup,myServer,status,finished);    }

	    @Override
	    public List getApplicationsForServerGroup(String serverGroup) {
	        return getApplicationsForServerGroup(null,serverGroup);    }

	    @Override
	    public List getApplicationsForServer(String serverName) {
	        return getApplicationsForServer(null,serverName);    }

	    @Override
	    public RaptureApplicationDefinition getApplicationDefinition(String name) {
	        return getApplicationDefinition(null,name);    }

	    @Override
	    public void setRunnerConfig(String name, String value) {
	        setRunnerConfig(null,name,value);    }

	    @Override
	    public void deleteRunnerConfig(String name) {
	        deleteRunnerConfig(null,name);    }

	    @Override
	    public RaptureRunnerConfig getRunnerConfig() {
	        return getRunnerConfig(null);    }

	    @Override
	    public void recordRunnerStatus(String serverName, String serverGroup, String appInstance, String appName, String status) {
	        recordRunnerStatus(null,serverName,serverGroup,appInstance,appName,status);    }

	    @Override
	    public void recordInstanceCapabilities(String serverName, String instanceName, Map capabilities) {
	        recordInstanceCapabilities(null,serverName,instanceName,capabilities);    }

	    @Override
	    public Map getCapabilities(String serverName, List instanceNames) {
	        return getCapabilities(null,serverName,instanceNames);    }

	    @Override
	    public List getRunnerServers() {
	        return getRunnerServers(null);    }

	    @Override
	    public RaptureRunnerStatus getRunnerStatus(String serverName) {
	        return getRunnerStatus(null,serverName);    }

	    @Override
	    public void cleanRunnerStatus(int ageInMinutes) {
	        cleanRunnerStatus(null,ageInMinutes);    }

	    @Override
	    public void markForRestart(String serverName, String name) {
	        markForRestart(null,serverName,name);    }

}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy