This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Conditionally import wlstModule only when script is executed with jython | |
if __name__ == '__main__': | |
from wlstModule import *#@UnusedWildImport | |
def configureCluster(clusterName, isUnicast): | |
cluster = getMBean('/Clusters/' + clusterName) | |
if cluster == None: | |
print 'Creating cluster ' + clusterName | |
cluster = create(clusterName, 'Cluster') |