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:
java.io.Serializable, AdminObject, ProcessObject

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, registered
 
Fields inherited from interface org.teiid.adminapi.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 getHostName()
          Get the Host name
 java.net.InetAddress getInetAddress()
          Get the IP address for the MetaMatrix Process
 int getMaxSockets()
           
 long getObjectsRead()
           
 long getObjectsWritten()
           
 int getPort()
          Get the port number for this MetaMatrix Process
 java.lang.String getProcessName()
          Get the Process name
 QueueWorkerPool getQueueWorkerPool()
           
 int getSockets()
           
 java.util.Date getStartTime()
           
 int getThreadCount()
           
 long getTotalMemory()
           
 boolean isRunning()
           
 void setFreeMemory(long freeMemory)
           
 void setInetAddress(java.net.InetAddress inetAddress)
           
 void setMaxSockets(int maxSockets)
           
 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 setStartTime(java.util.Date date)
           
 void setThreadCount(int threadCount)
           
 void setTotalMemory(long totalMemory)
           
 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, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isEnabled, isRegistered, setCreated, setCreatedBy, 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 org.teiid.adminapi.ProcessObject
isEnabled
 
Methods inherited from interface org.teiid.adminapi.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.

getHostName

public java.lang.String getHostName()
Description copied from interface: ProcessObject
Get the Host name

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

getProcessName

public java.lang.String getProcessName()
Description copied from interface: ProcessObject
Get the Process name

Specified by:
getProcessName 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

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

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

getStartTime

public java.util.Date getStartTime()
Specified by:
getStartTime in interface ProcessObject
Returns:
Returns the startTime.

setStartTime

public void setStartTime(java.util.Date date)


Copyright © 2009. All Rights Reserved.