com.sun.enterprise.admin.cli
Class MonitorTask

java.lang.Object
  extended by java.util.TimerTask
      extended by com.sun.enterprise.admin.cli.MonitorTask
All Implemented Interfaces:
Runnable

public class MonitorTask
extends TimerTask


Field Summary
private  RemoteCommand cmd
           
private  int counter
           
private  String exceptionMessage
           
private  File fileName
           
private  String filter
           
private static Logger logger
           
private static int NUM_ROWS
           
private  String[] remoteArgs
           
private static LocalStringsImpl strings
           
private  Timer timer
           
private  String type
           
 
Constructor Summary
MonitorTask(Timer timer, String[] remoteArgs, ProgramOptions programOpts, Environment env, String type, String filter, File fileName)
           
 
Method Summary
(package private)  void cancelMonitorTask()
           
 void displayDetails()
           
(package private)  void displayHeader(String type)
           
 String getExceptionMessage()
           
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private String type

filter

private String filter

timer

private Timer timer

fileName

private File fileName

remoteArgs

private String[] remoteArgs

exceptionMessage

private String exceptionMessage

cmd

private RemoteCommand cmd

NUM_ROWS

private static final int NUM_ROWS
See Also:
Constant Field Values

counter

private int counter

logger

private static final Logger logger

strings

private static final LocalStringsImpl strings
Constructor Detail

MonitorTask

public MonitorTask(Timer timer,
                   String[] remoteArgs,
                   ProgramOptions programOpts,
                   Environment env,
                   String type,
                   String filter,
                   File fileName)
            throws CommandException,
                   CommandValidationException
Throws:
CommandException
CommandValidationException
Method Detail

displayHeader

void displayHeader(String type)

cancelMonitorTask

void cancelMonitorTask()

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

getExceptionMessage

public String getExceptionMessage()

displayDetails

public void displayDetails()


Copyright © 2012 GlassFish Community. All Rights Reserved.