org.glite.ce.monitorapij.types
Class CEMonResource

java.lang.Object
  extended byorg.glite.ce.monitorapij.types.CEMonResourceBase
      extended byorg.glite.ce.monitorapij.types.CEMonResource
All Implemented Interfaces:
Resource, java.io.Serializable
Direct Known Subclasses:
AbstractSensor, ActionBase, SubscriptionBase

public class CEMonResource
extends CEMonResourceBase
implements Resource, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.Calendar creationTime
           
protected  boolean newResource
           
 
Constructor Summary
CEMonResource()
           
CEMonResource(java.lang.String name, java.lang.String type)
           
 
Method Summary
 boolean exists()
          Check if this resource still exists.
 java.util.Calendar getCreationTime()
          Get the creation time.
 Property getProperty(java.lang.String name)
          Get a Property specifying its name
 boolean isNew()
          Check if this resource has recently been added (i.e.
 java.util.Calendar lastModified()
          Get the time of the last modification occurred to this resource.
static org.apache.axis.utils.BeanPropertyDescriptor[] removeHiddenProperties(org.apache.axis.utils.BeanPropertyDescriptor[] in)
           
 void setCreationTime(java.util.Calendar time)
          Set the time of the last modification occurred to this resource.
 void setId(int id)
          Set the int identifying this resource.
 void setNew(boolean b)
          Set the "new" flag of this resource.
 
Methods inherited from class org.glite.ce.monitorapij.types.CEMonResourceBase
equals, getDeserializer, getId, getJarPath, getName, getProperty, getProperty, getSerializer, getType, getTypeDesc, hashCode, setId, setJarPath, setName, setProperty, setProperty, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.glite.ce.monitorapij.resource.Resource
getId, getJarPath, getName, getProperty, getProperty, getType, setId, setJarPath, setName, setProperty, setProperty, setType
 

Field Detail

newResource

protected transient boolean newResource

creationTime

protected transient java.util.Calendar creationTime
Constructor Detail

CEMonResource

public CEMonResource()

CEMonResource

public CEMonResource(java.lang.String name,
                     java.lang.String type)
Method Detail

isNew

public boolean isNew()
Description copied from interface: Resource
Check if this resource has recently been added (i.e. inserted its jar in the jar directory).

Specified by:
isNew in interface Resource
Returns:
True if this resource is new, false otherwise.

setNew

public void setNew(boolean b)
Description copied from interface: Resource
Set the "new" flag of this resource.

Specified by:
setNew in interface Resource
Parameters:
b - The value of the "new" flag.

setId

public void setId(int id)
Description copied from interface: Resource
Set the int identifying this resource.

Specified by:
setId in interface Resource

getCreationTime

public java.util.Calendar getCreationTime()
Description copied from interface: Resource
Get the creation time.

Specified by:
getCreationTime in interface Resource
Returns:
The creation time.

setCreationTime

public void setCreationTime(java.util.Calendar time)
Description copied from interface: Resource
Set the time of the last modification occurred to this resource.

Specified by:
setCreationTime in interface Resource
Parameters:
time - The time of the last modification to this resource.

getProperty

public Property getProperty(java.lang.String name)
Description copied from interface: Resource
Get a Property specifying its name

Specified by:
getProperty in interface Resource
Parameters:
name - The name of the property.
Returns:
The searched Property if it exists.

exists

public boolean exists()
Description copied from interface: Resource
Check if this resource still exists.

Specified by:
exists in interface Resource
Returns:
True if the resource exists, false otherwise.

lastModified

public java.util.Calendar lastModified()
Description copied from interface: Resource
Get the time of the last modification occurred to this resource.

Specified by:
lastModified in interface Resource
Returns:
The time of the last modification to this resource.

removeHiddenProperties

public static org.apache.axis.utils.BeanPropertyDescriptor[] removeHiddenProperties(org.apache.axis.utils.BeanPropertyDescriptor[] in)