Search in sources :

Example 41 with LocalizedMessage

use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.

the class CreateLayoutTask method getRollBackMessage.

public LocalizedMessage getRollBackMessage(IStateAccess stateAccess, Map properties) {
    Object[] args = { stateAccess.getInstanceName() };
    LocalizedMessage message = LocalizedMessage.get(LOC_TSK_MSG_DELETE_LAYOUT_ROLL_BACK, args);
    return message;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 42 with LocalizedMessage

use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.

the class CustomInstallDriver method displayAndLogInstallSummary.

public void displayAndLogInstallSummary(InstallLogger installLog) {
    ArrayList messageList = new ArrayList();
    messageList.add(getSummaryInfoHeaderMessage());
    messageList.add(getSummaryInfoHeaderMessageFmtLine());
    messageList.add(getProductInstanceNameMessage());
    messageList.add(getProductConfigFilePathMessage());
    messageList.add(getAgentConfigFilePathMessage());
    messageList.add(getProductAuditLogsPathMessage());
    messageList.add(getProductDebugLogsPathMessage());
    int count = messageList.size();
    printConsoleEmptyLine();
    printConsoleEmptyLine();
    installLog.getLogger().logEmptyLine();
    for (int i = 0; i < count; i++) {
        LocalizedMessage message = (LocalizedMessage) messageList.get(i);
        printConsoleMessage(message);
        installLog.getLogger().log(message);
    }
}
Also used : ArrayList(java.util.ArrayList) LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 43 with LocalizedMessage

use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.

the class CustomInstallDriver method getProductConfigFilePathMessage.

public LocalizedMessage getProductConfigFilePathMessage() {
    String productConfigFilePath = (String) getInstallState().getStateAccess().get(STR_CONFIG_FILE_PATH_TAG);
    Object[] args = { productConfigFilePath };
    LocalizedMessage message = LocalizedMessage.get(LOC_DR_MSG_PRODUCT_CONFIG_FILE_NAME, args);
    return message;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 44 with LocalizedMessage

use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.

the class CustomInstallDriver method getProductInstanceNameMessage.

public LocalizedMessage getProductInstanceNameMessage() {
    String instanceName = (String) getInstallState().getStateAccess().getInstanceName();
    Object[] args = { instanceName };
    LocalizedMessage message = LocalizedMessage.get(LOC_DR_MSG_PRODUCT_INSTANCE_NAME, args);
    return message;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 45 with LocalizedMessage

use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.

the class CustomInstallDriver method getProductDebugLogsPathMessage.

public LocalizedMessage getProductDebugLogsPathMessage() {
    String productDebugDirectory = (String) getInstallState().getStateAccess().get(STR_DEBUG_DIR_PREFIX_TAG);
    Object[] args = { productDebugDirectory };
    LocalizedMessage message = LocalizedMessage.get(LOC_DR_MSG_PRODUCT_DEBUG_DIR, args);
    return message;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Aggregations

LocalizedMessage (com.sun.identity.install.tools.util.LocalizedMessage)73 Map (java.util.Map)9 File (java.io.File)8 ArrayList (java.util.ArrayList)8 IOException (java.io.IOException)6 HashMap (java.util.HashMap)5 Iterator (java.util.Iterator)5 ConnectException (java.net.ConnectException)4 UnknownHostException (java.net.UnknownHostException)4 StringTokenizer (java.util.StringTokenizer)4 FileNotFoundException (java.io.FileNotFoundException)3 RESTUtils (com.sun.identity.install.tools.util.RESTUtils)2 BufferedReader (java.io.BufferedReader)2 MalformedURLException (java.net.MalformedURLException)2 URL (java.net.URL)2 URLConnection (java.net.URLConnection)2 TreeMap (java.util.TreeMap)2 Audit (com.sun.identity.install.tools.util.Audit)1 FileReader (java.io.FileReader)1 InputStream (java.io.InputStream)1