org.jgroups.service
Class ServiceRunner

java.lang.Object
  extended byorg.jgroups.service.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 ResourceBundle class.

Author:
Roman Rokytskyy (rrokytskyy@acm.org)

Field Summary
static java.lang.String CLIENT_CHANNEL_STACK
           
static java.lang.String CLIENT_GROUP_NAME
           
static java.lang.String HELP_SWITCH
           
static java.lang.String RESOURCE_SWITCH
           
static java.lang.String SERVICE_CHANNEL_STACK
           
static java.lang.String SERVICE_CLASS
           
static java.lang.String SERVICE_GROUP_NAME
           
 
Constructor Summary
ServiceRunner()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main entry to run this class.
static void startService(java.util.ResourceBundle res)
          Method to start service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_CLASS

public static final java.lang.String SERVICE_CLASS
See Also:
Constant Field Values

SERVICE_CHANNEL_STACK

public static final java.lang.String SERVICE_CHANNEL_STACK
See Also:
Constant Field Values

SERVICE_GROUP_NAME

public static final java.lang.String SERVICE_GROUP_NAME
See Also:
Constant Field Values

CLIENT_CHANNEL_STACK

public static final java.lang.String CLIENT_CHANNEL_STACK
See Also:
Constant Field Values

CLIENT_GROUP_NAME

public static final java.lang.String CLIENT_GROUP_NAME
See Also:
Constant Field Values

HELP_SWITCH

public static final java.lang.String HELP_SWITCH
See Also:
Constant Field Values

RESOURCE_SWITCH

public static final java.lang.String RESOURCE_SWITCH
See Also:
Constant Field Values
Constructor Detail

ServiceRunner

public ServiceRunner()
Method Detail

startService

public static void startService(java.util.ResourceBundle res)
                         throws java.lang.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.
Throws:
java.lang.Exception

main

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

Throws:
java.lang.Exception


Copyright ? 2001,2002 www.jgroups.com . All Rights Reserved.