org.terracotta.toolkit.internal
Interface ToolkitInternal

All Superinterfaces:
org.terracotta.toolkit.Toolkit

public interface ToolkitInternal
extends org.terracotta.toolkit.Toolkit


Method Summary
 String getClientUUID()
          Return the uuid of this client used in mbean names
<T extends org.terracotta.toolkit.ToolkitFeature>
T
getFeature(ToolkitFeatureTypeInternal<T> type)
          Returns the ToolkitFeature implementation identified by type associated with the Toolkit.
 org.terracotta.toolkit.concurrent.locks.ToolkitLock getLock(String name, ToolkitLockTypeInternal lockType)
          Get a lock with specified internal lock type
 ToolkitLogger getLogger(String name)
          Returns a new ToolkitLogger for the given name
 ToolkitProperties getProperties()
          Return properties of this toolkit
 void registerBeforeShutdownHook(Runnable hook)
          Registers a Runnable that will be executed before the Toolkit shuts down
 void waitUntilAllTransactionsComplete()
          Waits until all transactions are complete
 
Methods inherited from interface org.terracotta.toolkit.Toolkit
fireOperatorEvent, getAtomicLong, getBarrier, getBlockingQueue, getBlockingQueue, getCache, getCache, getClusterInfo, getFeature, getList, getLock, getMap, getNotifier, getReadWriteLock, getSet, getSortedMap, getSortedSet, getStore, getStore, shutdown
 

Method Detail

getLock

org.terracotta.toolkit.concurrent.locks.ToolkitLock getLock(String name,
                                                            ToolkitLockTypeInternal lockType)
Get a lock with specified internal lock type


registerBeforeShutdownHook

void registerBeforeShutdownHook(Runnable hook)
Registers a Runnable that will be executed before the Toolkit shuts down


waitUntilAllTransactionsComplete

void waitUntilAllTransactionsComplete()
Waits until all transactions are complete


getLogger

ToolkitLogger getLogger(String name)
Returns a new ToolkitLogger for the given name


getClientUUID

String getClientUUID()
Return the uuid of this client used in mbean names


getProperties

ToolkitProperties getProperties()
Return properties of this toolkit


getFeature

<T extends org.terracotta.toolkit.ToolkitFeature> T getFeature(ToolkitFeatureTypeInternal<T> type)
Returns the ToolkitFeature implementation identified by type associated with the Toolkit.

Parameters:
type - the type identifying the feature.
Returns:
returns the feature identified by type.
See Also:
ToolkitFeatureTypeInternal


Copyright © 2013 Terracotta, Inc.. All Rights Reserved.