org.gcube.common.informationsystem.publisher.impl.context
Class ISPublisherContext

java.lang.Object
  extended by org.gcube.common.informationsystem.publisher.impl.context.ISPublisherContext

public class ISPublisherContext
extends Object

Publisher local context

Author:
Manuele Simi (ISTI-CNR)

Nested Class Summary
static class ISPublisherContext.NoSuchProperty
          Property exception
 
Field Summary
static String BULK_PUBLICATIONS_INTERVAL_PROP_NAME
           
static String COLLECTOR_CHANNEL_TIMEOUT_PROP_NAME
           
static String MAX_PARALLEL_REGISTRATIONS_PROP_NAME
           
static String REGISTRY_CHANNEL_TIMEOUT_PROP_NAME
           
static String RESOURCE_PUBLICATION_MAX_ATTEMPTS_PROP_NAME
           
 
Method Summary
static ISPublisherContext getContext()
          Gets the ISPublisher context
 Object getProperty(String name)
          Gets a ISPublisher property
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGISTRY_CHANNEL_TIMEOUT_PROP_NAME

public static final String REGISTRY_CHANNEL_TIMEOUT_PROP_NAME
See Also:
Constant Field Values

COLLECTOR_CHANNEL_TIMEOUT_PROP_NAME

public static final String COLLECTOR_CHANNEL_TIMEOUT_PROP_NAME
See Also:
Constant Field Values

BULK_PUBLICATIONS_INTERVAL_PROP_NAME

public static final String BULK_PUBLICATIONS_INTERVAL_PROP_NAME
See Also:
Constant Field Values

MAX_PARALLEL_REGISTRATIONS_PROP_NAME

public static final String MAX_PARALLEL_REGISTRATIONS_PROP_NAME
See Also:
Constant Field Values

RESOURCE_PUBLICATION_MAX_ATTEMPTS_PROP_NAME

public static final String RESOURCE_PUBLICATION_MAX_ATTEMPTS_PROP_NAME
See Also:
Constant Field Values
Method Detail

getContext

public static ISPublisherContext getContext()
                                     throws IOException
Gets the ISPublisher context

Returns:
the context
Throws:
IOException - if an error occurs when reading the configuration

getProperty

public Object getProperty(String name)
                   throws ISPublisherContext.NoSuchProperty
Gets a ISPublisher property

Type Parameters:
T - the type of the property
Parameters:
name - the property name
type - the type of the property
Returns:
the property value
Throws:
ISPublisherContext.NoSuchProperty - if the property does not exist

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.