org.gcube.common.ghn.client
Class ClientContainer

java.lang.Object
  extended by org.gcube.common.ghn.client.ClientContainer

public abstract class ClientContainer
extends Object

A container for clients of gCube Hosting Nodes.

Author:
Fabio Simeoni

Method Summary
static ContainerConfiguration configuration()
          Returns the ContainerConfiguration.
static boolean isRunning()
          Returns true if the container is running.
static void start()
          Starts the container with the configuration provided by a ConfigurationProvider.
static void start(ContainerConfiguration configuration)
          Starts the container with a given ContainerConfiguration.
static void stop()
          Stops the container
static void stop(List<ClientService> services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public static void start()
                  throws RuntimeException
Starts the container with the configuration provided by a ConfigurationProvider.

Throws:
RuntimeException - if the configuration cannot be provided or the container cannot be started

configuration

public static ContainerConfiguration configuration()
Returns the ContainerConfiguration.

Returns:
the configuration

isRunning

public static boolean isRunning()
Returns true if the container is running.

Returns:
true if the container is running.

start

public static void start(ContainerConfiguration configuration)
                  throws IllegalArgumentException,
                         RuntimeException
Starts the container with a given ContainerConfiguration.

Parameters:
configuration - configuration
Throws:
IllegalArgumentException - if the configuration is null or container no ClientServices.
RuntimeException - if the container cannot be started

stop

public static void stop()
Stops the container


stop

public static void stop(List<ClientService> services)


Copyright © 2012. All Rights Reserved.