X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8f4c00936fdabbd005cbf15ca132ceb248f72dcd..ad0539d141f7dfee1706fea560d6122cb3a92f13:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index 7c48221eb8..189031a69e 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -69,6 +69,8 @@ public: simgrid::xbt::string const& name() const { return name_; } const char* cname() { return name_.c_str(); } + void actorList(std::vector * whereto); + /** Turns that host on if it was previously off * * All actors on that host which were marked autorestart will be restarted automatically. @@ -87,14 +89,13 @@ public: xbt_dict_t properties(); const char*property(const char*key); void setProperty(const char*key, const char *value); - xbt_swag_t processes(); - double getPstateSpeedCurrent(); + void processes(std::vector* list); double getPstateSpeed(int pstate_index); int pstatesCount() const; void setPstate(int pstate_index); int pstate(); xbt_dict_t mountedStoragesAsDict(); // HACK - std::vector attachedStorages(); + void attachedStorages(std::vector * storages); /** Get an associative list [mount point]->[Storage] of all local mount points. * @@ -135,37 +136,8 @@ extern int USER_HOST_LEVEL; #endif /* SIMGRID_S4U_HOST_HPP */ #if 0 -/* Bindings to the MSG hosts */ - -/* Copyright (c) 2006-2014. The SimGrid Team. - * All rights reserved. */ - -/* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ - -package org.simgrid.msg; public class Host { - /** - * This static method returns all of the hosts of the installed platform. - * - * @return An array containing all the hosts installed. - * - */ - public native static Host[] all(); - - /** - * This static method sets a mailbox to receive in asynchronous mode. - * - * All messages sent to this mailbox will be transferred to - * the receiver without waiting for the receive call. - * The receive call will still be necessary to use the received data. - * If there is a need to receive some messages asynchronously, and some not, - * two different mailboxes should be used. - * - * @param mailboxName The name of the mailbox - */ - public static native void setAsyncMailbox(String mailboxName); /** * This method returns the number of tasks currently running on a host. @@ -176,11 +148,5 @@ public class Host { public native int getLoad(); - /** This methods returns the list of storages attached to an host - * @return An array containing all storages (name) attached to the host - */ - public native String[] getAttachedStorage(); - - } #endif