vFabric GemFire Service Launcher – GemfireSvcLauncher

VMware vFabricTMGemFire® is a data management platform that provides real-time, consistent access to data throughout widely distributed cloud architectures. It is available as a standalone product and as a component of vFabric Suite. Here is the link for more details on the product. VMware vFabricTMGemFire®
Here is how you start GemFire® server.

cacheserver start [-J<vmarg>]* [<attName>=<attValue>]* [-dir=<workingdir>] [-classpath=<classpath>] [-disable-default-server] [-rebalance] [-server-port=<server-port>] [-server-bind-address= <server-bind-address>]

If you want to start GemFire® as a Windows Service. I have created a Command line utility for the same. Download from here GemfireSvcLauncher

How to use GemfireSvcLauncher
This is nothing different from the way you launch cacheserver
Assume that you want to pass following parameter to JVM -J-Xmx1024m -J-Xms128m and your cache-xml-file file is at location E:\XMLs and E:\workingdir is your Cacheserver Working directory. For this configuration following option will create required Windows GemFire® service.

GemfireSvcLauncher.exe --install --type cacheserver --name BasicOperation --params -J-Xmx1024m -J-Xms128m cache-xml-file=E:\XMLs\cacheserver.xml -dir=E:\workingdir mcast-port=0  log-level=config

This command will create a Windows service with name BasicOperation as shown below

Service_Image

How to start the service
You can use Windows Service Control Manager to start the service or use following commands from command line to start the service.

sc start BasicOperation

or

net start BasicOperation

How to stop the service
You can use Windows Service Control Manager to stop the service or use following commands from command line to stop the service.

sc stop BasicOperation

or

net stop BasicOperation

How to delete the service

sc delete BasicOperation

Where the logs are created related to service
It will be your working directory where log file with name GemfireSvcLauncher.log will be created.

If you want to know what is happening more with this utility development follow GemfireSvcLauncher on GitHub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s