|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.informationsystem.publisher.impl.local.GCUBELocalPublisher
public final class GCUBELocalPublisher
Manager for publishing GCUBEResource as local events
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gcube.common.core.informationsystem.publisher.ISLocalPublisher |
|---|
org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.GCUBEResourceMessage, org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileConsumer, org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileEvent, org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileTopic |
| Field Summary | |
|---|---|
protected static org.gcube.common.core.utils.events.GCUBEProducer<org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileTopic,Object> |
eventProducer
Internal GCUBEProducer for LocalProfileEvent. |
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger
|
| Constructor Summary | |
|---|---|
GCUBELocalPublisher()
|
|
| Method Summary | |
|---|---|
static GCUBELocalPublisher |
getManager()
Returns the local publisher |
boolean |
isEnabled(String resourceType,
org.gcube.common.core.scope.GCUBEScope scope)
Checks if the local publishing is enabled or not for the given scope |
void |
notifyResourceRegistered(org.gcube.common.core.resources.GCUBEResource resource,
org.gcube.common.core.scope.GCUBEScope scope)
Notifies that a @link GCUBEResource has been created |
void |
notifyResourceRemoved(String ID,
String type,
org.gcube.common.core.scope.GCUBEScope scope)
Notifies that a @link GCUBEResource has been removed |
void |
notifyResourceUpdated(org.gcube.common.core.resources.GCUBEResource resource,
org.gcube.common.core.scope.GCUBEScope scope)
Notifies that a @link GCUBEResource has been updated |
void |
subscribeLocalProfileEvents(org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileConsumer consumer)
Subscribes a consumer to all LocalProfileEvent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.gcube.common.core.utils.logging.GCUBELog logger
protected static org.gcube.common.core.utils.events.GCUBEProducer<org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileTopic,Object> eventProducer
GCUBEProducer for LocalProfileEvent.
| Constructor Detail |
|---|
public GCUBELocalPublisher()
| Method Detail |
|---|
public void subscribeLocalProfileEvents(org.gcube.common.core.informationsystem.publisher.ISLocalPublisher.LocalProfileConsumer consumer)
throws GCUBEPublisherException
LocalProfileEvent.
subscribeLocalProfileEvents in interface org.gcube.common.core.informationsystem.publisher.ISLocalPublisherconsumer - the consumer
Exception - if the subscription could not be completed.
GCUBEPublisherExceptionpublic static GCUBELocalPublisher getManager()
public void notifyResourceRemoved(String ID,
String type,
org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
GCUBEResource has been removed
resource - the resource
Exception
public void notifyResourceRegistered(org.gcube.common.core.resources.GCUBEResource resource,
org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
GCUBEResource has been created
resource - the resource
Exception
public void notifyResourceUpdated(org.gcube.common.core.resources.GCUBEResource resource,
org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
GCUBEResource has been updated
resource - the resource
Exception
public boolean isEnabled(String resourceType,
org.gcube.common.core.scope.GCUBEScope scope)
isEnabled in interface org.gcube.common.core.informationsystem.publisher.ISLocalPublisherscope - the scope to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||