com.hazelcast.spi
Interface ManagedService

All Known Subinterfaces:
ICacheService
All Known Implementing Classes:
AbstractCacheService, AtomicLongService, AtomicReferenceService, CacheService, ClientEngineImpl, ClusterServiceImpl, CollectionService, CountDownLatchService, DistributedExecutorService, IdGeneratorService, InternalPartitionServiceImpl, ListService, LockServiceImpl, MapReduceService, MapService, MultiMapService, QueueService, ReplicatedMapService, SemaphoreService, SetService, TopicService, TransactionManagerServiceImpl

public interface ManagedService

A interface that can be implemented by a SPI Service to receive lifecycle calls:

  1. initialization
  2. shutdown
  3. reset

Author:
mdogan 7/23/12

Method Summary
 void init(NodeEngine nodeEngine, Properties properties)
          Initializes this ManagedService
 void reset()
          reset this ManagedService back to initial state.
 void shutdown(boolean terminate)
          Shuts down this ManagedService.
 

Method Detail

init

void init(NodeEngine nodeEngine,
          Properties properties)
Initializes this ManagedService

Parameters:
nodeEngine - the NodeEngine this ManagedService belongs to.
properties - the Properties. Can be used to pass settings to the service.

reset

void reset()
reset this ManagedService back to initial state. todo: what is the purpose of reset


shutdown

void shutdown(boolean terminate)
Shuts down this ManagedService. todo: what is the purpose of the terminate variable.

Parameters:
terminate -


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.