org.iperg.part.core
Class IpProcess

java.lang.Object
  extended by org.iperg.part.core.IpObject
      extended by org.iperg.part.core.IpProcess

public class IpProcess
extends IpObject

The IpProcess class is used to represent processes in a multi-process PART session. Each process has a local process object, which can be retrieved via the IpSystem class:

IpProcess myProc = IpSystem.getLocalProcess();

Since process objects are in fact a form of distributed objects, properties can be added to such objects dynamically. Process objects of remote processes can also be retrieved and inspected via the use of the object search service provided by PART.

myProc.addProperty("name", "myApplName");

Version:
1.0.0 Initial version
Author:
Olov Stahl - olovs@sics.se

Field Summary
static java.lang.String JAVA_EDITION
           
static java.lang.String PART_VERSION
           
 
Fields inherited from class org.iperg.part.core.IpObject
DEFAULT_PROP_GROUP, PROP_ADD, PROP_REMOVE, PROP_SET
 
Constructor Summary
IpProcess()
          Empty constructor, needed during replication
IpProcess(IpIdentifier id)
           
 
Method Summary
 java.lang.String handleCommand(java.lang.String cmd, java.lang.String[] params)
          Should be overridden by sub-classes that wish to handle the invocation of a command.
 
Methods inherited from class org.iperg.part.core.IpObject
addCommandHandler, addProperty, addPropertyViaFloat, addPropertyViaInt, createProperty, exec, exec, getAllObjects, getAllPropertyGroupNames, getAllPropertyNames, getId, getMasterHolderId, getMostRecentUpdateTime, getMostRecentUpdateTime, getObject, getProperty, getProperty, getPropertyAsFloat, getPropertyAsInt, getScript, getSubscriptionInterval, isDiscoverable, isMaster, propertyUpdateResolve, read, release, releaseAllObjects, removeProperty, replicate, replicaUpdateCb, setDiscoverable, setProperty, setPropertyViaFloat, setPropertyViaInt, setScript, subscribe, subscribeAll, synchronise, synchronise, synchroniseProperty, synchroniseProperty, toString, unsubscribe, unsubscribeAll, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JAVA_EDITION

public static final java.lang.String JAVA_EDITION
See Also:
Constant Field Values

PART_VERSION

public static final java.lang.String PART_VERSION
See Also:
Constant Field Values
Constructor Detail

IpProcess

public IpProcess()
Empty constructor, needed during replication


IpProcess

public IpProcess(IpIdentifier id)
Method Detail

handleCommand

public java.lang.String handleCommand(java.lang.String cmd,
                                      java.lang.String[] params)
                               throws IpException
Description copied from class: IpObject
Should be overridden by sub-classes that wish to handle the invocation of a command.

Overrides:
handleCommand in class IpObject
Parameters:
cmd - The command name
params - The call parameters
Throws:
IpException - if the execution failed for some reason