org.jgroups.service

Class ServiceRunner


public class ServiceRunner
extends java.lang.Object

ServiceRunner is utility class that runs services in standalone mode. Each service is described with resource file containing following properties:

Class can be started from command line using:

 java org.jgroups.service.ServiceRunner -res 
 
where res_name is name of the resource describing service to run in form acceptable by java.util.ResourceBundle class.
Author:
Roman Rokytskyy (rrokytskyy@acm.org)

Field Summary

static String
CLIENT_CHANNEL_STACK
static String
CLIENT_GROUP_NAME
static String
HELP_SWITCH
static String
RESOURCE_SWITCH
static String
SERVICE_CHANNEL_STACK
static String
SERVICE_CLASS
static String
SERVICE_GROUP_NAME

Method Summary

static void
main(String[] args)
Main entry to run this class.
static void
startService(ResourceBundle res)
Method to start service.

Field Details

CLIENT_CHANNEL_STACK

public static final String CLIENT_CHANNEL_STACK

CLIENT_GROUP_NAME

public static final String CLIENT_GROUP_NAME

HELP_SWITCH

public static final String HELP_SWITCH

RESOURCE_SWITCH

public static final String RESOURCE_SWITCH

SERVICE_CHANNEL_STACK

public static final String SERVICE_CHANNEL_STACK

SERVICE_CLASS

public static final String SERVICE_CLASS

SERVICE_GROUP_NAME

public static final String SERVICE_GROUP_NAME

Method Details

main

public static void main(String[] args)
            throws Exception
Main entry to run this class.

startService

public static void startService(ResourceBundle res)
            throws Exception
Method to start service. This method extracts parameters from specified resource, creates instance of service and starts it.
Parameters:
res - resource bundle containing information about resource.

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.