com.metamatrix.admin.server
Class ServerRuntimeStateAdminImpl

java.lang.Object
  extended by com.metamatrix.admin.server.AbstractAdminImpl
      extended by com.metamatrix.admin.server.ServerRuntimeStateAdminImpl
All Implemented Interfaces:
CoreRuntimeStateAdmin, ServerRuntimeStateAdmin

public class ServerRuntimeStateAdminImpl
extends AbstractAdminImpl
implements ServerRuntimeStateAdmin

Since:
4.3

Field Summary
 
Fields inherited from class com.metamatrix.admin.server.AbstractAdminImpl
parent, registry
 
Constructor Summary
ServerRuntimeStateAdminImpl(ServerAdminImpl parent, ClusteredRegistryState registry)
           
 
Method Summary
 void bounceSystem(boolean waitUntilDone)
          Stop and restart the entire system.
 void cancelRequest(java.lang.String identifier)
          Cancel Request
 void cancelSourceRequest(java.lang.String identifier)
          Cancel Source Request
 void changeVDBStatus(java.lang.String name, java.lang.String version, int newStatus)
          Change the status of a Deployed VDB
 void clearCache(java.lang.String cacheIdentifier)
          Clear the cache or caches specified by the cacheIdentifier.
 void startConnectorBinding(java.lang.String identifier)
          Start Connector Binding
 void startHost(java.lang.String hostName, boolean waitUntilDone)
          Start the Host for this cluster
 void startProcess(java.lang.String identifier, boolean waitUntilDone)
          Start a Process in the system.
 void stopConnectorBinding(java.lang.String identifier, boolean stopNow)
          Stop Connector Binding
 void stopHost(java.lang.String hostName, boolean stopNow, boolean waitUntilDone)
          Stop the Host for this cluster
 void stopProcess(java.lang.String identifier, boolean stopNow, boolean waitUntilDone)
          Stop Process running in the system.
 void stopSystem()
          Stop the entire system.
 void synchronizeSystem(boolean waitUntilDone)
          Synchronize the entire system.
 void terminateSession(java.lang.String identifier)
          Terminate the Session
 
Methods inherited from class com.metamatrix.admin.server.AbstractAdminImpl
convertPropertyDefinitions, convertPropertyDefinitions, convertPropertyDefinitions, convertToAdminVDB, getAdminObjects, getAuthorizationServiceProxy, getConfigurationModel, getConfigurationServiceProxy, getConnectorBindingNameFromUUID, getConnectorBindingNamesFromUUIDs, getConnectorBindingNamesFromUUIDs, getConnectorBindingNamesMapFromUUIDs, getExtensionSourceManager, getMembershipServiceProxy, getName, getParent, getQueryServiceProxy, getRuntimeStateAdminAPIHelper, getSessionID, getSessionServiceProxy, getUserName, getVDBs, identifierMatches, identifierMatches, logDetail, shutDownConnectorBinding, throwProcessingException, validateSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRuntimeStateAdminImpl

public ServerRuntimeStateAdminImpl(ServerAdminImpl parent,
                                   ClusteredRegistryState registry)
Method Detail

cancelRequest

public void cancelRequest(java.lang.String identifier)
                   throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Cancel Request

Specified by:
cancelRequest in interface CoreRuntimeStateAdmin
Parameters:
identifier - The request identifer defined by Request No wild cards currently supported, must be explicit
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
CoreRuntimeStateAdmin.cancelRequest(java.lang.String)

cancelSourceRequest

public void cancelSourceRequest(java.lang.String identifier)
                         throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Cancel Source Request

Specified by:
cancelSourceRequest in interface CoreRuntimeStateAdmin
Parameters:
identifier - The request identifer defined by Request No wild cards currently supported, must be explicit
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
CoreRuntimeStateAdmin.cancelSourceRequest(java.lang.String)

startConnectorBinding

public void startConnectorBinding(java.lang.String identifier)
                           throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Start Connector Binding

Specified by:
startConnectorBinding in interface CoreRuntimeStateAdmin
Parameters:
identifier - identifier for ConnectorBinding
  • "*" - for all connector bindings in the system
  • "name*" - for all connector bindings that begin with given name
  • "name" - for single connector binding by the given name
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
CoreRuntimeStateAdmin.startConnectorBinding(java.lang.String)

startHost

public void startHost(java.lang.String hostName,
                      boolean waitUntilDone)
               throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Start the Host for this cluster

Specified by:
startHost in interface ServerRuntimeStateAdmin
Parameters:
hostName - the unique identifier for for a Host in the system.
waitUntilDone - If true, this method waits until the operation is finished before returning. This may take a long time to complete. If false, this method returns immediately, even though the operation may not be finished.
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.startHost(java.lang.String, boolean)

startProcess

public void startProcess(java.lang.String identifier,
                         boolean waitUntilDone)
                  throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Start a Process in the system.

Specified by:
startProcess in interface ServerRuntimeStateAdmin
Parameters:
identifier - the unique identifier for for a ProcessObject in the system.
waitUntilDone - If true, this method waits until the operation is finished before returning. This may take a long time to complete. If false, this method returns immediately, even though the operation may not be finished.
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.startProcess(java.lang.String, boolean)

stopConnectorBinding

public void stopConnectorBinding(java.lang.String identifier,
                                 boolean stopNow)
                          throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Stop Connector Binding

Specified by:
stopConnectorBinding in interface CoreRuntimeStateAdmin
Parameters:
identifier - identifier for ConnectorBinding
  • "*" - for all connector bindings in the system
  • "name*" - for all connector bindings that begin with given name
  • "name" - for single connector binding by the given name
stopNow - If true, stop the process forcefully. If false, wait until any pending work is done.
Throws:
AdminException - - if there's a system error.
Since:
4.3
See Also:
com.metamatrix.admin.api.server.ServerRuntimeStateAdmin#stopConnectorBinding(java.lang.String)

stopHost

public void stopHost(java.lang.String hostName,
                     boolean stopNow,
                     boolean waitUntilDone)
              throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Stop the Host for this cluster

Specified by:
stopHost in interface ServerRuntimeStateAdmin
Parameters:
hostName - the unique identifier for for a Host in the system.
stopNow - If true, stop the host forcefully. If false, wait until any pending work is done.
waitUntilDone - If true, this method waits until the operation is finished before returning. This may take a long time to complete. If false, this method returns immediately, even though the operation may not be finished.
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.stopHost(java.lang.String, boolean, boolean)

stopProcess

public void stopProcess(java.lang.String identifier,
                        boolean stopNow,
                        boolean waitUntilDone)
                 throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Stop Process running in the system.

Specified by:
stopProcess in interface ServerRuntimeStateAdmin
Parameters:
identifier - the unique identifier for for a ProcessObject in the system.
stopNow - a boolean value indicating whether to halt the process immediately or let it finish processing first.
waitUntilDone - If true, this method waits until the operation is finished before returning. This may take a long time to complete. If false, this method returns immediately, even though the operation may not be finished.
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.stopProcess(java.lang.String, boolean, boolean)

stopSystem

public void stopSystem()
                throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Stop the entire system.

Specified by:
stopSystem in interface ServerRuntimeStateAdmin
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.stopSystem()

bounceSystem

public void bounceSystem(boolean waitUntilDone)
                  throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Stop and restart the entire system.

Specified by:
bounceSystem in interface ServerRuntimeStateAdmin
Parameters:
waitUntilDone - Ignored: the waiting for this method is done in ServerAdminClientInterceptor on the client-side.
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.bounceSystem(boolean)

synchronizeSystem

public void synchronizeSystem(boolean waitUntilDone)
                       throws AdminException
Description copied from interface: ServerRuntimeStateAdmin
Synchronize the entire system. Synchronization will attempt to make the runtime state match the configuration.

Specified by:
synchronizeSystem in interface ServerRuntimeStateAdmin
Parameters:
waitUntilDone - If true, this method waits until the operation is finished before returning. This may take a long time to complete. If false, this method returns immediately, even though the operation may not be finished.
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
ServerRuntimeStateAdmin.synchronizeSystem(boolean)

clearCache

public void clearCache(java.lang.String cacheIdentifier)
                throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Clear the cache or caches specified by the cacheIdentifier.

Specified by:
clearCache in interface CoreRuntimeStateAdmin
Parameters:
cacheIdentifier - Cache name identifier Cache. No wild cards currently supported, must be explicit
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
CoreRuntimeStateAdmin.clearCache(java.lang.String)

terminateSession

public void terminateSession(java.lang.String identifier)
                      throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Terminate the Session

Specified by:
terminateSession in interface CoreRuntimeStateAdmin
Parameters:
identifier - Session Idenitfier Session. No wild cards currently supported, must be explicit
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
CoreRuntimeStateAdmin.terminateSession(java.lang.String)

changeVDBStatus

public void changeVDBStatus(java.lang.String name,
                            java.lang.String version,
                            int newStatus)
                     throws AdminException
Description copied from interface: CoreRuntimeStateAdmin
Change the status of a Deployed VDB

Specified by:
changeVDBStatus in interface CoreRuntimeStateAdmin
Parameters:
name - Name of the Virtial Database
version - Version of the Virtial Database
newStatus - Active, InActive, Delete
Throws:
AdminException - if there's a system error.
Since:
4.3
See Also:
CoreRuntimeStateAdmin.changeVDBStatus(java.lang.String, java.lang.String, int)


Copyright © 2009. All Rights Reserved.