org.ow2.jasmine.vmm.agent.domain
Class ManagedResource

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.jasmine.vmm.agent.domain.ManagedResource
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.ow2.jasmine.vmm.api.ManagedResourceMXBean
Direct Known Subclasses:
AbstractHost, Domain, HyperVVirtualMachine, HyperVVMImageStore, ImageCatalog, ImageCatalog.VirtualMachineImage, LibvirtVirtualMachine, ServerPool, XenVirtualMachine, XenVMImageStore

public abstract class ManagedResource
extends javax.management.NotificationBroadcasterSupport
implements org.ow2.jasmine.vmm.api.ManagedResourceMXBean

The ManagedResource class implements the ManagedResourceMXBean interfaces and provides operations common to all types of managed resources. This class should be sub-classed by driver-specific resource classes.


Field Summary
protected  javax.management.ObjectName objectName
           
protected  java.lang.String path
           
 
Constructor Summary
protected ManagedResource(javax.management.ObjectName objectName)
           
 
Method Summary
 void emitNotification(java.lang.String type, java.lang.String message, java.lang.Object userData)
           
 void emitNotification(java.lang.String type, java.lang.String message, java.lang.Object userData, long timeStamp)
           
 javax.management.ObjectName getObjectName()
           
 java.lang.String getPath()
           
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected java.lang.String path

objectName

protected javax.management.ObjectName objectName
Constructor Detail

ManagedResource

protected ManagedResource(javax.management.ObjectName objectName)
Method Detail

getObjectName

public javax.management.ObjectName getObjectName()
Specified by:
getObjectName in interface org.ow2.jasmine.vmm.api.ManagedResourceMXBean

getPath

public java.lang.String getPath()
Specified by:
getPath in interface org.ow2.jasmine.vmm.api.ManagedResourceMXBean

emitNotification

public void emitNotification(java.lang.String type,
                             java.lang.String message,
                             java.lang.Object userData)

emitNotification

public void emitNotification(java.lang.String type,
                             java.lang.String message,
                             java.lang.Object userData,
                             long timeStamp)


Copyright © 2011 OW2 Consortium. All Rights Reserved.