TimedThreadsStorage
Date: 2014-01-09

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gcube.vremanagement.resourcebroker.impl.support.threads
Class TimedThreadsStorage

    java.lang.Object
      org.gcube.vremanagement.resourcebroker.impl.support.threads.TimedThreadsStorage

    public class TimedThreadsStorage

extends java.lang.Object

All the timed threads are registered here in order to invoke their end at shutdown of the BrokerService.

Author:
  Daniele Strollo (ISTI-CNR)

Constructor Summary
`TimedThreadsStorage()`

Method Summary
`static void` | `registerThread(TimedThread thread)` Registers a new timed thread.
`static void` | `registerThread(TimedThread thread, boolean toStart)` Registers a new timed thread.
`static void` | `stopAll()` For all the timed threads registered orders to stop.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TimedThreadsStorage

    public TimedThreadsStorage()

Method Detail

### stopAll

    public static void stopAll()

  For all the timed threads registered orders to stop.

### registerThread

    public static void registerThread(TimedThread thread)

  Registers a new timed thread.

  Parameters:
    `thread` - the thread to register

### registerThread

    public static void registerThread(TimedThread thread,
                                      boolean toStart)

  Registers a new timed thread.

  Parameters:
    `thread` - the thread to register
    `toStart` - if the thread must be implicitly started here

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD