com.metamatrix.admin.objects
Class MMProcess

java.lang.Object
  extended by com.metamatrix.admin.objects.MMAdminObject
      extended by com.metamatrix.admin.objects.MMProcess
All Implemented Interfaces:
AdminObject, ProcessObject, java.io.Serializable

public final class MMProcess
extends MMAdminObject
implements ProcessObject

Data holder for information about a Process.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, OBJECT_TYPE_CACHE, OBJECT_TYPE_CONNECTOR_BINDING, OBJECT_TYPE_CONNECTOR_TYPE, OBJECT_TYPE_DQP, OBJECT_TYPE_ENTITLEMENT, OBJECT_TYPE_EXTENSION_MODULE, OBJECT_TYPE_GROUP, OBJECT_TYPE_HOST, OBJECT_TYPE_LOG_CONFIGURATION, OBJECT_TYPE_MODEL, OBJECT_TYPE_PROCESS_OBJECT, OBJECT_TYPE_PROPERTY_DEFINITION, OBJECT_TYPE_QUEUE_WORKER_POOL, OBJECT_TYPE_REQUEST, OBJECT_TYPE_RESOURCE, OBJECT_TYPE_ROLE, OBJECT_TYPE_SERVICE, OBJECT_TYPE_SESSION, OBJECT_TYPE_SYSTEM_OBJECT, OBJECT_TYPE_TRANSACTION, OBJECT_TYPE_USER, OBJECT_TYPE_VDB, OBJECTS_PACKAGE, registered, serialVersionUID
 
Fields inherited from interface com.metamatrix.admin.api.objects.ProcessObject
ENABLED_FLAG, FORCED_SHUTDOWN_TIME, INPUT_BUFFER_SIZE, MAX_THREADS, OUTPUT_BUFFER_SIZE, SERVER_PORT, TIMETOLIVE, VM_MAXIMUM_HEAP_SIZE_PROPERTY_NAME, VM_MINIMUM_HEAP_SIZE_PROPERTY_NAME
 
Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
 
Constructor Summary
MMProcess(java.lang.String[] identifierParts)
          Contruct a new MMProcess.
 
Method Summary
static java.lang.String[] buildIdentifierArray(java.lang.String identifier)
          Build the Identifer, as an array of its parts.
 long getFreeMemory()
           
 java.lang.String getHostIdentifier()
          Get the Host Identifier for this MetaMatrix Process
 java.lang.String getHostName()
           
 java.net.InetAddress getInetAddress()
          Get the IP address for the MetaMatrix Process
 int getMaxSockets()
           
 int getMaxVirtualSockets()
           
 long getObjectsRead()
           
 long getObjectsWritten()
           
 int getPort()
          Get the port number for this MetaMatrix Process
 java.lang.String getProcessName()
           
 QueueWorkerPool getQueueWorkerPool()
           
 int getSockets()
           
 int getThreadCount()
           
 long getTotalMemory()
           
 int getVirtualSockets()
           
 boolean isRunning()
           
 void setFreeMemory(long freeMemory)
           
 void setInetAddress(java.net.InetAddress inetAddress)
           
 void setMaxSockets(int maxSockets)
           
 void setMaxVirtualSockets(int maxVirtualSockets)
           
 void setObjectsRead(long objectsRead)
           
 void setObjectsWritten(long objectsWritten)
           
 void setPort(int port)
           
 void setQueueWorkerPool(QueueWorkerPool queueWorkerPool)
           
 void setRunning(boolean running)
          Set whether this process is running.
 void setSockets(int sockets)
           
 void setThreadCount(int threadCount)
           
 void setTotalMemory(long totalMemory)
           
 void setVirtualSockets(int virtualSockets)
           
 java.lang.String toString()
          Return string for display.
 
Methods inherited from class com.metamatrix.admin.objects.MMAdminObject
buildIdentifier, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getName, getNameFromIdentifier, getObjectType, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isDeployed, isEnabled, isRegistered, setCreated, setCreatedBy, setDeployed, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.admin.api.objects.ProcessObject
isEnabled
 
Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject
getIdentifier, getName, getProperties, getPropertyValue
 

Constructor Detail

MMProcess

public MMProcess(java.lang.String[] identifierParts)
Contruct a new MMProcess.

Parameters:
identifierParts -
Method Detail

buildIdentifierArray

public static java.lang.String[] buildIdentifierArray(java.lang.String identifier)
Build the Identifer, as an array of its parts. Contains special handling for host, because it may contain dots.

Parameters:
identifier -
Returns:
the Identifer, as an array of its parts
Since:
4.3

getFreeMemory

public long getFreeMemory()
Specified by:
getFreeMemory in interface ProcessObject
Returns:
amount of free memory for this Java process.

getHostIdentifier

public java.lang.String getHostIdentifier()
Description copied from interface: ProcessObject
Get the Host Identifier for this MetaMatrix Process

Specified by:
getHostIdentifier in interface ProcessObject
Returns:
host name for this process.

getInetAddress

public java.net.InetAddress getInetAddress()
Description copied from interface: ProcessObject
Get the IP address for the MetaMatrix Process

Specified by:
getInetAddress in interface ProcessObject
Returns:
port for this process.

getPort

public int getPort()
Description copied from interface: ProcessObject
Get the port number for this MetaMatrix Process

Specified by:
getPort in interface ProcessObject
Returns:
port for this process.

getThreadCount

public int getThreadCount()
Specified by:
getThreadCount in interface ProcessObject
Returns:
thread count for this Java process.

getTotalMemory

public long getTotalMemory()
Specified by:
getTotalMemory in interface ProcessObject
Returns:
total memory allocated for this Java process.

isRunning

public boolean isRunning()
Specified by:
isRunning in interface ProcessObject
Returns:
whether this process is running.
Since:
4.3

setFreeMemory

public void setFreeMemory(long freeMemory)
Parameters:
freeMemory - The freeMemory to set.
Since:
4.3

setInetAddress

public void setInetAddress(java.net.InetAddress inetAddress)
Parameters:
inetAddress - The inetAddress to set.
Since:
4.3

setPort

public void setPort(int port)
Parameters:
port - The port to set.
Since:
4.3

setRunning

public void setRunning(boolean running)
Set whether this process is running.

Parameters:
running -
Since:
4.3

setThreadCount

public void setThreadCount(int threadCount)
Parameters:
threadCount - The threadCount to set.
Since:
4.3

setTotalMemory

public void setTotalMemory(long totalMemory)
Parameters:
totalMemory - The totalMemory to set.
Since:
4.3

toString

public java.lang.String toString()
Return string for display.

Specified by:
toString in class MMAdminObject
Since:
4.3
See Also:
Object.toString()

getMaxSockets

public int getMaxSockets()
Specified by:
getMaxSockets in interface ProcessObject
Returns:
Returns the maxSockets.
Since:
4.3

setMaxSockets

public void setMaxSockets(int maxSockets)
Parameters:
maxSockets - The maxSockets to set.
Since:
4.3

getMaxVirtualSockets

public int getMaxVirtualSockets()
Specified by:
getMaxVirtualSockets in interface ProcessObject
Returns:
Returns the maxVirtualSockets.
Since:
4.3

setMaxVirtualSockets

public void setMaxVirtualSockets(int maxVirtualSockets)
Parameters:
maxVirtualSockets - The maxVirtualSockets to set.
Since:
4.3

getObjectsRead

public long getObjectsRead()
Specified by:
getObjectsRead in interface ProcessObject
Returns:
Returns the objectsRead.
Since:
4.3

setObjectsRead

public void setObjectsRead(long objectsRead)
Parameters:
objectsRead - The objectsRead to set.
Since:
4.3

getObjectsWritten

public long getObjectsWritten()
Specified by:
getObjectsWritten in interface ProcessObject
Returns:
Returns the objectsWritten.
Since:
4.3

setObjectsWritten

public void setObjectsWritten(long objectsWritten)
Parameters:
objectsWritten - The objectsWritten to set.
Since:
4.3

getSockets

public int getSockets()
Specified by:
getSockets in interface ProcessObject
Returns:
Returns the sockets.
Since:
4.3

setSockets

public void setSockets(int sockets)
Parameters:
sockets - The sockets to set.
Since:
4.3

getVirtualSockets

public int getVirtualSockets()
Specified by:
getVirtualSockets in interface ProcessObject
Returns:
Returns the virtualSockets.
Since:
4.3

setVirtualSockets

public void setVirtualSockets(int virtualSockets)
Parameters:
virtualSockets - The virtualSockets to set.
Since:
4.3

getQueueWorkerPool

public QueueWorkerPool getQueueWorkerPool()
Specified by:
getQueueWorkerPool in interface ProcessObject
Returns:
Returns the queueWorkerPool.
Since:
4.3

setQueueWorkerPool

public void setQueueWorkerPool(QueueWorkerPool queueWorkerPool)
Parameters:
queueWorkerPool - The queueWorkerPool to set.
Since:
4.3

getProcessName

public java.lang.String getProcessName()
Returns:
Returns the processID.
Since:
4.3

getHostName

public java.lang.String getHostName()
Returns:
Returns the hostName.
Since:
4.3


Copyright © 2009. All Rights Reserved.