org.objectweb.proactive.ic2d.data
Class ActiveObject
java.lang.Object
  
org.objectweb.proactive.ic2d.data.AbstractDataObject
      
org.objectweb.proactive.ic2d.data.ActiveObject
- All Implemented Interfaces: 
 - MessageMonitoringController
 
public class ActiveObject
- extends AbstractDataObject
 
Holder class for the host data representation
 
 
 
 
| Methods inherited from class org.objectweb.proactive.ic2d.data.AbstractDataObject | 
childsIterator, clearChilds, destroyCollection, getChild, getChildObjectsCount, getController, getParent, getTopLevelParent, isAlive, isMonitoring, isMonitoringReplyReceiver, isMonitoringReplySender, isMonitoringRequestReceiver, isMonitoringRequestSender, isViewedInEventList, monitorAll, monitorAllCollection, monitoringMessageEventChanged, monitorReplyReceiverCollection, monitorReplySenderCollection, monitorRequestReceiverCollection, monitorRequestSenderCollection, putChild, removeChild, setAlive, viewInEventList, viewInEventListCollection | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
STATUS_UNKNOWN
public static final int STATUS_UNKNOWN
- See Also:
 - Constant Field Values
 
STATUS_WAITING_FOR_REQUEST
public static final int STATUS_WAITING_FOR_REQUEST
- See Also:
 - Constant Field Values
 
STATUS_SERVING_REQUEST
public static final int STATUS_SERVING_REQUEST
- See Also:
 - Constant Field Values
 
STATUS_WAITING_BY_NECESSITY_WHILE_ACTIVE
public static final int STATUS_WAITING_BY_NECESSITY_WHILE_ACTIVE
- See Also:
 - Constant Field Values
 
STATUS_WAITING_BY_NECESSITY_WHILE_SERVING
public static final int STATUS_WAITING_BY_NECESSITY_WHILE_SERVING
- See Also:
 - Constant Field Values
 
STATUS_ACTIVE
public static final int STATUS_ACTIVE
- See Also:
 - Constant Field Values
 
STATUS_NOT_RESPONDING
public static final int STATUS_NOT_RESPONDING
- See Also:
 - Constant Field Values
 
id
protected UniqueID id
className
protected java.lang.String className
name
protected java.lang.String name
requestQueueLength
protected int requestQueueLength
servingStatus
protected int servingStatus
listener
protected ActiveObjectListener listener
ActiveObject
public ActiveObject(NodeObject parent,
                    UniqueID id,
                    java.lang.String className,
                    boolean isActive)
toString
public java.lang.String toString()
- Overrides:
 toString in class AbstractDataObject
 
 
migrateTo
public boolean migrateTo(java.lang.String nodeTargetURL)
 
isInsideSameVM
public boolean isInsideSameVM(ActiveObject o)
 
isInsideSameNode
public boolean isInsideSameNode(ActiveObject o)
 
setServingStatus
public void setServingStatus(int value)
 
findActiveObjectById
public ActiveObject findActiveObjectById(UniqueID id)
- Overrides:
 findActiveObjectById in class AbstractDataObject
 
 
setRequestQueueLength
public void setRequestQueueLength(int value)
 
destroyObject
public void destroyObject()
- Specified by:
 destroyObject in class AbstractDataObject
 
 
registerListener
public void registerListener(ActiveObjectListener listener)
 
getName
public java.lang.String getName()
 
getClassName
public java.lang.String getClassName()
 
getID
public UniqueID getID()
 
getRequestQueueLength
public int getRequestQueueLength()
 
getServingStatus
public int getServingStatus()
 
monitorRequestReceiver
public void monitorRequestReceiver(boolean shouldMonitor)
- Specified by:
 monitorRequestReceiver in interface MessageMonitoringController- Overrides:
 monitorRequestReceiver in class AbstractDataObject
 
 
monitorRequestSender
public void monitorRequestSender(boolean shouldMonitor)
- Specified by:
 monitorRequestSender in interface MessageMonitoringController- Overrides:
 monitorRequestSender in class AbstractDataObject
 
 
monitorReplyReceiver
public void monitorReplyReceiver(boolean shouldMonitor)
- Specified by:
 monitorReplyReceiver in interface MessageMonitoringController- Overrides:
 monitorReplyReceiver in class AbstractDataObject
 
 
monitorReplySender
public void monitorReplySender(boolean shouldMonitor)
- Specified by:
 monitorReplySender in interface MessageMonitoringController- Overrides:
 monitorReplySender in class AbstractDataObject
 
 
getTypedParent
protected NodeObject getTypedParent()
 
destroy
protected boolean destroy()
- Description copied from class: 
AbstractDataObject 
- destroy this object
- Overrides:
 destroy in class AbstractDataObject
 
 
 
Copyright 2001-2007 INRIA All Rights Reserved.