рдЕрдкрдиреЗ рдкрд░реАрдХреНрд╖рдг рдХрд╛рд░реНрдпреЛрдВ рдХреЗ рд▓рд┐рдП рдЖрдИрдмреАрдПрдо рддрд░реНрдХрд╕рдВрдЧрдд рдкрд░реАрдХреНрд╖рдг рдкреНрд░рдмрдВрдзрдХ / рд░реЛрдмреЛрдЯ рдХреЛ рд▓рд╛рдЧреВ рдХрд░рдиреЗ рдХрд╛ рджреВрд╕рд░рд╛ рддрд░реАрдХрд╛

рдкреНрд░рд╕реНрддрд╛рд╡рдирд╛





рдореБрдЭреЗ рдХрд╣рдирд╛ рд╣реЛрдЧрд╛ рдХрд┐ рдЗрд╕ рд╡рд┐рд╖рдп рдиреЗ рдХреНрдпрд╛ рдЦреЛрд▓рд╛ред рдореИрдВ рдЕрдкрдиреЗ рдЬреАрд╡рди рдореЗрдВ рдПрдХ рдбреЗрд╡рд▓рдкрд░ рд╣реВрдВ, рдореИрдВ рдРрд╕рд╛ рдкрд░реАрдХреНрд╖рдг рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реВрдВред рд▓реЗрдХрд┐рди рдпрд╣рд╛рдВ рднрд╛рдЧреНрдп рдХрд╛ рдореЛрдбрд╝ рд╣реИ рдФрд░ рдореБрдЭреЗ рдПрдХ рдкрд░реАрдХреНрд╖рдг рдкреНрд░рдгрд╛рд▓реА рдкрд░ рдХрд╛рдо рдХрд░рдирд╛ рдерд╛ред



рдореИрдВ рдПрдХ рджреВрд░рд╕рдВрдЪрд╛рд░ рдХрдВрдкрдиреА рдХреЗ рд▓рд┐рдП рдХрд╛рдо рдХрд░рддрд╛ рд╣реВрдВ, рдпрд╣ рдПрдХ рдореЛрдмрд╛рдЗрд▓ рдСрдкрд░реЗрдЯрд░ рд╣реИред рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рд╡рд╣рд╛рдВ рд╡рд┐рднрд┐рдиреНрди рд╡рд╛рдгрд┐рдЬреНрдпрд┐рдХ рдкреНрд░рд╕реНрддрд╛рд╡реЛрдВ рдХрд╛ рдЕрдкрдирд╛ рд╡рд┐рдХрд╛рд╕ рд╣реИ рдФрд░ рд╣рдордиреЗ рдЗрд╕ рд╡рд┐рдХрд╛рд╕ рдХрд╛ рдкрд░реАрдХреНрд╖рдг рдХрд┐рдпрд╛ рд╣реИред рдЬреИрд╕рд╛ рдХрд┐ рдЖрдк рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рд╕рдордЭ рдЪреБрдХреЗ рд╣реИрдВ, рдХреНрд░рдорд╢рдГ рд╡рд┐рд╢рд┐рд╖реНрдЯ рд╡рд┐рдХрд╛рд╕ рдФрд░ рдкрд░реАрдХреНрд╖рдг рднреА рдЕрдЬреАрдм рд╣реИрдВред



рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рдЕрдкрдиреЗ рдкрд░реАрдХреНрд╖рдг рд╕реНрд╡рдЪрд╛рд▓рди рдХреЗ рддрд░реАрдХреЗ рдереЗред рдпреЗ рдЧреНрд░рд╛рд╣рдХ рдХреЙрд▓ рдЦрд╛рддреЛрдВ рдХреЗ рдЬрдирдХ рд╣реИрдВ, рдпреЗ рд╕реНрд╡рд┐рдЪрд┐рдВрдЧ рдЧреНрд░рдВрдерд┐рдпреЛрдВ рдХреЗ рдПрдореБрд▓реЗрдЯрд░ рд╣реИрдВ, рдпреЗ рдмрд┐рд▓рд┐рдВрдЧ рдбреЗрдЯрд╛рдмреЗрд╕ рд╕реЗ рдЬрдВрдЧрд▓реА рдирдореВрдиреЗ рд╣реИрдВред рдмрд╣реБрдд рд╕рд╛рд░реА рдЪреАрдЬреЗрдВред



рдкреНрд░рдмрдВрдзрди рдиреЗ рдЗрд╕ рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХреЛ рдХреБрдЫ рдкреНрд░рдХреНрд░рд┐рдпрд╛рдУрдВ рдХреЗ рд░реВрдк рдореЗрдВ рдкреНрд░рд╕реНрддреБрдд рдХрд░рдиреЗ рдХреЗ рд╡рд┐рдЪрд╛рд░ рдХреЗ рд╕рд╛рде рдЖрдпрд╛, рдЬреЛ рдПрдХ рдирд┐рд╢реНрдЪрд┐рдд рдЙрдкрдХрд░рдг рд╣реИ рдЬрд┐рд╕рдиреЗ рджреБрдирд┐рдпрд╛ рдореЗрдВ рдЦреБрдж рдХреЛ рд╕рд╛рдмрд┐рдд рдХрд┐рдпрд╛ рд╣реИред рдЦреИрд░, рдПрдХ рд▓рдВрдмреА рдХрд╣рд╛рдиреА рд╣реИред рд╣рдордиреЗ рдЖрдИрдмреАрдПрдо рддрд░реНрдХрд╕рдВрдЧрдд рдЙрддреНрдкрд╛рджреЛрдВ рдХреЛ рдЪреБрдирд╛ред



рдореИрдВ рдпрд╣рд╛рдВ рдЗрд╕ рд▓рдХреНрд╖реНрдп рд╕реЗ рдЖрдХрд░реНрд╖рд┐рдд рд╣реБрдЖ рдерд╛ рдХрд┐ рдореИрдВ рдЗрд╕ рдкреНрд░рдгрд╛рд▓реА рдХреЛ рд╣рдорд╛рд░реЗ рд╕рд╛рдордиреЗ рд▓рд╛рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХрд░рддрд╛ рд╣реВрдВ рдФрд░ рд╕рдмрд╕реЗ рдорд╣рддреНрд╡рдкреВрд░реНрдг рд░реВрдк рд╕реЗ рдЗрд╕реЗ рдмрд┐рд▓рд┐рдВрдЧ рдХреЗ рд╕рд╛рде рдПрдХреАрдХреГрдд рдХрд░рддрд╛ рд╣реВрдВред



рдИрдорд╛рдирджрд╛рд░реА рд╕реЗ, рдореИрдВ рд╕рд┐рд╕реНрдЯрдо рд╕реЗ рдкрд░рд┐рдЪрд┐рдд рдирд╣реАрдВ рд╣реВрдВ рдФрд░ рдХрдИ рдЪреАрдЬреЗрдВ рд╕реАрдЦреАрдВ, рдЗрд╕рд▓рд┐рдП рдмреЛрд▓рдиреЗ рдХреЗ рд▓рд┐рдП, рдЦрд░реЛрдВрдЪ рд╕реЗред рджреВрд╕рд░реЛрдВ рдХреЗ рд▓рд┐рдП рдЬреАрд╡рди рдЖрд╕рд╛рди рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП рдореЗрд░реЗ рд▓рд┐рдП рдЕрдкрдиреЗ рд░рд╛рд╕реНрддреЗ рдХреЛ рд░реЗрдЦрд╛рдВрдХрд┐рдд рдХрд░рдирд╛ рджрд┐рд▓рдЪрд╕реНрдк рд╣реИ - рдпрд╣ рдПрдХ, рджреЛ рд╣реИ - рдЬреЛ рдЕрдиреБрднрд╡реА рдХреЙрдорд░реЗрдб рдореБрдЭреЗ рдкреНрд░рддрд┐рдХреНрд░рд┐рдпрд╛ рджреЗрдирд╛ рдЪрд╛рд╣рд┐рдПред рдФрд░ рддреАрди рдореЗрд░реЗ рдЫреЛрдЯреЗ рд╕реЗ рджрдВрдЧрд╛ рд╣реИред рдореИрдВрдиреЗ рдлреИрд╕рд▓рд╛ рдХрд┐рдпрд╛ рдХрд┐ рд╣рдо рдЖрдИрдЖрд░ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдкрд░реАрдХреНрд╖рдг рдирд╣реАрдВ рдХрд░реЗрдВрдЧреЗ, рд▓реЗрдХрд┐рди рд╣рдо рдЗрд╕ рдЪреАрдЬ рдХрд╛ рдЙрдкрдпреЛрдЧ рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ рдкрд░реАрдХреНрд╖рдг рдХреЗ рдЖрдпреЛрдЬрди рдХреЗ рд▓рд┐рдП рдХрд░реЗрдВрдЧреЗред





рд╡рд┐рдХрд╛рд╕ рдХрд╛ рдкрд░реАрдХреНрд╖рдг рдХрд░реЗрдВ





рдЗрд╕рд▓рд┐рдП, рдЖрдИрдмреАрдПрдо рдХреЗ рд╕рд╣рдпреЛрдЧрд┐рдпреЛрдВ рдиреЗ рд╣рдореЗрдВ рдкрд╛рдВрдЪ рдЪрд░рдгреЛрдВ рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рдЬрд╛рдиреЗ рдХреА рдкреЗрд╢рдХрд╢ рдХреА: рдпреЛрдЬрдирд╛, рдбрд┐рдЬрд╛рдЗрди, рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди, рдирд┐рд╖реНрдкрд╛рджрди, рд╡рд┐рд╢реНрд▓реЗрд╖рдгред



рдкрд░реАрдХреНрд╖рдг рд╡рд╕реНрддреБ рдХреЗ рд▓рд┐рдП рдЖрд╡рд╢реНрдпрдХрддрд╛рдУрдВ рдХреА рдпрд╣ рдкрд░рд┐рднрд╛рд╖рд╛, рддрдерд╛рдХрдерд┐рдд TestInput s рдХреА рдШреЛрд╖рдгрд╛ред рдЖрд╡рд╢реНрдпрдХрддрд╛рдУрдВ рдХрд╛ рдкрд░реАрдХреНрд╖рдг рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, TestCase s рдмрдирд╛рдП рдЬрд╛рддреЗ рд╣реИрдВ, рдЬреЛ рдмрджрд▓реЗ рдореЗрдВ TestPlan s рдореЗрдВ рд╕реНрдерд┐рдд TestFolder s рдореЗрдВ рд╕рдВрдЧреНрд░рд╣реАрдд рдХрд┐рдП рдЬрд╛рддреЗ рд╣реИрдВред



рдЬрдм рд╣рдорд╛рд░реЗ рдкрд╛рд╕ рдкрд░реАрдХреНрд╖рдг рдХреЗ рдорд╛рдорд▓реЗ рдФрд░ рдЖрд╡рд╢реНрдпрдХрддрд╛рдПрдВ рд╣реЛрддреА рд╣реИрдВ, рддреЛ рд╣рдо рдЙрдирдХреЗ рдмреАрдЪ рд╕рдВрдмрдВрдз рдмрдирд╛ рд╕рдХрддреЗ рд╣реИрдВред рдЗрд╕ рдкреНрд░рдХрд╛рд░, рд╣рдо рдкрд░реАрдХреНрд╖рдг рд╡рд╕реНрддреБ рдХреЗ рд▓рд┐рдП рдЖрд╡рд╢реНрдпрдХрддрд╛рдУрдВ рдХреЗ рдХрд╡рд░реЗрдЬ рдХрд╛ рдирд┐рд░реНрдзрд╛рд░рдг рдХрд░рддреЗ рд╣реИрдВред рдЖрдЙрдЯрдкреБрдЯ рдПрдХ рддрд╕реНрд╡реАрд░ рд╣реЛрдЧреА рдЬрд┐рд╕рдореЗрдВ рд╕реЗ рд╣рдо рджреЗрдЦ рд╕рдХрддреЗ рд╣реИрдВ рдХрд┐ рд╣рдо рдкрд░реАрдХреНрд╖рдг рдХрд░рдирд╛ рдЪрд╛рд╣рддреЗ рдереЗ, рд╣рдордиреЗ рдХреНрдпрд╛ рдкрд░реАрдХреНрд╖рдг рдХрд┐рдпрд╛, рдХреНрдпрд╛ рдЕрдЪреНрдЫрд╛ рд╣реБрдЖ, рдХреНрдпрд╛ рдирд╣реАрдВ, рдФрд░ рдХреНрдпрд╛ рд╣рдордиреЗ рдкрд░реАрдХреНрд╖рдг рдХрд░рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рднреА рдирд╣реАрдВ рдХреАред



рдЗрд╕ рдкреВрд░реЗ рдврд╛рдВрдЪреЗ рдХреА рдкрд░рд┐рднрд╛рд╖рд╛ рдпреЛрдЬрдирд╛ рдФрд░ рдбрд┐рдЬрд╛рдЗрди рд╣реИред рджреЛрдиреЛрдВ рдЪрд░рдгреЛрдВ рдХреЗ рдмреАрдЪ рдХреЛрдИ рд╡рд┐рд╢реЗрд╖ рд╡реНрдпрд╛рд╡рд╣рд╛рд░рд┐рдХ рдЕрдВрддрд░ рдирд╣реАрдВ рд╣реИред рдЗрд╕ рд╕рдВрд░рдЪрдирд╛ рдХреЗ рдирд┐рд░реНрдорд╛рдг рдХреА рдпреЛрдЬрдирд╛ рдмрдирд╛ рд░рд╣реА рд╣реИ, рдФрд░ рдбрд┐рдЬрд╛рдЗрдирд┐рдВрдЧ рдЗрд╕ рд╕рдВрд░рдЪрдирд╛ рдХреЗ рдЬреНрдЮрд╛рди рдХреЗ рдХреНрд╖реЗрддреНрд░ рдХреЗ рднреАрддрд░ рд╡рд┐рд╢реЗрд╖ рдЕрд░реНрде рдХреЛ рдЬреЛрдбрд╝ рд░рд╣реА рд╣реИ рдЬрд┐рд╕рдореЗрдВ рдкрд░реАрдХреНрд╖рдг рд╡рд╕реНрддреБ рд╕реНрдерд┐рдд рд╣реИред



рдЯреЗрд╕реНрдЯ рдорд╛рдорд▓реЛрдВ рдХрд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рд╕реНрд╡рдпрдВ рд╣реЛрддрд╛ рд╣реИред рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдореИрдиреБрдЕрд▓ ( рдореИрдиреБрдЕрд▓ ) рдпрд╛ рд╕реНрд╡рдЪрд╛рд▓рд┐рдд ( рд╕реНрд╡рдЪрд╛рд▓рд┐рдд ) рд╣реЛ рд╕рдХрддрд╛ рд╣реИред рдореИрдиреБрдЕрд▓ рдЙрди рдХрд╛рд░реНрдпреЛрдВ рдХреА рдПрдХ рд╕реВрдЪреА рд╣реИ рдЬреЛ рдкрд░реАрдХреНрд╖рдХ рджреЗрдЦреЗрдВрдЧреЗред рд╡рд╣ рдПрдХ рд╡реНрдпрдХреНрддрд┐ рд╣реИ, рд╡рд╣ рдкрдврд╝рддрд╛ рд╣реИ рдХрд┐ рдХреНрдпрд╛ рдХрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП рдФрд░ / рдпрд╛ рдЬрд╛рдБрдЪ рдХреА рдЬрд╛рдиреА рдЪрд╛рд╣рд┐рдП, рд╡рд╣ рд╢реБрджреНрдзрддрд╛ рдХреА рдХрд╕реМрдЯреА рдХреЛ рджреЗрдЦрддрд╛ рд╣реИред рдФрд░ рд╡рд╣ рдпрд╣ рд╕рдм рдХрд░рддрд╛ рд╣реИ рдЬреИрд╕рд╛ рд╡рд╣ рдХрд░ рд╕рдХрддрд╛ рд╣реИред рд╕реНрд╡рдЪрд╛рд▓рд┐рдд рдПрдХ рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЙрд▓ рд╣реИред рдпрд╣ рдЙрддреНрд╕реБрдХ рд╣реИ, рд▓реЗрдХрд┐рди рд╣рдо рдереЛрдбрд╝реА рджреЗрд░ рдмрд╛рдж рдЗрд╕ рдкрд░ рд▓реМрдЯ рдЖрдПрдВрдЧреЗред



рд╣рдордиреЗ рдкрд░реАрдХреНрд╖рдг рд▓рд╛рдЧреВ рдХрд░ рджрд┐рдП рд╣реИрдВред рдЕрдм рдЗрдиреНрд╣реЗрдВ рд▓реЙрдиреНрдЪ рдХрд░рдиреЗ рдХреА рдЬрд░реВрд░рдд рд╣реИред рдкрд░реАрдХреНрд╖рдг рдЪрд▓рд╛рдиреЗ рдХреЗ рд▓рд┐рдП, рдкрд░реАрдХреНрд╖рдг рд░рди рдкреИрд░рд╛рдореАрдЯрд░ рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП, рдПрдХ рд╕реВрдЯ рдмрдирд╛рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ (рдЗрдореЛрдЯрд┐рдХреЙрдиреНрд╕ рд╕реЗрдЯ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ), рдореИрдВ рд╕реВрдЯ ( рд╕реВрдЯ ) рдХрд╣рдирд╛ рдЪрд╛рд╣рддрд╛ рдерд╛ред рд╕реБрдЗрдЯ рдореЗрдВ рдЙрдирдХреЗ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдХреЗ рд▓рд┐рдП рдорд╛рдорд▓реЗ рдФрд░ рд╢рд░реНрддреЗрдВ рд╢рд╛рдорд┐рд▓ рд╣реИрдВред рдЕрднреА рднреА рдмрд╣реБрдд рдХреБрдЫ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рдирд╛ рд╣реИред рд╕рд╛рдорд╛рдиреНрдп рддреМрд░ рдкрд░, рдЙрдиреНрд╣реЛрдВрдиреЗ рдПрдХ рд╕реВрдЯ рдмрдирд╛рдпрд╛, рдЗрд╕реЗ рд▓реЙрдиреНрдЪ рдХрд┐рдпрд╛ред рд╕рд┐рд╕реНрдЯрдо рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдЪрд▓рд╛рдПрдЧрд╛ рдФрд░ / рдпрд╛ рдкрд░реАрдХреНрд╖рдХ рдЪрд┐рддреНрд░реЛрдВ рдХреЛ рдХрд╛рд░реНрд░рд╡рд╛рдИ рдХреЗ рдирд┐рд░реНрджреЗрд╢реЛрдВ рдХреЗ рд╕рд╛рде рджрд┐рдЦрд╛рдПрдЧрд╛ред



рдЬрдм рд╕рдм рдХреБрдЫ рд╕рдорд╛рдкреНрдд рд╣реЛ рдЬрд╛рддрд╛ рд╣реИ, рддреЛ рд╕рд┐рд╕реНрдЯрдо рд╣рдореЗрдВ рдЪреЗрддрд╛рд╡рдиреА, рдЕрд╕рдлрд▓рддрд╛рдУрдВ рдФрд░ рд╕рдлрд▓рддрд╛рдУрдВ рдХреЗ рд╕реБрдВрджрд░ рдиреЛрдЯреЛрдВ рдХреЗ рд╕рд╛рде рдПрдХ рд▓реЙрдЧ рджрд┐рдЦрд╛рдПрдЧрд╛ред рдпрд╣ рд╕рдм рд╡реНрдпрд╡рд╕рд╛рдп рдХрдИ рд░рд┐рдкреЛрд░реНрдЯ рдореЗрдВ рдЦреВрдмрд╕реВрд░рддреА рд╕реЗ рджреЗрдЦрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ рдпрд╛ рдЖрдкрдХреА рд░рд┐рдкреЛрд░реНрдЯ рдореЗрдВ рдХрд▓рд╛рддреНрдордХ рд░реВрдк рд╕реЗ рд╕рдВрд╕рд╛рдзрд┐рдд рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред рдЖрдк рдХреНрд░рд┐рд╕реНрдЯрд▓ рд░рд┐рдкреЛрд░реНрдЯ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдЕрдкрдиреА рд░рд┐рдкреЛрд░реНрдЯ рдмрдирд╛ рд╕рдХрддреЗ рд╣реИрдВред рдпрд╣ рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рдкрд░рд┐рдгрд╛рдореЛрдВ рдХрд╛ рдЖрдХрд▓рди рд╣реИред рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ, рдкрд░рд┐рдгрд╛рдо рдХрд╛ рдЙрдкрдпреЛрдЧ рдЖрд╡рд╢реНрдпрдХрддрд╛рдУрдВ рдХреЗ рдПрдХ рдмрдпрд╛рди рдХреЗ рд░реВрдк рдореЗрдВ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ, рдЕрд░реНрдерд╛рдд рдпрд╣рд╛рдВ рд╕реЗ рд╣рдо рдлрд┐рд░ рд╕реЗ рдкрд╣рд▓реЗ рдЪрд░рдг рдкрд░ рдЬрд╛ рд╕рдХрддреЗ рд╣реИрдВред



рдкреНрд░рд▓реЗрдЦрди рд╕реЗ рдЪрд┐рддреНрд░ред



рдЫрд╡рд┐



рдЗрд╕рд▓рд┐рдП рд╣рдо рдкрд╛рдБрдЪ рдЪрд░рдгреЛрдВ рд╕реЗ рдЧреБрдЬрд░реЗред рдЗрд╕ рдкреНрд░рдгрд╛рд▓реА рдореЗрдВ рдкрд░реАрдХреНрд╖рдг рдХреИрд╕реЗ рджрд┐рдЦрддреЗ рд╣реИрдВред рддреЛ рдореИрдВрдиреЗ рдЙрдиреНрд╣реЗрдВ рджреЗрдЦрд╛ред



рд╕реНрд╡рдЪрд╛рд▓рди





IR рдореЗрдВ рд╕реНрдХреНрд░рд┐рдкреНрдЯрд┐рдВрдЧ рдЯреВрд▓ рдХрд╛ рдПрдХ рд╕рдореВрд╣ рд╣реИред рдпрд╣рд╛рдВ рдЖрдк GUIScript, VisualBasic, Vuscript, Java, рдХрдорд╛рдВрдб рд▓рд╛рдЗрди рдФрд░ рдХреБрдЫ рдФрд░ рдореЗрдВ рд╕реНрдХреНрд░рд┐рдкреНрдЯ рд▓рд┐рдЦ рд╕рдХрддреЗ рд╣реИрдВред рдЖрдЗрдП рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЛ рдЖрдкрдХреЛ рдбрд░рд╛рдПрдВ рдирд╣реАрдВ, рдЖрдИрдЖрд░ рдореЗрдВ рдпрд╣ рдПрдХ рдмрд╣реБрдд рд╣реА рдирд┐рд╢реНрдЪрд┐рдд рд╢рдмреНрдж рд╣реИ, рдЗрд╕рдХрд╛ рдкреНрд░реЛрдЧреНрд░рд╛рдорд┐рдВрдЧ рднрд╛рд╖рд╛рдУрдВ рд╕реЗ рдмрд╣реБрдд рдХрдо рд╕рдВрдмрдВрдз рд╣реИ, рдпрд╣ рд╕рд┐рд░реНрдл рдПрдХ рдЗрдХрд╛рдИ рд╣реИ рдЬреЛ рдХрд┐рд╕реА рдорд╛рдорд▓реЗ рдХреЛ рд▓рд╛рдЧреВ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдПрдХ рд╡рд┐рдзрд┐ рдХреЛ рджрд░реНрд╢рд╛рддрд╛ рд╣реИред



рджреЛ рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рднрд╛рд╖рд╛рдУрдВ GUIScript рдФрд░ VUScript рдЕрдирд┐рд╡рд╛рд░реНрдп рд░реВрдк рд╕реЗ IR рдореЗрдВ рд╕реНрд╡рдЪрд╛рд▓рди рдХреА рд░реАрдврд╝ рд╣реИрдВред рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ, рдпрд╣рд╛рдВ рд╕рднреА рд╕реНрд╡рдЪрд╛рд▓рди рджреЛ рдмрдбрд╝реЗ рд╕рдореВрд╣реЛрдВ рдореЗрдВ рд╡рд┐рднрд╛рдЬрд┐рдд рд╣реИрдВ: рдЬреАрдпреВрдЖрдИ рдФрд░ рд╡реАрдпреВред GUI рдХрд╛ рдкрд░реАрдХреНрд╖рдг рдЦреБрдж рдХреЗ рд▓рд┐рдП рдмреЛрд▓рддрд╛ рд╣реИ, рдпрд╣ рдЧреНрд░рд╛рдлрд┐рдХрд▓ рдЗрдВрдЯрд░рдлреЗрд╕ рдореЗрдВ рдмрдЯрди рдХрд╛ рдПрдХ рд╕реНрд╡рдЪрд╛рд▓рд┐рдд рдЬрд░реНрдХрд┐рдВрдЧ рд╣реИред VU, рдбреИрд╢рд┐рдВрдЧ рдлреЙрд░реНрдореНрдпреБрд▓реЗрд╢рди рдХреЗ рд╕рд╛рде рдкрд░реАрдХреНрд╖рдг рд╕рдВрдХреНрд╖рд┐рдкреНрдд рдирд╛рдо VU - рд╡рд░реНрдЪреБрдЕрд▓ рдпреВрдЬрд░ рдХреЛ рджрд░реНрд╢рд╛рддрд╛ рд╣реИред VU рддрдХрдиреАрдХ рдЖрдкрдХреЛ рдХрдИ рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛рдУрдВ рдХреЗ рдХрд╛рдо рдХрд╛ рдЕрдиреБрдХрд░рдг рдХрд░рдиреЗ рдХреА рдЕрдиреБрдорддрд┐ рджреЗрддреА рд╣реИ, рдХрдИ, рдпрд╣ рд╕реИрдХрдбрд╝реЛрдВ, рд╣рдЬрд╛рд░реЛрдВ рдЖрджрд┐ рд╣реИрдВред рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ, рдпрд╣ рд▓реЛрдб рдкрд░реАрдХреНрд╖рдгреЛрдВ рдХрд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рд╣реИред



рдЬреАрдпреВрдЖрдИ рдкрд░реАрдХреНрд╖рдг рдХреЗ рд▓рд┐рдП рдПрдХ рдбреЗрд╕реНрдХрдЯреЙрдк рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрддреА рд╣реИ, рдЕрд░реНрдерд╛рдд рдПрдХ рд╣реА рдорд╢реАрди рдкрд░ рдПрдХ рдбреЗрд╕реНрдХрдЯреЙрдк рдкрд░ рдПрдХ рдмрд╛рд░ рдореЗрдВ рдПрдХ рд╕реЗ рдЕрдзрд┐рдХ рдкрд░реАрдХреНрд╖рдг рдкрд╛рд░рд┐рдд рдирд╣реАрдВ рдХрд┐рдП рдЬрд╛ рд╕рдХрддреЗ рд╣реИрдВред рд╡реАрдпреВ рдХреЗ рд▓рд┐рдП рдРрд╕рд╛ рдХреЛрдИ рдкреНрд░рддрд┐рдмрдВрдз рдирд╣реАрдВ рд╣реИ, рд▓реЗрдХрд┐рди рдПрдХ рдЖрднрд╛рд╕реА рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдХреЗ рд▓рд┐рдП рд▓рд╛рдЗрд╕реЗрдВрд╕ рдкреНрд░рддрд┐рдмрдВрдз рд╣реИред рдЙрдиреНрд╣реЗрдВ рдЯреБрдХрдбрд╝реЛрдВ рдореЗрдВ рдЦрд░реАрджрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдПред



GUI рднрд╛рд╖рд╛ рдЕрдирд┐рд╡рд╛рд░реНрдп рд░реВрдк рд╕реЗ Visual Basic рд╣реИ, VU рдХреЗ рд▓рд┐рдП рдпрд╣ C рд╣реИ, IR рдХрд╛ рдЕрдкрдирд╛ рдЕрдиреБрд╡рд╛рджрдХ рдФрд░ C- рд╕рд┐рдВрдЯреИрдХреНрд╕ рдХрдВрдкрд╛рдЗрд▓рд░ рд╣реИред рдореЗрд░реЗ рджреНрд╡рд╛рд░рд╛ рдЙрджреНрдзреГрдд рд╕реНрдХреНрд░рд┐рдкреНрдЯрд┐рдВрдЧ рдЯреВрд▓ рдХреЗ рдмрд╛рдХреА VU рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рд╣реИрдВред рдПрдХ рд╡рд┐рд╢реЗрд╖ рдПрдХреНрд╕рдЯреЗрдВрд╢рди рдЯреАрдПрд╕рдПрд╕ (рдЯреЗрд╕реНрдЯ рд╕реНрдХреНрд░рд┐рдкреНрдЯ рд╕рд░реНрд╡рд┐рд╕) рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рд╡рд░реНрдЪреБрдЕрд▓ рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдХрд┐рд╕реА рдЕрдиреНрдп рднрд╛рд╖рд╛ рдореЗрдВ рд▓рд┐рдЦреЗ рдЧрдП рдХреЛрдб рдХреЛ рдЪрд▓рд╛ рд╕рдХрддреЗ рд╣реИрдВред



рдПрдХ рдЬрд╛рд╡рд╛ рдкреНрд░реЛрдЧреНрд░рд╛рдорд░ рдХреЗ рд░реВрдк рдореЗрдВ, рдореБрдЭреЗ рдЬрд╛рд╡рд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдореЗрдВ рджрд┐рд▓рдЪрд╕реНрдкреА рдереАред рдЦреИрд░, рд╕рд╛рдорд╛рдиреНрдп рддреМрд░ рдкрд░, рдпрд╣ рдкрдХрд╛ рд╣реБрдЖ рд╣реИред рдореИрдВ рд╕реНрд╡рдЪрд╛рд▓рди рд▓рд┐рдкрд┐рдпреЛрдВ рдХреЗ рд╡рд┐рд╡рд░рдг рдХреЛ "рдХреНрд▓реЛрдерд╕реНрдкрд┐рди" рдпрд╛ рдХреБрдЫ рдФрд░ рдХреЗ рд░реВрдк рдореЗрдВ рджреЗрдЦрддрд╛ рд╣реВрдВред рдЙрд╕рдХреЗ рдШреБрдЯрдиреЛрдВ рдкрд░ рдХреБрдЫ рд▓рдЧрд╛ред рдпрд╣ рдХреБрдЫ рдорд╣рд╛рди рд╕реБрдВрджрд░ рд╕рд╛рд░реНрд╡рднреМрдорд┐рдХ рдЙрдкрд╛рдп рдХрд░рддрд╛ рд╣реИред рдФрд░ рдореБрдЭреЗ рд▓рд╛рдЗрд╕реЗрдВрд╕ рдХреЗ рдореБрджреНрджреЗ рдХреА рднреА рдкрд░рд╡рд╛рд╣ рд╣реИред рдХрдИ рдкрд░рд┐рд╕реНрдерд┐рддрд┐рдпреЛрдВ (рдЙрд╕ рд╕рдордп рдХрд╛рдлреА рдЙрджреНрджреЗрд╢реНрдп) рдХреЗ рд▓рд┐рдП, рд╣рдорд╛рд░реА рдХрдВрдкрдиреА рдиреЗ VU рдХреЗ рд▓рд┐рдП рд▓рд╛рдЗрд╕реЗрдВрд╕ рдирд╣реАрдВ рдЦрд░реАрджрд╛ред рд▓реЗрдХрд┐рди рдХрд┐рдЯ рдореЗрдВ рдПрдХ VU, рдПрдХ рддрд░рд╣ рдХреА рдорд╛рд░реНрдХреЗрдЯрд┐рдВрдЧ рдХрд╛ рд▓рд╛рдЗрд╕реЗрдВрд╕ рд╣реЛрддрд╛ рд╣реИред



рдХрд▓рдХрддреНрддрд╛





рд╕реНрд╡рдЪрд╛рд▓рди рдЙрдкрдХрд░рдг рдХреЗ рд╡рд┐рдХрд╛рд╕ рдХреЗ рд▓рд┐рдП рдПрдХ рд░реВрдкрд░реЗрдЦрд╛ рд▓рд┐рдЦрдиреЗ рдореЗрдВ рдореЗрд░реЗ рд╡рд┐рдЪрд╛рд░ рд╡реНрдпрдХреНрдд рдХрд┐рдП рдЧрдП рдереЗред рдореИрдВрдиреЗ рдЙрд╕реЗ CALCUTTA рдирд╛рдо рджрд┐рдпрд╛ред



рдпрд╣ рдкреВрд░реА рдмрд╛рдд рдХреНрдпрд╛ рд╣реИ? рдпреЗ рдЫреЛрдЯреА рд╕реНрдХреНрд░рд┐рдкреНрдЯреНрд╕ рд╣реИрдВ , рдЬрд╛рд╡рд╛ рдХреЛрдб, рдЬреЛ рдЖрдИрдЖрд░ рд╡рд╛рддрд╛рд╡рд░рдг рд╕реЗ рдХреБрдЫ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╕рд░реНрд╡рд░ рдХреЗ рд╕рд╛рде HTTP рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рд╕рдВрд╡рд╛рдж рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред рдФрд░ рд╕рднреА рдкрд░реАрдХреНрд╖рдг рд╡рд╣рд╛рдБ рдШреВрдо рд░рд╣рд╛ рд╣реИред рдЖрдИрдЖрд░ рдореЗрдВ, рд╣рдо рдпреЛрдЬрдирд╛ рдмрдирд╛рддреЗ рд╣реИрдВ, рдбрд┐рдЬрд╛рдЗрди рдХрд░рддреЗ рд╣реИрдВ, рдХрд╛рд░реНрдпрд╛рдиреНрд╡рд┐рдд рдХрд░рддреЗ рд╣реИрдВ, рдирд┐рд╖реНрдкрд╛рджрд┐рдд рдХрд░рддреЗ рд╣реИрдВ рдФрд░ рд╡рд┐рд╢реНрд▓реЗрд╖рдг рдХрд░рддреЗ рд╣реИрдВред рд╣рдо рдХреЗрд╡рд▓ рдЖрд╡реЗрджрди рд╕рд░реНрд╡рд░ рдореЗрдВ рд╕рдорд╕реНрдпрд╛ рдХреЗ рдмрдпрд╛рди рдФрд░ рдкрд░рд┐рдгрд╛рдо рдХреЗ рд╣рд┐рд╕реНрд╕реЗ рдХрд╛ рд╣рд┐рд╕реНрд╕рд╛ рд░рдЦрддреЗ рд╣реИрдВред IR рдореЗрдВ рдЪрд▓рдиреЗ рд╡рд╛рд▓реЗ рдкреНрд░рддреНрдпреЗрдХ рдкрд░реАрдХреНрд╖рдг рдореЗрдВ рдПрдХ рдорд┐рдирдЯ рд╕реЗ рдЕрдзрд┐рдХ рд╕рдордп рдирд╣реАрдВ рд▓рдЧреЗрдЧрд╛ред рдФрд░ рдХрд┐рд╕реА рднреА рд╕рд░реНрд╡рд░ рдкрд░ рдХрд┐рд╕реА рднреА рд╕рдВрдЦреНрдпрд╛ рдореЗрдВ рд╕рдорд╛рдирддрд╛рдПрдВ рдЦреБрдж рд╣реА рдкрд░реАрдХреНрд╖рдг рдХрд░ рд░рд╣реА рд╣реИрдВ, рдХреНрдпреЛрдВрдХрд┐ рд╣рдо рдЗрд╕рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рдХреЗ рдЕрдиреБрд╕рд╛рд░ рдШреВрдо рд░рд╣реЗ рд╣реИрдВред рдкрд░реАрдХреНрд╖рдХреЛрдВ рдХрд╛ рдПрдХ рдкреВрд░рд╛ рдЧрд┐рд░реЛрд╣ рдХреЗрд╡рд▓ 5 рдЖрднрд╛рд╕реА рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛рдУрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░ рд╕рдХрддрд╛ рд╣реИред рдпрд╛ рдПрдХ рднреА, рдЕрдЧрд░ рд╕рдореВрд╣ рдЫреЛрдЯрд╛ рд╣реИред рдПрдХ рд╕рдордп рдореЗрдВ, рдпрд╣ рд╕рдВрднрд╡ рд╣реИ рдХрд┐ рдХреЗрд╡рд▓ рдПрдХ рд╡реНрдпрдХреНрддрд┐ рдХреЛ рдПрдХ рдкрд░реАрдХреНрд╖рдг рдЪрд▓рд╛рдиреЗ рдпрд╛ рдЙрд╕рд╕реЗ рдкрд░рд┐рдгрд╛рдо рдирд┐рдХрд╛рд▓рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрдЧреАред



CALCUTTA рд╣рдореЗрдВ рдЯреЗрд╕реНрдЯ рдСрдЯреЛрдореЗрд╢рди рдЯреВрд▓реНрд╕ рд╡рд┐рдХрд╕рд┐рдд рдХрд░рддреЗ рд╕рдордп рдЙрдЪрд┐рдд рд╕реНрддрд░ рдкрд░ рдЕрдореВрд░реНрддрддрд╛ рдкреНрд░рджрд╛рди рдХрд░рддрд╛ рд╣реИред рдкреНрд░реЛрдЧреНрд░рд╛рдорд░ рдХреЛ рдХреЗрд╡рд▓ рдкрд░реАрдХреНрд╖рдг рд╡рд╕реНрддреБ рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рд╕реЛрдЪрдирд╛ рдЪрд╛рд╣рд┐рдПред рдЙрдкрдХрд░рдг рд╕реНрд╡рдпрдВ рдПрдХ рдЙрдкрдХрд░рдг рд╣реИ, рдПрдХ рдЙрдкрдХрд░рдг рдЬреЛ рдПрдХ рдпрд╛ рдХрд┐рд╕реА рдЕрдиреНрдп рдХреНрд░рд┐рдпрд╛ рдХреЛ рдХрд░ рд╕рдХрддрд╛ рд╣реИред



рдореЗрд░рд╛ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╕рд░реНрд╡рд░ Apache Tomcat рд╣реИред



рдЖрдк рд▓рдВрдмреЗ рд╕рдордп рддрдХ рд╕реЛрдЪ рд╕рдХрддреЗ рд╣реИрдВред рдореИрдВ рдмреЗрд╣рддрд░ рдЖрдкрдХреЛ рддреБрд░рдВрдд рдХреЛрдб рджрд┐рдЦрд╛рдКрдВрдЧрд╛ред рддреЛ рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдФрд░ рдЙрдкрдХрд░рдгред



рдпрд╣рд╛рдВ рдпрд╣ рдЬрд╛рдВрдЪрдиреЗ рдХреЗ рд▓рд┐рдП рдкрд░реАрдХреНрд╖рдг рдХрд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рд╣реИ рдХрд┐ рдХреНрдпрд╛ рдорд╢реАрди рдкреНрд░рддрд┐рдХреНрд░рд┐рдпрд╛ рдХрд░рддреА рд╣реИред рдЯреВрд▓ рдореЗрдВ рдЖрдкрдХреЛ рдПрдХ рдЕрд░реНрдерд╣реАрди (рдкрд┐рдВрдЧрд┐рдВрдЧ рдХрд╛рд░реНрдп рдХреЗ рджреГрд╖реНрдЯрд┐рдХреЛрдг рд╕реЗ) рдЪрдХреНрд░ рджрд┐рдЦрд╛рдИ рджреЗрдЧрд╛, рдпрд╣ рд╕рд┐рд░реНрдл рдПрдХ рдХрд╛рд▓реНрдкрдирд┐рдХ рдард╣рд░рд╛рд╡ рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП рд╣реИ, рдЗрддрдиреА рд▓рдВрдмреА рдкреНрд░рдХреНрд░рд┐рдпрд╛ред



рд▓рд┐рдкрд┐ред



  1. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  2. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  3. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  4. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  5. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  6. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  7. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  8. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  9. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  10. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  11. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  12. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  13. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  14. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  15. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  16. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  17. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  18. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  19. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  20. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  21. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  22. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  23. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  24. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  25. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  26. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  27. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  28. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  29. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  30. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }



  31. package ru.megafonvolga.calcutta.tss.sandbox ; import ru.megafonvolga.calcutta.network.Message ; import ru.megafonvolga.calcutta.tss.env.CalcuttaScriptException ; import ru.megafonvolga.calcutta.tss.env.Script ; import ru.megafonvolga.calcutta.tss.utils.Calcutta ; public class HostReachableChecker extends Script { @Override public void execute ( String [ ] args ) throws CalcuttaScriptException { if ( Calcutta. createTool ( "ping" , "ru.megafonvolga.calcutta.tools.sandbox.t2.HostReachableChecker" ) || Calcutta. isSessionMarkedToRepeat ( ) ) { Calcutta. setToolProperty ( "ping" , "host" , getScriptOption ( "host" ) ) ; Calcutta. executeTool ( "ping" , false ) ; throw new CalcuttaScriptException ( "tool \" ping \" is executing..." , "run me again to know result" , CalcuttaScriptException. EL_WARNING ) ; } else { Message inMsg = Calcutta. getToolStatus ( "ping" ) ; int code = inMsg. getIntParameter ( "currentStateCode" ) ; String message = inMsg. getStringParameter ( "currentStateMessage" ) ; double percent = inMsg. getDoubleParameter ( "currentProgressPercent" ) ; if ( code > 0 ) throw new CalcuttaScriptException ( "tool is still executing..." , "code=" + code + ", message=" + message + ", done for " + percent + "%" , CalcuttaScriptException. EL_WARNING ) ; else if ( code < 0 ) throw new CalcuttaScriptException ( "test failed" , "code=" + code + ", message=" + message, CalcuttaScriptException. EL_ERROR ) ; } } }







рдЙрдкрдХрд░рдгред

  1. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  2. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  3. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  4. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  5. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  6. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  7. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  8. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  9. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  10. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  11. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  12. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  13. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  14. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  15. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  16. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  17. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  18. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  19. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  20. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  21. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  22. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  23. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  24. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  25. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  26. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  27. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  28. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  29. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  30. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  31. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  32. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  33. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  34. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  35. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  36. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  37. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  38. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  39. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  40. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }



  41. package ru.megafonvolga.calcutta.tools.sandbox.t2 ; import java.net.InetAddress ; import ru.megafonvolga.calcutta.controller.CalcuttaSession ; import ru.megafonvolga.calcutta.controller.CalcuttaToolException ; import ru.megafonvolga.calcutta.tools.Tool ; public class HostReachableChecker extends Tool { private String host = "" ; public HostReachableChecker ( CalcuttaSession session, String toolInstaceName ) { super ( session, toolInstaceName ) ; } @Override public void execute ( ) throws CalcuttaToolException { setCurrentStateCode ( 1 ) ; setCurrentStateMessage ( "waiting..." ) ; setCurrentProgressPercent ( 0.0 ) ; try { if ( ! InetAddress . getByName ( getHost ( ) ) . isReachable ( 3000 ) ) { setCurrentStateCode ( - 1 ) ; setCurrentStateMessage ( "host is unreachable" ) ; } for ( int f = 0 ; f < 10 ; f ++ ) { Thread . sleep ( 1000 ) ; setCurrentStateCode ( f + 1 ) ; setCurrentStateMessage ( "waiting...[" + f + "]" ) ; setCurrentProgressPercent ( f * 10.0 ) ; } } catch ( Exception e ) { throw new CalcuttaToolException ( e ) ; } finally { setCurrentStateMessage ( "done" ) ; setCurrentStateCode ( 0 ) ; setCurrentProgressPercent ( 100.0 ) ; } } public String getHost ( ) { return host ; } public void setHost ( String host ) { this . host = host ; } }





рдпрд╣ рдЖрдИрдЖрд░ рдореЗрдВ рдХреИрд╕рд╛ рджрд┐рдЦрддрд╛ рд╣реИред



рд╕реВрдЯред



рдЫрд╡рд┐



рдкрд╣рд▓реЗ рд░рди рдХрд╛ рд▓реЙрдЧред



рдЫрд╡рд┐



рдЙрдкрдХрд░рдгреЛрдВ рдХреЗ рдирд┐рд╖реНрдкрд╛рджрди рдХреА рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХрд╛ рд╡реЗрдм рдкреНрд░рддрд┐рдирд┐рдзрд┐рддреНрд╡ред



рдЫрд╡рд┐



рдкрд░реАрдХреНрд╖рдг рдирд┐рд╖реНрдкрд╛рджрди рдХреЗ рдмрд╛рдж рд▓реЙрдЧ рдЬрдм рдЙрдкрдХрд░рдг рдиреЗ рдирд┐рд╖реНрдкрд╛рджрди рд╕рдорд╛рдкреНрдд рдХрд░ рджрд┐рдпрд╛ рд╣реИред



рдЫрд╡рд┐



рд╕рд╛рдорд╛рдиреНрдп рддреМрд░ рдкрд░, рдпрд╣рд╛рдБред рдореИрдВ рдЖрдЧреЗ рдпрд╣ рднреА рд▓рд┐рдЦрдирд╛ рдЪрд╛рд╣рддрд╛ рд╣реВрдВ рдХрд┐ рдХреИрд╕реЗ рдЬрд╛рд╡рд╛ рдХреЛ рддрд░реНрдХрд╕рдВрдЧрдд рдХреЗ рд╕рд╛рде рдЧреЛрдВрдж рдХрд░рдирд╛ рд╣реИ, рдЗрд╕рд▓рд┐рдП рдпрд╣ рддреБрд░рдВрдд рдПрдХ рд╕рд╛рде рдЫрдбрд╝реА рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реИред рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдореБрдЭреЗ рдиреЗрдЯрд╡рд░реНрдХ рдкрд░ рдЗрд╕рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдЕрдзрд┐рдХ рдЬрд╛рдирдХрд╛рд░реА рдирд╣реАрдВ рдорд┐рд▓реАред рдФрд░ рдЕрдЧрд░ рд╡рд┐рд╖рдп рджрд┐рд▓рдЪрд╕реНрдк рд╣реИ, рддреЛ рдореИрдВ CALCUTTA рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдЕрдзрд┐рдХ рд╡рд┐рд╕реНрддреГрдд рд▓реЗрдЦ рднреА рдкреНрд░рдХрд╛рд╢рд┐рдд рдХрд░реВрдВрдЧрд╛ред



рдЬрд╛рдирдХрд╛рд░реА рдореБрдЦреНрдп рд░реВрдк рд╕реЗ рдЖрдИрдмреАрдПрдо рддрд░реНрдХрд╕рдВрдЧрдд рдкрд░реАрдХреНрд╖рдг рдкреНрд░рдмрдВрдзрдХ рдкреНрд░рд▓реЗрдЦрди рд╕реЗ рд▓реА рдЧрдИ рдереАред



All Articles