org.gcube.common.core.monitoring
Class GCUBETestProbe

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEHandler<GCUBETestProbe>
      extended by org.gcube.common.core.monitoring.GCUBETestProbe
All Implemented Interfaces:
GCUBEProbe, GCUBEIHandler<GCUBETestProbe>
Direct Known Subclasses:
GCUBENotificationProbe

public abstract class GCUBETestProbe
extends GCUBEHandler<GCUBETestProbe>
implements GCUBEProbe

Abstract GCUBETestProbe

Author:
Andrea Manzi(CERN)

Field Summary
protected  HashMap<GCUBEScope,GCUBEMessage> map
           
protected  org.gcube.common.core.monitoring.GCUBETestProbe.Scheduler scheduler
           
 
Fields inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler
handled, logger, producer
 
Constructor Summary
GCUBETestProbe()
          Default constructor
 
Method Summary
 void execute()
          Execute the probe as a GCUBEScheduledHandler
 String getDescription()
          Get the Probe description
 long getInterval()
           
 void setDescription(String description)
          Set the probe description
 void setInterval(long interval)
           
 
Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler
clearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, getState, notify, run, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.common.core.monitoring.GCUBEProbe
sendMessage
 

Field Detail

scheduler

protected org.gcube.common.core.monitoring.GCUBETestProbe.Scheduler scheduler

map

protected HashMap<GCUBEScope,GCUBEMessage> map
Constructor Detail

GCUBETestProbe

public GCUBETestProbe()
Default constructor

Method Detail

getDescription

public String getDescription()
Get the Probe description

Returns:
the probe description

setDescription

public void setDescription(String description)
Set the probe description

Parameters:
description -

getInterval

public long getInterval()

setInterval

public void setInterval(long interval)

execute

public void execute()
             throws Exception
Execute the probe as a GCUBEScheduledHandler

Specified by:
execute in interface GCUBEProbe
Throws:
Exception


Copyright © 2013. All Rights Reserved.