#include <RockManager_i.h>
List of all members.
Public Member Functions |
| RockManager_i (CORBA::ORB_var orb) |
| creates RockManager_i object
|
virtual | ~RockManager_i () |
| delete implementation object
|
virtual CORBA::Short | getGracePeriod () |
| returns current grace period in seconds
|
virtual void | setGracePeriod (CORBA::Short sec) |
| sets grace period in seconds
|
virtual void | add (rock::dRock_ptr dpv, CORBA::Long pid, const common::ClientData &cd) |
| registers new rock with manager object
|
virtual CORBA::Short | getNrock () |
| returns number of active rock instances
|
virtual
rock::RockManager::StatSeq * | getStatus () |
| returns sequence of RockStatus objects
|
virtual double | getLoad (CORBA::Short p) |
virtual CORBA::Long | getFreeMemory () |
| returns free memory available in bytes
|
virtual CORBA::Long | getAllocatedMemory () |
| returns memory used in CORBA processes
|
virtual void | update () |
| examine all spawned rock and prune those that are obsolete
|
virtual void | remove (CORBA::Long i) |
virtual void | apoptosize (CORBA::Long i) |
Public Attributes |
int | verbose |
| prints detailed progress to STDOUT if true
|
Private Member Functions |
RockEntry * | getEntry (CORBA::Long i) |
Private Attributes |
CORBA::ORB_var | orb |
| Object Resource Broker pointer.
|
int | gracePeriod |
| number of seconds to let unused object live
|
deque< RockEntry > | rocklist |
| STL deque holding activated object id's.
|
Static Private Attributes |
static int | identifier |
| number of rock instances managed (active + inactive)
|
Detailed Description
Manager object for monitoring and cleaning up dRock CORBA objects
- Id:
- RockManager_i.h,v 1.7 2007/09/12 16:52:57 kress Exp
- Author:
- Mark Ghiorso
- Revision:
- 1.7
Definition at line 26 of file RockManager_i.h.
Member Function Documentation
virtual void RockManager_i::apoptosize |
( |
CORBA::Long |
i |
) |
[virtual] |
induce recalcitrant or stuck dRock to self-destruct
- Parameters:
-
| i | unique id of dRock to be destroyed |
RockEntry* RockManager_i::getEntry |
( |
CORBA::Long |
i |
) |
[private] |
utility method to get entry pointer from unique identifier.
- Parameters:
-
virtual double RockManager_i::getLoad |
( |
CORBA::Short |
p |
) |
[virtual] |
returns current processor load in percent.
- Parameters:
-
| p | processor number. -1 returns average. |
virtual void RockManager_i::remove |
( |
CORBA::Long |
i |
) |
[virtual] |
induce dRock to self-destruct
- Parameters:
-
| i | identifier of dRock to be destroyed |
The documentation for this class was generated from the following file: