com.platform.ego
Interface Activity


public interface Activity

The interface provides a mechanism to control execution activities.

Services, in general, require some sort of execution context to be established; this may include a virtual machine (VM) or a J2EE application server, or some OS-level construct. To abstract this concept we introduce the notion of an activity as a hosting environment for services. The activity is the main "unit of execution" from the point of view of the EGO kernel.

Version:
1.2.3

Method Summary
 java.lang.String getActivityID()
          Get ID of activity.
 ActivityInfo getActivityInfo()
          Get detailed information of activity.
 ActivityRequest getActivityRequest()
          Get request of activity.
 java.lang.String getAllocID()
          Get ID of allocation.
 java.lang.String getClientName()
          Get name of client.
 java.lang.String getConsumerName()
          Get name of consumer.
 java.lang.String getResourceName()
          Get name of resource on which the activity runs.
 ActivityState getState()
          Get state of activity.
 void signal(Signal sig)
          The operation is used by an EGO client to manage the state of an activity.
 

Method Detail

signal

void signal(Signal sig)
            throws EGOException
The operation is used by an EGO client to manage the state of an activity.

Parameters:
sig - : indicates the POSIX signal name to be delivered to the Activity.
Throws:
EGOException

getAllocID

java.lang.String getAllocID()
Get ID of allocation.

Returns:
ID of allocation.

getConsumerName

java.lang.String getConsumerName()
Get name of consumer.

Returns:
name of consumer.

getResourceName

java.lang.String getResourceName()
Get name of resource on which the activity runs.

Returns:
the Resource object.

getActivityID

java.lang.String getActivityID()
Get ID of activity.

Returns:
ID of activity.

getState

ActivityState getState()
Get state of activity.

Returns:
state of activity.

getActivityRequest

ActivityRequest getActivityRequest()
Get request of activity.

Returns:
request of activity.

getClientName

java.lang.String getClientName()
Get name of client.

Returns:
name of client.

getActivityInfo

ActivityInfo getActivityInfo()
                             throws EGOException
Get detailed information of activity.

Returns:
one ActivityInfo object.
Throws:
EGOException


Copyright (C) 1992-2007 Platform Computing Corporation