org.ogf.graap.wsag.server.rest
Class RestWsagEngine

java.lang.Object
  extended by org.ogf.graap.wsag.server.rest.RestWsagEngine

public class RestWsagEngine
extends Object

Author:
owaeld

Field Summary
static String WSAG4J_ENGINE_CONFIG_FILE
          The name of the default configuration file for the REST remote stack.
 
Method Summary
static WsagEngine getInstance()
          Returns the WsagEngine instance used by the REST remote stack.
static void shutdown()
          Terminates the default WsagEngine instance gracefully.
static void startup()
          Creates a new WsagEngine instance and initializes the instance using the default configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSAG4J_ENGINE_CONFIG_FILE

public static final String WSAG4J_ENGINE_CONFIG_FILE
The name of the default configuration file for the REST remote stack. The configuration file must exist in the classpath.

See Also:
Constant Field Values
Method Detail

getInstance

public static WsagEngine getInstance()
Returns the WsagEngine instance used by the REST remote stack.

Returns:
the engine instance

startup

public static void startup()
                    throws EngineInstantiationException
Creates a new WsagEngine instance and initializes the instance using the default configuration file.

Throws:
EngineInstantiationException - failed to startup default engine

shutdown

public static void shutdown()
                     throws Exception
Terminates the default WsagEngine instance gracefully.

Throws:
Exception - error during shutdown procedure


Copyright © 2008-2012. All Rights Reserved.