com.oracle.coherence.patterns.command.internal
Class CommandExecutorManager

java.lang.Object
  extended by com.oracle.coherence.patterns.command.internal.CommandExecutorManager

public final class CommandExecutorManager
extends Object

An CommandExecutorManager is responsible for managing and scheduling the current CommandExecutors for a Coherence Cluster Member.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver

Constructor Summary
CommandExecutorManager()
           
 
Method Summary
static CommandExecutor ensureCommandExecutor(Identifier contextIdentifier, com.tangosol.net.BackingMapManagerContext backingMapManagerContext)
          Returns the CommandExecutor for the Context identified by the provided Identifier.
static CommandExecutor getCommandExecutor(Identifier contextIdentifier)
          Returns the CommandExecutor for the Context identified by the provided Identifier.
static CommandExecutor removeCommandExecutor(Identifier contextIdentifier)
          Removes the CommandExecutor for the Context with the specified Identifier.
static void schedule(Runnable runnable, long delay, TimeUnit timeUnit)
          Schedules the provided Runnable to be executed at a specified time in the future.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandExecutorManager

public CommandExecutorManager()
Method Detail

ensureCommandExecutor

public static CommandExecutor ensureCommandExecutor(Identifier contextIdentifier,
                                                    com.tangosol.net.BackingMapManagerContext backingMapManagerContext)
Returns the CommandExecutor for the Context identified by the provided Identifier. If a CommandExecutor does not yet exist, one is created and associated with the specified BackingMapManagerContext.

Parameters:
contextIdentifier - The Identifier of the Context for which we are requesting a CommandExecutor.
backingMapManagerContext - The BackingMapManagerContext to which the CommandExecutor is associated
Returns:
CommandExecutor

getCommandExecutor

public static CommandExecutor getCommandExecutor(Identifier contextIdentifier)
Returns the CommandExecutor for the Context identified by the provided Identifier.

Parameters:
contextIdentifier - The Identifier of the Context for which we are requesting a CommandExecutor.
Returns:
null if no such CommandExecutor exists with the specified Identifier.

removeCommandExecutor

public static CommandExecutor removeCommandExecutor(Identifier contextIdentifier)
Removes the CommandExecutor for the Context with the specified Identifier.

Parameters:
contextIdentifier -

schedule

public static void schedule(Runnable runnable,
                            long delay,
                            TimeUnit timeUnit)
Schedules the provided Runnable to be executed at a specified time in the future.

Parameters:
runnable - The Runnable to execute
delay - The minimum delay from now until the execution should commence
timeUnit - The TimeUnit for the specified delay


Copyright © 2016. All Rights Reserved.