org.gcube.common.informationsystem.publisher.impl.instancestates
Class InstanceStatePublisher

java.lang.Object
  extended by org.gcube.common.informationsystem.publisher.impl.instancestates.InstanceStatePublisher

public final class InstanceStatePublisher
extends Object

Manager for registrations of services' states in the IS.

Author:
Manuele Simi (ISTI-CNR)

Constructor Summary
InstanceStatePublisher(org.gcube.common.core.scope.GCUBEScope scope)
           
 
Method Summary
 void register(org.gcube.common.core.state.GCUBEWSResource resource, String... name)
          Registers the WS-ResourceProperties document published by the given resource
 void remove(org.gcube.common.core.state.GCUBEWSResource resource, String... name)
          /** Unregisters the WS-ResourceProperties document published by the given resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceStatePublisher

public InstanceStatePublisher(org.gcube.common.core.scope.GCUBEScope scope)
                       throws GCUBEPublisherException
Parameters:
scope - the GCUBEScope where to publish the document
Throws:
GCUBEPublisherException
Method Detail

register

public void register(org.gcube.common.core.state.GCUBEWSResource resource,
                     String... name)
              throws GCUBEPublisherException
Registers the WS-ResourceProperties document published by the given resource

Parameters:
resource - the source WS-Resource
name - the optional name of the registration
Throws:
GCUBEPublisherException - if the registration fails

remove

public void remove(org.gcube.common.core.state.GCUBEWSResource resource,
                   String... name)
            throws GCUBEPublisherException
/** Unregisters the WS-ResourceProperties document published by the given resource

Parameters:
resource - the WS-Resource that publishes the properties to remove
name - the name of the Named Registration
Throws:
Exception
GCUBEPublisherException


Copyright © 2013. All Rights Reserved.