AdminOperations MBean

Management interface for a miscellaneous set of admin functions


Operation Summary
voidaddNode(java.lang.String cellHost, java.lang.String cellPort)
           Add this node to a specified cell.
voidaddNodeWithOptions(java.lang.String cellHost, java.lang.String cellPort, java.lang.String options)
           Add this node to a specified cell.
voidremoveNode()
           Remove this node from the cell.
voidremoveNodeWithOptions(java.lang.String options)
           Remove this node from the cell.
java.lang.StringexpandVariable(java.lang.String variable)
           Expand the variable supplied and return the variable value in the current runtime context.
javax.management.AttributeListgetResourceAdapterFromRAR(java.lang.String rarPath, java.util.Hashtable props)
           Returns a list of JMX attributes corresponding to the Resource Adapter created from the RAR file specified.
voidextractArchive(java.lang.String archivePath, java.lang.String dest, int flag)
           Extracts the archive to destination directory specified.
voidconfigChanged(com.ibm.websphere.management.repository.ConfigRepositoryEvent event)
           config is changed
java.lang.ObjectgetTokenForNodeFederationOrRemoval()
           Method to make sure that only one addNode or removeNode is being done at a time.
booleancompleteNodeFederationOrRemoval(java.lang.Object token)
           Clears the addNode/removeNode flag which was set in {@link #beginNodeFederationOrRemoval}.
voidforceNodeFederationOrRemovalTokenReset()
           Forces the synchronization token for addNode and removeNode to be reset so that additional operations can be performed.

Operation Detail

addNode

public void addNode(java.lang.String cellHost, java.lang.String cellPort)
Add this node to a specified cell.
Parameters:
cellHost - Name of the host on which the Deployment Manager is executing.
cellPort - Number of the JMX port on which the Deployment Manager is listening.

addNodeWithOptions

public void addNodeWithOptions(java.lang.String cellHost, java.lang.String cellPort, java.lang.String options)
Add this node to a specified cell.
Parameters:
cellHost - Name of the host on which the Deployment Manager is executing.
cellPort - Number of the JMX port on which the Deployment Manager is listening.
options - Options to use for addNode; these are the same as the command line options.

removeNode

public void removeNode()
Remove this node from the cell.

removeNodeWithOptions

public void removeNodeWithOptions(java.lang.String options)
Remove this node from the cell.
Parameters:
options - Options to use for removeNode; these are the same as the command line options.

expandVariable

public java.lang.String expandVariable(java.lang.String variable)
Expand the variable supplied and return the variable value in the current runtime context.
Parameters:
variable - The variable string to be expanded.

getResourceAdapterFromRAR

public javax.management.AttributeList getResourceAdapterFromRAR(java.lang.String rarPath, java.util.Hashtable props)
Returns a list of JMX attributes corresponding to the Resource Adapter created from the RAR file specified.
Parameters:
rarPath - The RAR file path local to the node where MBean is running.
props - The hashtable .

extractArchive

public void extractArchive(java.lang.String archivePath, java.lang.String dest, int flag)
Extracts the archive to destination directory specified.
Parameters:
archivePath - The archive file path local to the node where MBean is running.
dest - The destination path local to the node where MBean is running.
flag - Expansion flags

configChanged

public void configChanged(com.ibm.websphere.management.repository.ConfigRepositoryEvent event)
config is changed
Parameters:
event - Config repository event

getTokenForNodeFederationOrRemoval

public java.lang.Object getTokenForNodeFederationOrRemoval()
Method to make sure that only one addNode or removeNode is being done at a time. If one is currently in progress, this method returns false, and the addNode or removeNode should fail. If it is not in progress, this method will return true, and the {@link #completeNodeFederationOrRemoval} method should be called when finished so other add/removeNodes can be performed. A token is returned.

completeNodeFederationOrRemoval

public boolean completeNodeFederationOrRemoval(java.lang.Object token)
Clears the addNode/removeNode flag which was set in {@link #beginNodeFederationOrRemoval}. Returns true if the token was accepted, false otherwise.
Parameters:
token - Token obtained from getTokenForNodeFederationOrRemoval method.

forceNodeFederationOrRemovalTokenReset

public void forceNodeFederationOrRemovalTokenReset()
Forces the synchronization token for addNode and removeNode to be reset so that additional operations can be performed. This should only be necessary if addNode was exited prematurely and you don't want to wait 30 minutes (token expiration time).

Copyright IBM Corp. 1996-2003