#/*___INFO__MARK_BEGIN__*/
#/*************************************************************************
# *
# *  The Contents of this file are made available subject to the terms of
# *  the Sun Industry Standards Source License Version 1.2
# *
# *  Sun Microsystems Inc., March, 2001
# *
# *
# *  Sun Industry Standards Source License Version 1.2
# *  =================================================
# *  The contents of this file are subject to the Sun Industry Standards
# *  Source License Version 1.2 (the "License"); You may not use this file
# *  except in compliance with the License. You may obtain a copy of the
# *  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
# *
# *  Software provided under this License is provided on an "AS IS" basis,
# *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# *  See the License for the specific provisions governing your rights and
# *  obligations concerning the Software.
# *
# *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
# *
# *   Copyright: 2001 by Sun Microsystems, Inc.
# *
# *   All Rights Reserved.
# *
# ************************************************************************/
#/*___INFO__MARK_END__*/

###########################################################################
############################   DESCRIPTION   ##############################
###########################################################################
#The format is:
#<MESSAGE_NAME>.<COMMAND CLASS NAME>.<OPTION STRING>[.general|.default]=MSG
#
#Format of the MSG is:
# {0} - Option string (e.g.: -acal)
# {1} - Parsed option arguments (e.g.: for qconf -au ars => ars)
# {2} - "Usage: <CLIENT COMMAND NAME> -help"
# {3} - Content of the command help message
#
# General messages are just for testing and once seen should be replaced by 
# an option specific message. If default message is specified it has no 
# effect and this default message is displayed instead. Ideally should not 
# be displayed
# E.g.: InvalidObjectArgument.QConfCommand.generic=JGDI Error: Invalid object argument {1}
# 
# Default messages apply to the option if there is not option specific message.
#
# There has to be either default or generic error message for each message.
#
#Format for error codes is: 
#<MESSAGE_NAME>.<COMMAND CLASS NAME>.<OPTION STRING>.[default.]exitCode=<INT>
#
#If exitCode is not specified it's 0 = SUCCESS
#
# TEMPORAL SPECIAL CODES:
# 100  - JGDIException
# 1000 - Exception (Unknown exception)
###########################################################################



###########################################################################
###################   INVALID_ARGUMENT ERROR MESSAGES   ###################
# e.g.: qconf -ddd   <= -ddd is an invalid option argument
###########################################################################
#QCONF
######
InvalidArgument.QConfCommand.default=error: invalid option argument "{0}"\n{2}
InvalidArgument.QConfCommand.default.exitCode=1

######
#QSTAT
######
InvalidArgument.QStatCommand.default={3}
InvalidArgument.QStatCommand.default.exitCode=1
###########################################################################



###########################################################################
###############   INVALID_OBJECT_ARGUMENT ERROR MESSAGES   ################
# e.g.: qconf -mckpt test   <= when test does not exist
# e.g.: qconf -sconf test   <= when test does not exist
###########################################################################
#QCONF
######
#InvalidObjectArgument.QConfCommand.default={1} does not exit
InvalidObjectArgument.QConfCommand.generic=JGDI Error: Invalid object argument {1}
InvalidObjectArgument.QConfCommand.default.exitCode=1

InvalidObjectArgument.QConfCommand.-ae={1} is no exec host
InvalidObjectArgument.QConfCommand.-ahgrp=host group name "{1}" is not valid

InvalidObjectArgument.QConfCommand.-mcal={1} is not a calendar
InvalidObjectArgument.QConfCommand.-mckpt={1} is not a checkpointing interface definition
InvalidObjectArgument.QConfCommand.-Mckpt={1} is not a checkpointing interface definition
# TODO LP: Port this message to the client for -mconf
InvalidObjectArgument.QConfCommand.-mconf={1} is not a known hostname configuration
InvalidObjectArgument.QConfCommand.-me={1} is not an execution host
InvalidObjectArgument.QConfCommand.-mhgrp=Host group "{1}" does not exist
InvalidObjectArgument.QConfCommand.-mp={1} is not a parallel environment
InvalidObjectArgument.QConfCommand.-mprj={1} is not known as project
InvalidObjectArgument.QConfCommand.-Mprj={1} is not known as project
InvalidObjectArgument.QConfCommand.-Mu={1} is not known as user set
InvalidObjectArgument.QConfCommand.-muser={1} is not known as user
InvalidObjectArgument.QConfCommand.-Muser={1} is not known as user
InvalidObjectArgument.QConfCommand.-mq=Cluster queue entry "{1}" does not exist

InvalidObjectArgument.QConfCommand.-scal={1} is not a calendar
InvalidObjectArgument.QConfCommand.-sckpt={1} is not a checkpointing interface definition
InvalidObjectArgument.QConfCommand.-sconf=configuration {1} not defined
#TODO LP: Client also displays can't resolve hostname "rre" for non-existing hosts. Improve?
InvalidObjectArgument.QConfCommand.-se={1} is not an execution host
InvalidObjectArgument.QConfCommand.-shgrp=Host group "{1}" does not exist
InvalidObjectArgument.QConfCommand.-shgrp_tree=Host group "{1}" does not exist
InvalidObjectArgument.QConfCommand.-shgrp_resolved=Host group "{1}" does not exist
InvalidObjectArgument.QConfCommand.-sq=No cluster queue or queue instance matches the phrase "{1}"
InvalidObjectArgument.QConfCommand.-sp={1} is not a parallel environment
InvalidObjectArgument.QConfCommand.-sprj={1} is not known as project
InvalidObjectArgument.QConfCommand.-sq=No cluster queue or queue instance matches the phrase "{1}"
#TODO LP: I do not like this message at all! Let's improve it
InvalidObjectArgument.QConfCommand.-srqs=No resource quota set found
InvalidObjectArgument.QConfCommand.-su=denied: access list "{1}" does not exist
InvalidObjectArgument.QConfCommand.-suser={1} is not known as user

InvalidObjectArgument.QConfCommand.-du=access list "{1}" doesn't exist
InvalidObjectArgument.QConfCommand.-dul=denied: userset "{1}" does not exist
###########################################################################



###########################################################################
####################   NO_OBJECT_FOUND ERROR MESSAGES   ###################
# e.g.: qconf -srqsl   <= When no RQS defined an invalid option argument
# client return exit code=1 along with this message 
###########################################################################
#QCONF
######
NoObjectFound.QConfCommand.generic=JGDI Error: No object found
NoObjectFound.QConfCommand.default.exitCode=1
NoObjectFound.QConfCommand.-scall=no calendar defined
NoObjectFound.QConfCommand.-sckptl=no ckpt interface definition defined
NoObjectFound.QConfCommand.-sconfl=no config defined
NoObjectFound.QConfCommand.-sel=no execution host defined
NoObjectFound.QConfCommand.-secl=no event clients registered
NoObjectFound.QConfCommand.-sphgrpl=no host group list defined
NoObjectFound.QConfCommand.-spl=no parallel environment defined
NoObjectFound.QConfCommand.-sprjl=no project list defined
NoObjectFound.QConfCommand.-srqsl=no resource quota set list defined
NoObjectFound.QConfCommand.-sql=no cqueue list defined
NoObjectFound.QConfCommand.-ss=no submit host defined
NoObjectFound.QConfCommand.-sul=no userset list defined
NoObjectFound.QConfCommand.-suserl=no user list defined
###########################################################################



###########################################################################
####################   NO_ARGUMENT ERROR MESSAGES   #######################
# e.g.: qconf -au   <= -au expects 2 arguments
###########################################################################
#QCONF
######
NoArgument.QConfCommand.default=error: no option argument provided to "{0}"\n{3}
NoArgument.QConfCommand.default.exitCode=1
NoArgument.QConfCommand.-Mc=no file argument given

######
#QSTAT
######
NoArgument.QStatCommand.default=ERROR! {0} option must have argument
NoArgument.QStatCommand.default.exitCode=1
###########################################################################



###########################################################################
##################   LESS_ARGUMENTS ERROR MESSAGES   ######################
# Only for options with more than 1 mandatory arg. If 0 args supplied 
# NoArgument message is desplayed instead.
# e.g.: qconf -au arusers  <= -au expects 2 arguments
###########################################################################
#QCONF
######
LessArguments.QConfCommand.generic=JGDI Error: Less arguments
LessArguments.QConfCommand.default.exitCode=1
LessArguments.QConfCommand.-au=error: no list_name provided to "{0} {1}"\n{3}
LessArguments.QConfCommand.-du=error: no list_name provided to "{0} {1}"\n{3}
###########################################################################



##################   MORE_ARGUMENTS ERROR MESSAGES   ######################
# Only for options with more than 1 mandatory arg. If 0 args supplied 
# NoArgument message is desplayed instead.
# e.g.: qconf -sh host1,host2  <= --sh expects only 1 arg 
#       Note that qconf -sh host1 host2 would work
###########################################################################
#QCONF
######
MoreArguments.QConfCommand.generic=JGDI Error: More arguments
MoreArguments.QConfCommand.default.exitCode=1
###########################################################################



###########################################################################
##################   UNREACHABLE_HOST ERROR MESSAGES   ####################
# e.g.: qconf -as/-ah/-ae test  <= host test not reachable
# e.g.: qconf -me/-de test      <= host test not reachable
# e.g.: Since default exitCode is not spceified -ah, -as return 0 here
###########################################################################
#QCONF
######
UnreachableHost.QConfCommand.default=can''t resolve hostname "{1}"
UnreachableHost.QConfCommand.default.exitCode=1
UnreachableHost.QConfCommand.-ah.exitCode=0
#TODO LP: -ah has a bug should also return 1
###########################################################################



###########################################################################
####################   INVALID_FILE ERROR MESSAGES   ######################
# e.g.: qconf -Ae/-Me/-Ap invalidFile
# TODO LP: could be part of InvalidObjectArgument
###########################################################################
#QCONF
######
InvalidFile.QConfCommand.default=error reading in file
InvalidFile.QConfCommand.default.exitCode=1
InvalidFile.QConfCommand.-Ae=invalid format
InvalidFile.QConfCommand.-Mc=Complex attribute file "{1}" is not correct
InvalidFile.QConfCommand.-Mq=Cluster queue file "{1}" is not correct
###########################################################################


###########################################################################
##################   UNKNOWN_ATTRIBUTE ERROR MESSAGES   ###################
# e.g.: qconf -Ae/-Me/-Ap file (file contains unknown attributes)
###########################################################################
#QCONF
######
UnknownAttribute.QConfCommand.default=unknown attribute name "{1}"
UnknownAttribute.QConfCommand.default.exitCode=1
###########################################################################