public abstract class Blackboard extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
counterNames |
static int |
GemFire |
static int |
RMI |
| Constructor and Description |
|---|
Blackboard() |
Blackboard(String name,
int type,
Class cls)
Creates an empty blackboard with the specified name and transport type
("RMI" or "GemFire").
|
Blackboard(String name,
String type,
Class cls)
Creates an empty blackboard with the specified name and transport type
("RMI" or "GemFire").
|
| Modifier and Type | Method and Description |
|---|---|
SharedCounters |
createSharedCounters(String name,
String type,
String[] cnames,
long[] cvals)
Creates a fixed number of shared counters and stores them in a location
appropriate to the blackboard's transport type (rmiregistry for RMI and
namespace for GemFire).
|
SharedLock |
createSharedLock(String name,
String type)
Creates the shared lock and stores it in a location appropriate
to the blackboard's transport type (rmiregistry for RMI).
|
SharedMap |
createSharedMap(String name,
String type)
Creates an empty shared map and stores it in a location appropriate
to the blackboard's transport type (rmiregistry for RMI and namespace
for GemFire).
|
String[] |
getCounterNames()
Returns an array of shared counter names for this blackboard.
|
int |
getSharedCounter(String sharedCounterName)
Returns the index of the sharedCounter for the given shared counter name.
|
SharedCounters |
getSharedCounters()
Gets the shared counters associated with this blackboard.
|
SharedLock |
getSharedLock()
Gets the shared lock associated with this blackboard.
|
SharedMap |
getSharedMap()
Gets the shared map associated with this blackboard.
|
void |
print()
Prints the contents of the blackboard.
|
void |
printSharedCounters()
Prints the contents of the shared counters using the "info" log level.
|
void |
printSharedMap()
Prints the contents of the shared map.
|
public static final int RMI
public static final int GemFire
protected String[] counterNames
public Blackboard()
public Blackboard(String name, String type, Class cls)
name - the name of the blackboard.type - the transport type of the blackboard.cls - The class from which counter information is extractedIllegalArgumentException - if the type is invalid.public Blackboard(String name, int type, Class cls)
name - the name of the blackboard.type - the transport type of the blackboard.cls - The class from which counter information is extractedIllegalArgumentException - if the type is invalid.public SharedCounters createSharedCounters(String name, String type, String[] cnames, long[] cvals)
name - the blackboard name.type - the transport type.cnames - The names of the shared counterscvals - The initial value of the shared counterspublic SharedCounters getSharedCounters()
public int getSharedCounter(String sharedCounterName)
sharedCounterName - - the name of the shared counter.public void printSharedCounters()
public SharedMap createSharedMap(String name, String type)
name - the blackboard name.type - the transport type.public void print()
public SharedMap getSharedMap()
public void printSharedMap()
public String[] getCounterNames()
public SharedLock createSharedLock(String name, String type)
name - the blackboard name.type - the transport type.public SharedLock getSharedLock()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.