Skip to content

Commit

Permalink
Fixes ABI check failure.
Browse files Browse the repository at this point in the history
Restores FunctionServiceImpl - cause unexplained ABI change.
  • Loading branch information
jake-at-work committed Jan 8, 2021
1 parent d906f8d commit 892ffa7
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
39 changes: 39 additions & 0 deletions cppcache/src/FunctionServiceImpl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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.
*/

#include "FunctionServiceImpl.hpp"

#include <geode/PoolManager.hpp>

#include "ExecutionImpl.hpp"

namespace apache {
namespace geode {
namespace client {

FunctionServiceImpl::FunctionServiceImpl(AuthenticatedView* authenticatedView) {
m_authenticatedView = authenticatedView;
}

std::shared_ptr<FunctionService> FunctionServiceImpl::getFunctionService(
AuthenticatedView* authenticatedView) {
return std::make_shared<FunctionServiceImpl>(authenticatedView);
}

} // namespace client
} // namespace geode
} // namespace apache
57 changes: 57 additions & 0 deletions cppcache/src/FunctionServiceImpl.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* 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.
*/

#pragma once

#ifndef GEODE_FUNCTIONSERVICEIMPL_H_
#define GEODE_FUNCTIONSERVICEIMPL_H_

#include <geode/AuthenticatedView.hpp>
#include <geode/FunctionService.hpp>
#include <geode/internal/geode_globals.hpp>

namespace apache {
namespace geode {
namespace client {

/**
* @class FunctionService FunctionService.hpp
* entry point for function execution
* @see Execution
*/
class FunctionServiceImpl : public FunctionService {
public:
explicit FunctionServiceImpl(AuthenticatedView* authenticatedView);

~FunctionServiceImpl() noexcept override = default;

private:
explicit FunctionServiceImpl(const FunctionService&);
FunctionServiceImpl& operator=(const FunctionService&);

static std::shared_ptr<FunctionService> getFunctionService(
AuthenticatedView* authenticatedView);

AuthenticatedView* m_authenticatedView;

friend class AuthenticatedView;
};
} // namespace client
} // namespace geode
} // namespace apache

#endif // GEODE_FUNCTIONSERVICEIMPL_H_

0 comments on commit 892ffa7

Please sign in to comment.