Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source.
   * Copyright 2011, Red Hat, Inc., and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 
 package org.jboss.as.host.controller;
 
 import java.io.File;
 import java.net.URL;
 
 
This module is using message IDs in the range 10800-10999. This file is using the subset 10940-10999 for host controller non-logger messages. See http://community.jboss.org/docs/DOC-16810 for the full list of currently reserved JBAS message id blocks.

Date: 05.11.2011

Author(s):
James R. Perkins
 
 @MessageBundle(projectCode = "JBAS")
 public interface HostControllerMessages {

    
The messages.
 
     HostControllerMessages MESSAGES = Messages.getBundle(HostControllerMessages.class);

    
A message indicating an argument was expected for the option.

Parameters:
option the option that expects the argument.
usageNote the output of method usageNote(java.lang.String)
Returns:
the message.
 
     @Message(id = 10940, value = "Argument expected for option %s. %s")
     String argumentExpected(String optionString usageNote);

    
Creates an exception indicating an attempt was made to set the attributeToSet when the attributeAlreadySet was already set.

Parameters:
attributeToSet the attribute to set.
attributeAlreadySet the attribute was already set.
Returns:
an java.lang.IllegalArgumentException for the error.
 
     @Message(id = 10941, value = "Attempting to set '%s' when '%s' was already set")
     IllegalArgumentException attemptingToSet(String attributeToSetString attributeAlreadySet);

    
Creates an exception indicating an inability to connect due to authentication failures.

Parameters:
cause the cause of the error.
Returns:
an java.lang.IllegalStateException for the error.
 
     @Message(id = 10942, value = "Unable to connect due to authentication failure.")
Creates an exception indicating the remote file repository cannot be accessed from the master domain controller.

Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10943, value = "Cannot access a remote file repository from the master domain controller")
Creates an exception indicating the inability to create a local directory.

Parameters:
path the directory that failed to create.
Returns:
an java.io.IOException for the error.
    @Message(id = 10944, value = "Unable to create local directory: %s")
Creates an exception indicating the default address cannot be obtained for communicating with the ProcessController.

Parameters:
cause the cause of the error.
defaultAddress the default address.
option the option.
Returns:
a java.lang.RuntimeException for the error.
    @Message(id = 10945, value = "Cannot obtain a valid default address for communicating with " +
            "the ProcessController using either %s or InetAddress.getLocalHost(). Please check your system's " +
            "network configuration or use the %s command line switch to configure a valid address")
    RuntimeException cannotObtainValidDefaultAddress(@Cause Throwable causeString defaultAddressString option);

    
A message indicating the server, represented by the serverName parameter, cannot restart as it is not currently started.

Parameters:
serverName the name of the server.
status the status of the server.
Returns:
the message.
    @Message(id = 10946, value = "Cannot restart server %s as it is not currently started; it is %s")
    String cannotRestartServer(String serverNameServerStatus status);

    
A message indicating the servers cannot start when the host controller is running in the mode represented by the mode parameter.

Parameters:
mode the running mode.
Returns:
the message.
    @Message(id = 10947, value = "Cannot start servers when the Host Controller running mode is %s")
Creates an exception indicating the close should be managed by the service.

Returns:
an java.lang.UnsupportedOperationException for the error.
    @Message(id = 10948, value = "Close should be managed by the service")
Creates an exception indicating the configuration persister for the domain model is already initialized.

Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10949, value = "Configuration persister for domain model is already initialized")
Creates an exception indicating an interruption while trying to connect to master.

Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10950, value = "Interrupted while trying to connect to master")
Creates an exception indicating the connection to master could not be completed within the number of retries and timeout.

Parameters:
cause the cause of the error.
retries the number of retries.
timeout the timeout in milliseconds..
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10951, value = "Could not connect to master in %d attempts within %s ms")
    IllegalStateException connectionToMasterTimeout(@Cause Throwable causeint retrieslong timeout);

    
Creates an exception indicating the server inventory could bot bre retrieved in the time.

Parameters:
time the time.
timeUnit the time unit.
Returns:
a java.lang.RuntimeException for the error.
    @Message(id = 10952, value = "Could not get the server inventory in %d %s")
    RuntimeException couldNotGetServerInventory(long timeString timeUnit);

    
Creates an exception indicating the entire file was not read.

Parameters:
missing the missing length.
Returns:
an java.io.IOException for the error.
    @Message(id = 10953, value = "Did not read the entire file. Missing: %d")
    IOException didNotReadEntireFile(long missing);

    
Creates an exception indicating there was an error closing down the host.

Parameters:
cause the cause of the host.
Returns:
a java.lang.RuntimeException for the error.
    @Message(id = 10954, value = "Error closing down host")
A message indicating a failure to retrieve the profile operations from the domain controller.

Returns:
the message.
    @Message(id = 10955, value = "Failed to retrieve profile operations from domain controller")
Creates an exception indicating a failure to get the file from a remote repository.

Parameters:
cause the cause of the error.
Returns:
a java.lang.RuntimeException for the error.
    @Message(id = 10956, value = "Failed to get file from remote repository")
A message indicating a failure to get the server status.

Returns:
the message.
    @Message(id = 10957, value = "Failed to get server status")
A message indicating a failure to read the authentication key.

Parameters:
cause the cause of the error.
Returns:
the message.
    @Message(id = 10958, value = "Failed to read authentication key: %s")
Creates an exception indicating there is already a connection for the host.

Parameters:
hostName the name of the host.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10959, value = "Already have a connection for host %s")
Creates an exception indicating the information provided could be not used to generate a hash.

Returns:
an javax.security.sasl.SaslException for the error.
    @Message(id = 10960, value = "Insufficient information to generate hash.")
A message indicating the option is invalid.

Parameters:
option the invalid option.
usageNote the output of method usageNote(java.lang.String)
Returns:
the message.
    @Message(id = 10961, value = "Invalid option '%s'. %s")
    String invalidOption(String optionString usageNote);

    
Creates an exception indicating an invalid root id.

Parameters:
rootId the invalid root id.
Returns:
a org.jboss.as.protocol.mgmt.RequestProcessingException for the error.
    @Message(id = 10962, value = "Invalid root id [%d]")
    RequestProcessingException invalidRootId(int rootId);

    
A message indicating the value is invalid.

Parameters:
name the name of the option.
type the type for the value.
value the value.
usageNote the output of method usageNote(java.lang.String)
Returns:
the message.
    @Message(id = 10963, value = "Value for %s is not an %s -- %s. %s")
    String invalidValue(String nameString typeObject valueString usageNote);

    
Creates an exception indicating invocations of the operation, represented by the name parameter, after HostController boot are not allowed.

Parameters:
name the name of the operation.
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10964, value = "Invocations of %s after HostController boot are not allowed")
Creates an exception indicating invocations of the operation after HostController boot are not allowed.

Parameters:
operation the operation.
Returns:
an java.lang.IllegalStateException for the error.
    String invocationNotAllowedAfterBoot(ModelNode operation);

    
A message indicating the provided for the option is malformed.

Parameters:
option the option.
usageNote the output of method usageNote(java.lang.String)
Returns:
the message.
    @Message(id = 10965, value = "Malformed URL provided for option %s. %s")
    String malformedUrl(String optionString usageNote);

    
Creates an exception indicating the need to call the method, represented by the methodName parameter, before checking the slave status.

Parameters:
methodName the name of the method to invoke.
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10966, value = "Must call %s before checking for slave status")
Creates an exception indicating the need to call the method, represented by the methodName parameter, before persisting the domain model.

Parameters:
methodName the name of the method to invoke.
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10967, value = "Must call %s before persisting the domain model")
Creates an exception indicating there is no channel for the host.

Parameters:
hostName the name of the host.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10968, value = "No channel for host %s")
Creates an exception indicating a host connecting to a remove domain controller must have its name attribute set.

Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10969, value = "A host connecting to a remote domain controller must have its name attribute set")
Creates an exception indicating there is no server inventory.

Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10970, value = "No server inventory")
Creates an exception indicating the property already exists.

Parameters:
name the name of the property.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10971, value = "Property %s already exists")
Creates an exception indicating the property does not exist.

Parameters:
name the name of the property.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10972, value = "Property %s does not exist")
Creates an exception indicating the value for the property is null.

Parameters:
name the name of the property.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10973, value = "Value for property %s is null")
Creates an exception indicating the property has a null value.

Parameters:
name the name of the property.
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10974, value = "Property %s has a null value")
Creates an exception indicating the variable name is null.

Parameters:
name the name of the variable.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10975, value = "%s is null")
    IllegalArgumentException nullVar(String name);

    
Creates an exception indicating there is already a registered server with the name represented by the serverName parameter.

Parameters:
serverName the name of the server.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10976, value = "There is already a registered server named '%s'")
A message indicating the server, represented by the name parameter, is still running.

Parameters:
name the name of the server.
Returns:
the message.
    @Message(id = 10977, value = "Server (%s) still running")
    String serverStillRunning(String name);

    
Creates an exception indicating the inability to generate the hash.

Parameters:
cause the cause of the error.
Returns:
an javax.security.sasl.SaslException for the error.
    @Message(id = 10978, value = "Unable to generate hash")
A message indicating the inability to load properties from the URL.

Parameters:
url the URL.
usageNote the output of method usageNote(java.lang.String)
Returns:
the message.
    @Message(id = 10979, value = "Unable to load properties from URL %s. %s")
    String unableToLoadProperties(URL urlString usageNote);

    
Creates an exception indicating the socket binding group for the server is undefined.

Parameters:
serverName the name of the server.
Returns:
an java.lang.IllegalArgumentException for the exception.
    @Message(id = 10980, value = "Undefined socket binding group for server %s")
Creates an exception indicating the socket binding group is undefined.

Parameters:
name the name of the group.
Returns:
an java.lang.IllegalStateException for the exception.
    @Message(id = 10981, value = "Included socket binding group %s is not defined")
Creates an exception indicating the service state was unexpected.

Parameters:
state the unexpected state.
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 10982, value = "Unexpected state %s")
Creates an exception indicating the value for the name is unknown.

Parameters:
name the name.
value the value.
Returns:
an java.lang.IllegalArgumentException for the error.
    @Message(id = 10983, value = "Unknown %s %s")
    IllegalArgumentException unknown(String nameObject value);

    
A message indicating the value is not a known host.

Parameters:
name the name of the option.
value the value.
usageNote the output of method usageNote(java.lang.String)
Returns:
the message.
    @Message(id = 10984, value = "Value for %s is not a known host -- %s. %s")
    String unknownHostValue(String nameObject valueString usageNote);

    
Creates an exception indicating the type is unrecognized.

Parameters:
type the unrecognized type.
Returns:
an java.io.IOException for the error.
    @Message(id = 10985, value = "unrecognized type %s")
    IOException unrecognizedType(byte type);

    
Creates an exception indication that the host controller was already shutdown.

Returns:
an java.lang.Exception for the error
    @Message(id = 10986, value = "Host-Controller is already shutdown.")
Creates an exception indicating no server group could be found with the given name

Parameters:
groupName the group name
Returns:
an org.jboss.as.controller.OperationFailedException for the error.
    @Message(id = 10987, value = "No server-group called: %s")
Creates an exception indicating no server group could be found with the given name

Parameters:
groupName the socket binding group name
Returns:
an org.jboss.as.controller.OperationFailedException for the error.
    @Message(id = 10988, value = "No socket-binding-group called: %s")
    @Message(id = 10989, value = "HostControllerEnvironment does not support system property updates")
    @Message(id = 10990, value = "Resources of type %s cannot be ignored")
    @Message(id = 10991, value = "An '%s' element whose '%s' attribute is has already been found")
    @Message(id = 10992, value = "The JVM input arguments cannot be accessed so system properties passed directly to this Host Controller JVM will not be passed through to server processes. Cause of the problem: %s")
    @Message(id = 10993, value = "Missing configuration value for: %s")
    @Message(id = 10994, value = "Home directory does not exist: %s")
    @Message(id = 10995, value = "Determined modules directory does not exist: %s")
    @Message(id = 10996, value = "Domain base directory does not exist: %s")
    @Message(id = 10997, value = "Domain base directory is not a directory: %s")
    @Message(id = 10998, value = "Configuration directory does not exist: %s")
    @Message(id = 10999, value = "Domain data directory is not a directory: %s")
    @Message(id = 16500, value = "Could not create domain data directory: %s")
    @Message(id = 16501, value = "Domain content directory is not a directory: %s")
    @Message(id = 16502, value = "Could not create domain content directory: %s")
    @Message(id = 16503, value = "Log directory is not a directory: %s")
    @Message(id = 16504, value = "Could not create log directory: %s")
    @Message(id = 16505, value = "Servers directory is not a directory: %s")
    @Message(id = 16506, value = "Could not create servers directory: %s")
    @Message(id = 16507, value = "Domain temp directory does not exist: %s")
    @Message(id = 16508, value = "Could not create domain temp directory: %s")
Creates an exception indicating an inability to connect due to a SSL failure.

Parameters:
cause the cause of the error.
Returns:
an java.lang.IllegalStateException for the error.
    @Message(id = 16509, value = "Unable to connect due to SSL failure.")
    @Message(id = 16510, value = "Option '%s' already exists")
    @Message(id = 16511, value = "Environment variable '%s' already exists")
    @Message(id = 16512, value="Host controller management version %s.%s is too old, Only %s.%s or higher are supported")
    OperationFailedException unsupportedManagementVersionForHost(int majorint minorint minMajorint minMinor);
    @Message(id = 16513, value="Failed to add extensions used by the domain. Failure description: %s")
    IllegalStateException failedToAddExtensions(ModelNode failureDescription);

    
Messaging indicating a command line argument that was supposed to be parseable into a key and value included no value

Parameters:
argument the argument provided by the user
usageNote the output of method usageNote(java.lang.String)
Returns:
the message
    @Message(id = 16514, value="Argument %s has no value. %s")
    String argumentHasNoValue(String argumentString usageNote);

    
Creates a simple instruction for how to get usage help. Intended to be appended to command line argument parsing error messages.

Parameters:
command the command (e.g. 'domain' or 'domain.sh') used to launch the process
Returns:
the usage note
    @Message(id = ., value="Use %s --help for information on valid command line arguments and their syntax.")
    String usageNote(String command);
    @Message(id=16515, value="Cannot access S3 file: %s")
    @Message(id=16516, value="Failed to obtain domain controller data from S3 file")
    @Message(id=16517, value="Cannot write domain controller data to S3 file: %s")
    @Message(id=16518, value="Cannot access S3 bucket '%s': %s")
    @Message(id=16519, value="Tried all domain controller discovery option(s) but unable to connect")
    @Message(id=16520, value="pre_signed_put_url and pre_signed_delete_url must have the same path")
    @Message(id=16521, value="pre_signed_put_url and pre_signed_delete_url must both be set or both unset")
    @Message(id=16522, value="pre-signed url %s must point to a file within a bucket")
    @Message(id=16523, value="pre-signed url %s is not a valid url")
    @Message(id=16524, value="pre-signed url %s may only have a subdirectory under a bucket")
    @Message(id=16525, value="Creating location-constrained bucket with unsupported calling-format")
    @Message(id=16526, value="Invalid location: %s")
    @Message(id=16527, value="Invalid bucket name: %s")
    @Message(id=16528, value="bucket '%s' could not be accessed (rsp=%d (%s)). Maybe the bucket is owned by somebody else or the authentication failed")
    IOException bucketAuthenticationFailure(String bucketint httpCodeString responseMessage);
    @Message(id=16529, value="Unexpected response: %s")
    @Message(id=16530, value="HTTP redirect support required")
    @Message(id=16531, value = "Unexpected error parsing bucket listing(s)")
    @Message(id=16532, value = "Couldn't initialize a SAX driver for the XMLReader")
    @Message(id=16533, value="Cannot instantiate discovery option class '%s': %s")
    @Message(id=16538, value="Invalid value for %s. Must only contain all of the existing discovery options")
    @Message(id=16539, value="Can't execute transactional operation '%s' from slave controller")
    @Message(id=16540, value="There is no resource called %s")
    // END WITH 16575
New to GrepCode? Check out our FAQ X