|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsystemExplorer.SystemExplorer
public class SystemExplorer
This class is a command-line application that allows the user to
exercise GemFire's admin API.
| Constructor Summary | |
|---|---|
SystemExplorer()
|
|
| Method Summary | |
|---|---|
(package private) void |
cache(String command)
Selects the member's SystemMemberCache. |
(package private) void |
cacheserver(String command)
Selects the indicated CacheServer entity if it exists. |
(package private) void |
createRootRegion(String command)
Creates the named root Region in the current cache. |
(package private) void |
createSubRegion(String command)
Creates the named sub Region of the current region. |
(package private) void |
defineLocator(String command)
Defines a DistributionLocator so this example can
manipulate it. |
(package private) CacheServer |
findCacheServer(String name)
Finds the named CacheServer under the current context. |
(package private) DistributionLocator |
findLocator(String id)
Finds the named DistributionLocator under the current context. |
(package private) SystemMember |
findMember(String name)
Finds the named SystemMember under the current context. |
(package private) StatisticResource |
findStatisticResource(String name)
Finds the named StatisticResource under the current context. |
(package private) SystemMemberRegion |
findSystemMemberRegion(String name)
Finds the named SystemMemberRegion under the current context. |
(package private) void |
go()
Prompts the user for input and executes the command accordingly. |
(package private) void |
initialize(String propsFileName)
Initializes the DistributedSystem for this example program. |
(package private) void |
list(String command)
Lists the details for the currently selected admin entity. |
(package private) void |
listCacheServer()
Lists the details for a CacheServer. |
(package private) void |
listDistributedSystem()
Lists the details for the DistributedSystem. |
(package private) void |
listDistributionLocator()
Lists the details for a DistributionLocator. |
(package private) void |
listStatisticResource()
Lists the details for a StatisticResource. |
(package private) void |
listSystemMember()
Lists the details for a SystemMember. |
(package private) void |
listSystemMemberCache()
Lists the details for a SystemMemberCache. |
(package private) void |
listSystemMemberRegion()
Lists the details for a SystemMemberRegion. |
(package private) void |
locator(String command)
Selects the named DistributionLocator entity if it exists. |
static void |
main(String[] args)
Parses the command line and runs the SystemExplorer
example. |
(package private) void |
member(String command)
Selects the named SystemMember entity if it exists. |
(package private) void |
region(String command)
Selects the named SystemMemberRegion entity if it exists. |
(package private) void |
showHelp()
Prints information on how this program should be used. |
(package private) void |
showPrompt()
Shows the user prompt from the currently selected entity. |
(package private) void |
start(String command)
Starts the currently selected administrative entity. |
(package private) void |
stat(String command)
Selects the named StatisticResource entity if it exists. |
(package private) void |
stop(String command)
Stops the currently selected administrative entity. |
(package private) void |
system(String command)
Selects the DistributedSystem entity if it exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemExplorer()
| Method Detail |
|---|
void showHelp()
void initialize(String propsFileName)
throws Exception
DistributedSystem for this example program.
Exception
public static void main(String[] args)
throws Exception
SystemExplorer
example.
Exceptionvoid go() throws IOException
IOExceptionvoid showPrompt()
void list(String command)
throws AdminException
AdminException
void defineLocator(String command)
throws AdminException
DistributionLocator so this example can
manipulate it.
AdminException
void start(String command)
throws AdminException
AdminException
void stop(String command)
throws AdminException
AdminException
void system(String command)
throws AdminException
DistributedSystem entity if it exists.
AdminException
void member(String command)
throws AdminException
SystemMember entity if it exists.
AdminException
void cacheserver(String command)
throws AdminException
CacheServer entity if it exists.
AdminException
void locator(String command)
throws AdminException
DistributionLocator entity if it exists.
AdminException
void stat(String command)
throws AdminException
StatisticResource entity if it exists.
AdminException
void cache(String command)
throws AdminException
AdminException
void createRootRegion(String command)
throws AdminException
Region in the current cache.
AdminException
void createSubRegion(String command)
throws AdminException
Region of the current region.
AdminException
void region(String command)
throws AdminException
SystemMemberRegion entity if it exists.
AdminExceptionvoid listDistributedSystem()
DistributedSystem.
void listDistributionLocator()
DistributionLocator.
void listCacheServer()
CacheServer.
void listSystemMember()
SystemMember.
void listSystemMemberCache()
SystemMemberCache.
void listSystemMemberRegion()
SystemMemberRegion.
void listStatisticResource()
StatisticResource.
SystemMemberRegion findSystemMemberRegion(String name)
throws AdminException
SystemMemberRegion under the current context.
AdminException
StatisticResource findStatisticResource(String name)
throws AdminException
StatisticResource under the current context.
AdminException
SystemMember findMember(String name)
throws AdminException
SystemMember under the current context.
AdminException
CacheServer findCacheServer(String name)
throws AdminException
CacheServer under the current context.
AdminException
DistributionLocator findLocator(String id)
throws AdminException
DistributionLocator under the current context.
AdminException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||