Apache Mesos
mesos_scheduler_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_SCHEDULER_DRIVER_IMPL_HPP
18 #define MESOS_SCHEDULER_DRIVER_IMPL_HPP
19 
20 #include <mesos/scheduler.hpp>
21 
22 
23 namespace mesos { namespace python {
24 
25 class ProxyScheduler;
26 
31  PyObject_HEAD
32  /* Type-specific fields go here. */
35  PyObject* pythonScheduler;
36 };
37 
41 extern PyTypeObject MesosSchedulerDriverImplType;
42 
46 extern PyMethodDef MesosSchedulerDriverImpl_methods[];
47 
52 PyObject* MesosSchedulerDriverImpl_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 // MesosSchedulerDriverImpl methods.
83 
86  PyObject* args);
87 
89 
91 
93 
96  PyObject* args);
97 
100  PyObject* args);
101 
104  PyObject* args);
105 
108  PyObject* args);
109 
112  PyObject* args);
113 
116  PyObject* pyRoles);
117 
120  PyObject* pyRoles);
121 
124  PyObject* args);
125 
128  PyObject* args);
129 
132  PyObject* args);
133 
136  PyObject* args);
137 
138 } // namespace python {
139 } // namespace mesos {
140 
141 #endif /* MESOS_SCHEDULER_DRIVER_IMPL_HPP */
PyObject * MesosSchedulerDriverImpl_sendFrameworkMessage(MesosSchedulerDriverImpl *self, PyObject *args)
int MesosSchedulerDriverImpl_traverse(MesosSchedulerDriverImpl *self, visitproc visit, void *arg)
Traverse fields of a MesosSchedulerDriverImpl on a cyclic GC search.
PyObject * MesosSchedulerDriverImpl_updateFramework(MesosSchedulerDriverImpl *self, PyObject *args)
PyObject * MesosSchedulerDriverImpl_launchTasks(MesosSchedulerDriverImpl *self, PyObject *args)
PyObject * MesosSchedulerDriverImpl_abort(MesosSchedulerDriverImpl *self)
PyObject * MesosSchedulerDriverImpl_killTask(MesosSchedulerDriverImpl *self, PyObject *args)
PyObject * MesosSchedulerDriverImpl_requestResources(MesosSchedulerDriverImpl *self, PyObject *args)
PyObject * MesosSchedulerDriverImpl_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
Create, but don&#39;t initialize, a new MesosSchedulerDriverImpl (called by Python before init method)...
Definition: scheduler.hpp:399
void MesosSchedulerDriverImpl_dealloc(MesosSchedulerDriverImpl *self)
Free a MesosSchedulerDriverImpl.
PyObject_HEAD MesosSchedulerDriver * driver
Definition: mesos_scheduler_driver_impl.hpp:33
PyObject * MesosSchedulerDriverImpl_reconcileTasks(MesosSchedulerDriverImpl *self, PyObject *args)
ProxyScheduler * proxyScheduler
Definition: mesos_scheduler_driver_impl.hpp:34
Python object structure for MesosSchedulerDriverImpl objects.
Definition: mesos_scheduler_driver_impl.hpp:30
int MesosSchedulerDriverImpl_init(MesosSchedulerDriverImpl *self, PyObject *args, PyObject *kwds)
Initialize a MesosSchedulerDriverImpl with constructor arguments.
Definition: agent.hpp:25
PyObject * MesosSchedulerDriverImpl_declineOffer(MesosSchedulerDriverImpl *self, PyObject *args)
PyObject * MesosSchedulerDriverImpl_stop(MesosSchedulerDriverImpl *self, PyObject *args)
Proxy Scheduler implementation that will call into Python.
Definition: proxy_scheduler.hpp:37
PyTypeObject MesosSchedulerDriverImplType
Python type object for MesosSchedulerDriverImpl.
Try< uint32_t > type(const std::string &path)
PyObject * pythonScheduler
Definition: mesos_scheduler_driver_impl.hpp:35
PyObject * MesosSchedulerDriverImpl_run(MesosSchedulerDriverImpl *self)
PyObject * MesosSchedulerDriverImpl_suppressOffers(MesosSchedulerDriverImpl *self, PyObject *pyRoles)
int MesosSchedulerDriverImpl_clear(MesosSchedulerDriverImpl *self)
Clear fields of a MesosSchedulerDriverImpl that can participate in GC cycles.
PyObject * MesosSchedulerDriverImpl_acknowledgeStatusUpdate(MesosSchedulerDriverImpl *self, PyObject *args)
PyObject * MesosSchedulerDriverImpl_start(MesosSchedulerDriverImpl *self)
PyObject * MesosSchedulerDriverImpl_reviveOffers(MesosSchedulerDriverImpl *self, PyObject *pyRoles)
PyObject * MesosSchedulerDriverImpl_join(MesosSchedulerDriverImpl *self)
PyObject * MesosSchedulerDriverImpl_acceptOffers(MesosSchedulerDriverImpl *self, PyObject *args)
PyMethodDef MesosSchedulerDriverImpl_methods[]
List of Python methods in MesosSchedulerDriverImpl.