org.glite.authz.common.config
Class AbstractServiceConfiguration

java.lang.Object
  extended by org.glite.authz.common.config.AbstractConfiguration
      extended by org.glite.authz.common.config.AbstractServiceConfiguration

public abstract class AbstractServiceConfiguration
extends AbstractConfiguration

Base class for service configurations.


Field Summary
 
Fields inherited from class org.glite.authz.common.config.AbstractConfiguration
BINDING_NAME
 
Constructor Summary
protected AbstractServiceConfiguration(ServiceMetrics metrics)
          Constructor.
 
Method Summary
 java.lang.String getAdminHost()
          Gets the host upon which the admin service listens.
 java.lang.String getAdminPassword()
          Gets the password required for admin commands.
 int getAdminPort()
          Gets the port number upon which the admin service listens.
 java.lang.String getEntityId()
          Gets the entity ID of the service.
 java.lang.String getHostname()
          Gets the hostname upon which the service listens.
 int getMaxRequestQueueSize()
          Gets the maximum number of requests the will queue up if all of its request processing threads are busy.
 int getPort()
          Gets the port number upon which the service listens.
 ServiceMetrics getServiceMetrics()
          Gets the metrics for this service.
 org.opensaml.ws.soap.client.SOAPClient getSOAPClient()
          Gets the SOAP client used to communicate with other services.
 boolean isClientCertAuthRequired()
          Gets whether client certificate authentication is required for connecting clients.
 boolean isSslEnabled()
          Gets whether SSL is enabled on the service port.
protected  void setAdminHost(java.lang.String host)
          Sets the hostname upon which the admin service listens.
protected  void setAdminPassword(java.lang.String password)
          Sets the password required for admin commands.
protected  void setAdminPort(int port)
          Sets the port number upon which the admin service listens.
protected  void setClientCertAuthRequired(boolean required)
          Sets whether client certificate authentication is required of connecting clients.
protected  void setEntityId(java.lang.String id)
          Sets the entity ID of the service.
protected  void setHostname(java.lang.String newHost)
          Sets the hostname upon which the service listens.
protected  void setMaxRequestQueueSize(int max)
          Sets the maximum number of requests the will queue up if all of its request processing threads are busy.
protected  void setPort(int newPort)
          Sets the port number upon which the service listens.
protected  void setSOAPClient(org.opensaml.ws.soap.client.SOAPClient client)
          Sets the SOAP client used to communicate with other services.
protected  void setSslEnabled(boolean enabled)
          Sets whether SSL is enabled on the service port.
 
Methods inherited from class org.glite.authz.common.config.AbstractConfiguration
getConnectionTimeout, getKeyManager, getMaxRequests, getReceiveBufferSize, getSendBufferSize, getTrustManager, getTrustMaterialStore, setConnectionTimeout, setKeyManager, setMaxRequests, setReceiveBufferSize, setSendBufferSize, setX509TrustMaterial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractServiceConfiguration

protected AbstractServiceConfiguration(ServiceMetrics metrics)
Constructor.

Parameters:
metrics - metrics container for this store
Method Detail

getEntityId

public java.lang.String getEntityId()
Gets the entity ID of the service.

Returns:
entity ID of the service

getHostname

public java.lang.String getHostname()
Gets the hostname upon which the service listens.

Returns:
hostname upon which the service listens

isClientCertAuthRequired

public boolean isClientCertAuthRequired()
Gets whether client certificate authentication is required for connecting clients.

Returns:
whether client certificate authentication is required

getMaxRequestQueueSize

public int getMaxRequestQueueSize()
Gets the maximum number of requests the will queue up if all of its request processing threads are busy.

Returns:
maximum number of requests the will queue up if all of its request processing threads are busy

getPort

public int getPort()
Gets the port number upon which the service listens.

Returns:
the port number upon which the service listens

getServiceMetrics

public ServiceMetrics getServiceMetrics()
Gets the metrics for this service.

Returns:
metrics for this service

getAdminHost

public java.lang.String getAdminHost()
Gets the host upon which the admin service listens.

Returns:
host upon which the admin service listens

getAdminPort

public int getAdminPort()
Gets the port number upon which the admin service listens.

Returns:
port number upon which the admin service listens

getAdminPassword

public java.lang.String getAdminPassword()
Gets the password required for admin commands.

Returns:
password required for admin commands

getSOAPClient

public org.opensaml.ws.soap.client.SOAPClient getSOAPClient()
Gets the SOAP client used to communicate with other services.

Returns:
SOAP client used to communicate with other services

isSslEnabled

public boolean isSslEnabled()
Gets whether SSL is enabled on the service port.

Returns:
whether SSL is enabled on the service port

setEntityId

protected final void setEntityId(java.lang.String id)
Sets the entity ID of the service.

Parameters:
id - entity ID of the service

setHostname

protected final void setHostname(java.lang.String newHost)
Sets the hostname upon which the service listens.

Parameters:
newHost - hostname upon which the service listens

setClientCertAuthRequired

protected final void setClientCertAuthRequired(boolean required)
Sets whether client certificate authentication is required of connecting clients.

Parameters:
required - whether client certificate authentication is required

setMaxRequestQueueSize

protected final void setMaxRequestQueueSize(int max)
Sets the maximum number of requests the will queue up if all of its request processing threads are busy.

Parameters:
max - maximum number of requests the will queue up if all of its request processing threads are busy

setPort

protected final void setPort(int newPort)
Sets the port number upon which the service listens.

Parameters:
newPort - number upon which the service listens

setAdminHost

protected final void setAdminHost(java.lang.String host)
Sets the hostname upon which the admin service listens.

Parameters:
host - hostname upon which the admin service listens

setAdminPort

protected final void setAdminPort(int port)
Sets the port number upon which the admin service listens.

Parameters:
port - port number upon which the admin service listens

setAdminPassword

protected final void setAdminPassword(java.lang.String password)
Sets the password required for admin commands.

Parameters:
password - the password required for admin commands

setSOAPClient

protected final void setSOAPClient(org.opensaml.ws.soap.client.SOAPClient client)
Sets the SOAP client used to communicate with other services.

Parameters:
client - SOAP client used to communicate with other services

setSslEnabled

protected final void setSslEnabled(boolean enabled)
Sets whether SSL is enabled on the service port.

Parameters:
enabled - whether SSL is enabled on the service port


Copyright © 2008-2012 EMI - European Middleware Initiative. All Rights Reserved.