MSiteConfig Class Reference

Inherits com::webobjects::monitor::_private::MObject.

Collaboration diagram for MSiteConfig:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void _addApplication (MApplication newApplication)
void _addHost (MHost newHost)
void _addInstance (MInstance newInstance)
void _initApplicationsWithArray (NSArray anArray)
void _initHostsWithArray (NSArray anArray)
void _initInstancesWithArray (NSArray anArray)
void _removeApplication (MApplication anApplication)
void _removeHost (MHost aHost)
void _removeInstance (MInstance anInstance)
void _resetOldPassword ()
void _setOldPassword ()
void _setPassword (String value)
void addApplication_M (MApplication newApplication)
void addApplication_W (MApplication newApplication)
void addHost_M (MHost newHost)
void addHost_W (MHost newHost)
void addInstance_M (MInstance newInstance)
void addInstance_W (MInstance newInstance)
NSMutableArray< MInstanceaddInstances_M (MHost selectedHost, MApplication myApplication, int numberToAdd)
NSMutableArray< MApplicationapplicationArray ()
MApplication applicationWithName (String anAppName)
void archiveAdaptorConfig ()
void archiveSiteConfig ()
long autoRecoverInterval ()
void backup (String action)
Integer cnctTimeout ()
boolean comparePasswordWithPassword (String aString)
boolean compareStringWithPassword (String aString)
void dataHasChanged ()
NSDictionary dictionaryForArchive ()
Integer dormant ()
String emailReturnAddr ()
String encryptStringWithKey (String to_be_encrypted, String aKey)
void forceBackup (String reason)
String generateAdaptorConfigXML (boolean onlyIncludeRunningInstances, boolean shouldIncludeUnregisteredInstances)
String generateHttpWebObjectsConfig ()
String generateSiteConfigXML ()
boolean hasChanges ()
NSMutableArray< MHosthostArray ()
MHost hostWithAddress (InetAddress anAddress)
MHost hostWithName (String aHostName)
NSMutableArray< MInstanceinstanceArray ()
MInstance instanceWithHostAndPort (String name, InetAddress host, String port)
MInstance instanceWithHostnameAndPort (String hostName, Integer port)
MInstance instanceWithHostnameAndPort (String hostName, String port)
MInstance instanceWithHostnameAndPort (String hostAndPort)
MInstance instanceWithName (String anInstanceName)
boolean isPasswordRequired ()
MHost localHost ()
boolean localhostOrLoopbackHostExists ()
 MSiteConfig (NSDictionary xmlDict)
String password ()
NSDictionary< String,
NSMutableArray< String > > 
passwordDictionary ()
Integer poolsize ()
Integer recvBufSize ()
Integer recvTimeout ()
String redir ()
void removeApplication_M (MApplication anApplication)
void removeApplication_W (MApplication anApplication)
void removeHost_M (MHost aHost)
void removeHost_W (MHost aHost)
void removeInstance_M (MInstance anInstance)
void removeInstance_W (MInstance anInstance)
void removeInstances_M (MApplication application, NSArray< MInstance > instances)
void resetChanges ()
void resetPassword ()
Integer retries ()
void saveSiteConfig (File sc, String value, boolean compress)
String scheduler ()
Integer sendBufSize ()
Integer sendTimeout ()
Integer sequence ()
void setCnctTimeout (Integer value)
void setDormant (Integer value)
void setEmailReturnAddr (String value)
void setPassword (String value)
void setPoolsize (Integer value)
void setRecvBufSize (Integer value)
void setRecvTimeout (Integer value)
void setRedir (String value)
void setRetries (Integer value)
void setScheduler (String value)
void setSendBufSize (Integer value)
void setSendTimeout (Integer value)
void setSequence (Integer value)
void setSMTPhost (String value)
void setUrlVersion (Integer value)
void setViewRefreshEnabled (Boolean value)
void setViewRefreshRate (Integer value)
void setWoAdaptor (String value)
String SMTPhost ()
String toString ()
Integer urlVersion ()
Boolean viewRefreshEnabled ()
Integer viewRefreshRate ()
String woAdaptor ()

Static Public Member Functions

static String configDirectoryPath ()
static File fileForAdaptorConfig ()
static File fileForSiteConfig ()
static MSiteConfig getSiteConfigFromHostAndPort (String configHostName, int aPort) throws MonitorException
static long myrand ()
static String pathForAdaptorConfig ()
static String pathForSiteConfig ()
static MSiteConfig unarchiveSiteConfig (boolean isWotaskd)

Public Attributes

int _appIsDeadMultiplier
_NSThreadsafeMutableDictionary globalErrorDictionary = new _NSThreadsafeMutableDictionary(new NSMutableDictionary <Object, Object>())
_NSThreadsafeMutableArray hostErrorArray = new _NSThreadsafeMutableArray(new NSMutableArray<Object>())

Protected Attributes

boolean _hasChanges = true

Package Attributes

NSMutableArray _applicationArray = new NSMutableArray()
NSMutableArray _hostArray = new NSMutableArray()
NSMutableArray _instanceArray = new NSMutableArray()
MHost _localHost
InetAddress localHostAddress
String localHostName

Private Member Functions

void removeInstance_M (MInstance anInstance, boolean doBackup)

Static Private Member Functions

static void backupSiteConfig ()

Private Attributes

String _lastConfig
String _oldPassword = null
boolean _oldPasswordSet = false
NSMutableDictionary< String,
NSMutableArray< String > > 
_passwordDictionary

Static Private Attributes

static String _configDirectoryPath = null
static File _fileForAdaptorConfig = null
static File _fileForSiteConfig = null
static String _pathForAdaptorConfig = null
static String _pathForSiteConfig = null
static Random _randomGenerator = new Random()
static final Logger log = Logger.getLogger(MSiteConfig.class)


Constructor & Destructor Documentation

MSiteConfig ( NSDictionary  xmlDict  ) 


Member Function Documentation

void _addApplication ( MApplication  newApplication  ) 

void _addHost ( MHost  newHost  ) 

void _addInstance ( MInstance  newInstance  ) 

void _initApplicationsWithArray ( NSArray  anArray  ) 

void _initHostsWithArray ( NSArray  anArray  ) 

void _initInstancesWithArray ( NSArray  anArray  ) 

void _removeApplication ( MApplication  anApplication  ) 

void _removeHost ( MHost  aHost  ) 

void _removeInstance ( MInstance  anInstance  ) 

void _resetOldPassword (  ) 

void _setOldPassword (  ) 

void _setPassword ( String  value  ) 

void addApplication_M ( MApplication  newApplication  ) 

void addApplication_W ( MApplication  newApplication  ) 

void addHost_M ( MHost  newHost  ) 

void addHost_W ( MHost  newHost  ) 

void addInstance_M ( MInstance  newInstance  ) 

void addInstance_W ( MInstance  newInstance  ) 

NSMutableArray<MInstance> addInstances_M ( MHost  selectedHost,
MApplication  myApplication,
int  numberToAdd 
)

NSMutableArray<MApplication> applicationArray (  ) 

MApplication applicationWithName ( String  anAppName  ) 

void archiveAdaptorConfig (  ) 

void archiveSiteConfig (  ) 

long autoRecoverInterval (  ) 

void backup ( String  action  ) 

static void backupSiteConfig (  )  [static, private]

Integer cnctTimeout (  ) 

boolean comparePasswordWithPassword ( String  aString  ) 

boolean compareStringWithPassword ( String  aString  ) 

static String configDirectoryPath (  )  [static]

void dataHasChanged (  ) 

NSDictionary dictionaryForArchive (  ) 

Integer dormant (  ) 

String emailReturnAddr (  ) 

String encryptStringWithKey ( String  to_be_encrypted,
String  aKey 
)

static File fileForAdaptorConfig (  )  [static]

static File fileForSiteConfig (  )  [static]

void forceBackup ( String  reason  ) 

String generateAdaptorConfigXML ( boolean  onlyIncludeRunningInstances,
boolean  shouldIncludeUnregisteredInstances 
)

String generateHttpWebObjectsConfig (  ) 

String generateSiteConfigXML (  ) 

static MSiteConfig getSiteConfigFromHostAndPort ( String  configHostName,
int  aPort 
) throws MonitorException [static]

boolean hasChanges (  ) 

NSMutableArray<MHost> hostArray (  ) 

MHost hostWithAddress ( InetAddress  anAddress  ) 

MHost hostWithName ( String  aHostName  ) 

NSMutableArray<MInstance> instanceArray (  ) 

MInstance instanceWithHostAndPort ( String  name,
InetAddress  host,
String  port 
)

MInstance instanceWithHostnameAndPort ( String  hostName,
Integer  port 
)

MInstance instanceWithHostnameAndPort ( String  hostName,
String  port 
)

MInstance instanceWithHostnameAndPort ( String  hostAndPort  ) 

MInstance instanceWithName ( String  anInstanceName  ) 

boolean isPasswordRequired (  ) 

MHost localHost (  ) 

boolean localhostOrLoopbackHostExists (  ) 

static long myrand (  )  [static]

String password (  ) 

NSDictionary<String, NSMutableArray<String> > passwordDictionary (  ) 

static String pathForAdaptorConfig (  )  [static]

static String pathForSiteConfig (  )  [static]

Integer poolsize (  ) 

Integer recvBufSize (  ) 

Integer recvTimeout (  ) 

String redir (  ) 

void removeApplication_M ( MApplication  anApplication  ) 

void removeApplication_W ( MApplication  anApplication  ) 

void removeHost_M ( MHost  aHost  ) 

void removeHost_W ( MHost  aHost  ) 

void removeInstance_M ( MInstance  anInstance,
boolean  doBackup 
) [private]

void removeInstance_M ( MInstance  anInstance  ) 

void removeInstance_W ( MInstance  anInstance  ) 

void removeInstances_M ( MApplication  application,
NSArray< MInstance instances 
)

void resetChanges (  ) 

void resetPassword (  ) 

Integer retries (  ) 

void saveSiteConfig ( File  sc,
String  value,
boolean  compress 
)

String scheduler (  ) 

Integer sendBufSize (  ) 

Integer sendTimeout (  ) 

Integer sequence (  ) 

void setCnctTimeout ( Integer  value  ) 

void setDormant ( Integer  value  ) 

void setEmailReturnAddr ( String  value  ) 

void setPassword ( String  value  ) 

void setPoolsize ( Integer  value  ) 

void setRecvBufSize ( Integer  value  ) 

void setRecvTimeout ( Integer  value  ) 

void setRedir ( String  value  ) 

void setRetries ( Integer  value  ) 

void setScheduler ( String  value  ) 

void setSendBufSize ( Integer  value  ) 

void setSendTimeout ( Integer  value  ) 

void setSequence ( Integer  value  ) 

void setSMTPhost ( String  value  ) 

void setUrlVersion ( Integer  value  ) 

void setViewRefreshEnabled ( Boolean  value  ) 

void setViewRefreshRate ( Integer  value  ) 

void setWoAdaptor ( String  value  ) 

String SMTPhost (  ) 

String toString (  ) 

static MSiteConfig unarchiveSiteConfig ( boolean  isWotaskd  )  [static]

Integer urlVersion (  ) 

Boolean viewRefreshEnabled (  ) 

Integer viewRefreshRate (  ) 

String woAdaptor (  ) 


Member Data Documentation

String _configDirectoryPath = null [static, private]

File _fileForAdaptorConfig = null [static, private]

File _fileForSiteConfig = null [static, private]

boolean _hasChanges = true [protected]

String _lastConfig [private]

MHost _localHost [package]

String _oldPassword = null [private]

boolean _oldPasswordSet = false [private]

String _pathForAdaptorConfig = null [static, private]

String _pathForSiteConfig = null [static, private]

Random _randomGenerator = new Random() [static, private]

_NSThreadsafeMutableDictionary globalErrorDictionary = new _NSThreadsafeMutableDictionary(new NSMutableDictionary <Object, Object>())

_NSThreadsafeMutableArray hostErrorArray = new _NSThreadsafeMutableArray(new NSMutableArray<Object>())

InetAddress localHostAddress [package]

String localHostName [package]

final Logger log = Logger.getLogger(MSiteConfig.class) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:33 2012 for Project Wonder by  doxygen 1.5.8