org.gcube.common.ghn.service.configuration
Class ServiceConfiguration

java.lang.Object
  extended by org.gcube.common.ghn.service.configuration.ServiceConfiguration

public class ServiceConfiguration
extends Object

The configuration of a managed app.

Includes the list of its client services.

Author:
Fabio Simeoni

Constructor Summary
ServiceConfiguration()
           
 
Method Summary
 Coordinates coordinates()
          Returns the coordinates of the service
 ServiceConfiguration coordinates(Coordinates coordinates)
          Sets the coordinates of the service
 Deployment deployment()
          Returns the deployment configuration of the service.
 ServiceConfiguration deployment(Deployment deployment)
          Sets the deployment configuration of the service.
 boolean equals(Object obj)
           
 int hashCode()
           
 Mode mode()
          Returns the management Mode.
 ServiceConfiguration mode(Mode mode)
          Sets the management mode.
 PersistenceManager persistenceManager()
          Returns the DefaultPersistenceManager for the service.
 ServiceConfiguration persistenceManager(PersistenceManager manager)
          Sets the DefaultPersistenceManager for the service.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceConfiguration

public ServiceConfiguration()
Method Detail

mode

public Mode mode()
Returns the management Mode.

Returns:
the management mode

persistenceManager

public PersistenceManager persistenceManager()
Returns the DefaultPersistenceManager for the service.

Returns:
the manager

persistenceManager

public ServiceConfiguration persistenceManager(PersistenceManager manager)
Sets the DefaultPersistenceManager for the service.

Parameters:
manager - the manager
Returns:
this configuration

mode

public ServiceConfiguration mode(Mode mode)
Sets the management mode.

Parameters:
the - management mode
Returns:
this configuration

coordinates

public Coordinates coordinates()
Returns the coordinates of the service

Returns:
the coordinates

coordinates

public ServiceConfiguration coordinates(Coordinates coordinates)
Sets the coordinates of the service

Parameters:
coordinates - the coordinates
Returns:
this configuration

deployment

public Deployment deployment()
Returns the deployment configuration of the service.

Returns:
the deployment configuration of the service

deployment

public ServiceConfiguration deployment(Deployment deployment)
Sets the deployment configuration of the service.

Parameters:
deployment - the deployment configuration of the service
Returns:
this configuration

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.