com.metamatrix.platform.vm.api.controller
Interface ProcessManagement

All Known Implementing Classes:
ProcessController, SocketVMController

public interface ProcessManagement


Method Summary
 void checkService(ServiceID serviceID)
          Check the state of a service
 void dumpThreads()
          dumps stack trace to log file.
 byte[] exportLogs()
          Export the server logs to a byte[].
 java.net.InetAddress getAddress()
          Get the address of the host this VM is running on.
 java.lang.String getName()
          Get the name for this controller.
 java.util.Date getStartTime()
          Get the time the VM was initialized.
 ProcessStatistics getVMStatistics()
          Return information about VM.
 boolean isShuttingDown()
          Returns true if system is being shutdown.
 void ping()
          Method called from registries to determine if VMController is alive.
 void setCurrentLogConfiguration(LogConfiguration logConfiguration)
          Set the current log configuration.
 void shutdown(boolean now)
          Shut down all services waiting for work to complete.
 void start()
          Starts the VM by invoking all the deployed services
 void startDeployedService(ServiceComponentDefnID id)
          Start the service identified by the ServiceComponentID If synch is true then wait for service to start before returning.
 void startService(ServiceID serviceID)
          Start a previously stopped service
 void stopService(ServiceID id, boolean now, boolean shutdown)
          Kill service once work is complete
 

Method Detail

start

void start()
Starts the VM by invoking all the deployed services


shutdown

void shutdown(boolean now)
Shut down all services waiting for work to complete. Essential services will also be shutdown.


startDeployedService

void startDeployedService(ServiceComponentDefnID id)
Start the service identified by the ServiceComponentID If synch is true then wait for service to start before returning. Any exceptions will then be thrown to the caller. If synch is false then start service asynchronously.


startService

void startService(ServiceID serviceID)
Start a previously stopped service


stopService

void stopService(ServiceID id,
                 boolean now,
                 boolean shutdown)
Kill service once work is complete


checkService

void checkService(ServiceID serviceID)
Check the state of a service


setCurrentLogConfiguration

void setCurrentLogConfiguration(LogConfiguration logConfiguration)
Set the current log configuration.


getStartTime

java.util.Date getStartTime()
Get the time the VM was initialized.


getAddress

java.net.InetAddress getAddress()
Get the address of the host this VM is running on.


getName

java.lang.String getName()
Get the name for this controller.


ping

void ping()
Method called from registries to determine if VMController is alive.


isShuttingDown

boolean isShuttingDown()
Returns true if system is being shutdown.


getVMStatistics

ProcessStatistics getVMStatistics()
Return information about VM. totalMemory, freeMemory, threadCount


dumpThreads

void dumpThreads()
dumps stack trace to log file.


exportLogs

byte[] exportLogs()
Export the server logs to a byte[]. The bytes contain the contents of a .zip file containing the logs. This will export all logs on the host that contains this VMController.

Returns:
the logs, as a byte[].
Throws:
AdminException
Since:
4.3


Copyright © 2009. All Rights Reserved.