Apache Mesos
mesos_executor_driver_impl.hpp
Go to the documentation of this file.
1 // Licensed to the Apache Software Foundation (ASF) under one
2 // or more contributor license agreements. See the NOTICE file
3 // distributed with this work for additional information
4 // regarding copyright ownership. The ASF licenses this file
5 // to you under the Apache License, Version 2.0 (the
6 // "License"); you may not use this file except in compliance
7 // with the License. You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 
17 #ifndef MESOS_EXECUTOR_DRIVER_IMPL_HPP
18 #define MESOS_EXECUTOR_DRIVER_IMPL_HPP
19 
20 #include <mesos/executor.hpp>
21 
22 
23 namespace mesos { namespace python {
24 
25 class ProxyExecutor;
26 
31  PyObject_HEAD
32  /* Type-specific fields go here. */
35  PyObject* pythonExecutor;
36 };
37 
41 extern PyTypeObject MesosExecutorDriverImplType;
42 
46 extern PyMethodDef MesosExecutorDriverImpl_methods[];
47 
52 PyObject* MesosExecutorDriverImpl_new(PyTypeObject *type,
53  PyObject *args,
54  PyObject *kwds);
55 
60  PyObject *args,
61  PyObject *kwds);
62 
67 
73  visitproc visit,
74  void* arg);
80 
81 // MesosExecutorDriverImpl methods.
83 
85 
87 
89 
91 
94  PyObject* args);
95 
98  PyObject* args);
99 
100 } // namespace python {
101 } // namespace mesos {
102 
103 #endif /* MESOS_EXECUTOR_DRIVER_IMPL_HPP */
void MesosExecutorDriverImpl_dealloc(MesosExecutorDriverImpl *self)
Free a MesosExecutorDriverImpl.
int MesosExecutorDriverImpl_init(MesosExecutorDriverImpl *self, PyObject *args, PyObject *kwds)
Initialize a MesosExecutorDriverImpl with constructor arguments.
PyObject * MesosExecutorDriverImpl_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
Create, but don&#39;t initialize, a new MesosExecutorDriverImpl (called by Python before init method)...
Proxy Executor implementation that will call into Python.
Definition: proxy_executor.hpp:37
Definition: executor.hpp:212
PyObject * pythonExecutor
Definition: mesos_executor_driver_impl.hpp:35
PyMethodDef MesosExecutorDriverImpl_methods[]
List of Python methods in MesosExecutorDriverImpl.
PyObject * MesosExecutorDriverImpl_sendFrameworkMessage(MesosExecutorDriverImpl *self, PyObject *args)
Definition: agent.hpp:25
PyObject * MesosExecutorDriverImpl_join(MesosExecutorDriverImpl *self)
int MesosExecutorDriverImpl_clear(MesosExecutorDriverImpl *self)
Clear fields of a MesosExecutorDriverImpl that can participate in GC cycles.
int MesosExecutorDriverImpl_traverse(MesosExecutorDriverImpl *self, visitproc visit, void *arg)
Traverse fields of a MesosExecutorDriverImpl on a cyclic GC search.
Python object structure for MesosExecutorDriverImpl objects.
Definition: mesos_executor_driver_impl.hpp:30
PyObject_HEAD MesosExecutorDriver * driver
Definition: mesos_executor_driver_impl.hpp:33
PyObject * MesosExecutorDriverImpl_sendStatusUpdate(MesosExecutorDriverImpl *self, PyObject *args)
Try< uint32_t > type(const std::string &path)
PyObject * MesosExecutorDriverImpl_run(MesosExecutorDriverImpl *self)
PyObject * MesosExecutorDriverImpl_abort(MesosExecutorDriverImpl *self)
PyTypeObject MesosExecutorDriverImplType
Python type object for MesosExecutorDriverImpl.
ProxyExecutor * proxyExecutor
Definition: mesos_executor_driver_impl.hpp:34
PyObject * MesosExecutorDriverImpl_stop(MesosExecutorDriverImpl *self)
PyObject * MesosExecutorDriverImpl_start(MesosExecutorDriverImpl *self)