| Installing Upgrading Designing Configuring Deploying Monitoring Administering Troubleshooting Reference JBI Components | |
| Close Print View | |
| Reference: CAPSManagementClientFactory Definition |
|
Java CAPS Management and Monitoring APIs
To Start Using APIs to Create Applications
Connecting to the Server Through APIs
Services -- JavaCAPSManagementAPI
Performance Measurement Service
Master Data Management (MDM) Service
Sun Adapters Management Service
Target Option Behavior for the Management Client
Writing Java Code to Access APIs Using Java Code Samples
To Set Up a Database Using Enterprise Manager
To Set Up a Database Using a Scripting Utility
Using Oracle and Other Databases for Alert Persistence
To Set Up an Oracle Database for Alert Persistence
Downloading, Installing, and Setting Up A Scripting Environment
Setting Up a Scripting Environment to Invoke Java CAPS Management and Monitoring APIs
To Modify the Environment Variables in env.bat
Using a Scripting Language to Exercise the Java CAPS Management and Monitoring APIs
Exercising the Administration Service
Exercising the Configuration Service
Exercising the Deployment Service
Exercising the Installation Service
Exercising the Runtime Management Service
Exercising the JMS Management Service
Exercising the BPEL Management Service
Exercising the HTTP Administration Service
Exercising the Notification Service
JRuby Integrated into NetBeans IDE
Understanding Sun Master Index Configuration Options (Repository)
Understanding Sun Master Index Processing (Repository)
Understanding the Sun Match Engine
Understanding the Business Rules Method Palette
What's New in the Sun TCP/IP HL7 Adapter
Sun Master Data Management Suite Primer
Understanding Sun Master Index Configuration Options
Understanding the Master Index Match Engine
Understanding the Master Index Standardization Engine
United States Patient Solution Using MDM
/** Only relevant piece of code is shown */
public class CAPSManagementClientFactory {
// Option 1 - host, port, userName, password
public static CAPSManagementClient getInstance(String hostName, int portNumber,
String userName, String password) throws ManagementRemoteException {
// ... Implementation ...
}
// Option 2 - host, port, userName, password, connectionType
public static CAPSManagementClient getInstance(String hostName, int portNumber,
String userName, String password, ConnectionType connectionType)
throws ManagementRemoteException {
// ... Implementation ...
}
// Option 3 - url, userName, password, isRemoteConnection
public static CAPSManagementClient getInstance(String url, String userName,
String password, boolean isRemoteConnection) throws
ManagementRemoteException {
// ... Implementation ...
}
// Option 4 - MBeanServerConnection
public static CAPSManagementClient getInstance(MBeanServerConnection connection)
throws ManagementRemoteException {
// ... Implementation ...
}
// Option 5 - MBeanServerConnection, isRemoteConnection
public static CAPSManagementClient getInstance(MBeanServerConnection connection,
boolean isRemoteConnection) throws ManagementRemoteException {
// ... Implementation ...
}
// Option 6 - host, port, userName, password, connectionType,
promtUserForMasterPassword(true/false)
public static CAPSManagementClient getInstance(String hostName, int portNumber,
String userName, String password, ConnectionType connectionType,
boolean promptForPasswordFlag) throws ManagementRemoteException {
// ... Implementation ...
}
// Option 7 - hostName, portNumber, userName, password, connectionType,
keyStoreFileLocation,
// masterPassword, promptForMasterPassword (true/false)
public static CAPSManagementClient getInstance(String hostName, int portNumber,
String userName, String password, ConnectionType connectionType,
String trustStoreFilePath, String trustStorePassword,
boolean promptForPasswordFlag) throws ManagementRemoteException {
// ... Implementation ...
}
}
Note - The Java CAPS Management API samples that are pertinent to this topic, such
as AdministrationServiceSample.groovy, are included with the delivery as zipped files.