Made Javadoc review.

This commit is contained in:
Christian P. MOMON 2024-08-15 03:53:28 +02:00
parent 790f40b9e7
commit 0526ab46e8
41 changed files with 993 additions and 46 deletions

View file

@ -57,6 +57,8 @@
<!-- ***** JavaDoc ***** --> <!-- ***** JavaDoc ***** -->
<target name="javadoc" description="Javadoc construction"> <target name="javadoc" description="Javadoc construction">
<javadoc sourcepath="${build.src}" destdir="${build.javadoc}"> <javadoc sourcepath="${build.src}" destdir="${build.javadoc}">
<arg value="-Xmaxwarns"/>
<arg value="500"/>
<classpath> <classpath>
<fileset dir="lib" includes="**/*.jar" /> <fileset dir="lib" includes="**/*.jar" />
</classpath> </classpath>

View file

@ -598,6 +598,8 @@ public class StatoolInfosApp
* *
* @param source * @param source
* the source * the source
* @param filter
* the filter
*/ */
public static void listUserAgents(final Files source, final BotFilter filter) public static void listUserAgents(final Files source, final BotFilter filter)
{ {
@ -705,6 +707,8 @@ public class StatoolInfosApp
* *
* @param source * @param source
* the source * the source
* @param filter
* the filter
*/ */
public static void listVisitors(final Files source, final BotFilter filter) public static void listVisitors(final Files source, final BotFilter filter)
{ {
@ -749,10 +753,12 @@ public class StatoolInfosApp
} }
/** /**
* Stat. * Probe.
* *
* @param configurationFile * @param configurationFile
* the configuration file * the configuration file
* @param dayCountFilter
* the day count filter
* @throws StatoolInfosException * @throws StatoolInfosException
* the statool infos exception * the statool infos exception
* @throws IOException * @throws IOException
@ -828,6 +834,8 @@ public class StatoolInfosApp
* *
* @param source * @param source
* the source * the source
* @param filter
* the filter
*/ */
public static void statIps(final Files source, final BotFilter filter) public static void statIps(final Files source, final BotFilter filter)
{ {
@ -937,6 +945,8 @@ public class StatoolInfosApp
* *
* @param source * @param source
* the source * the source
* @param filter
* the filter
*/ */
public static void statUserAgents(final Files source, final BotFilter filter) public static void statUserAgents(final Files source, final BotFilter filter)
{ {
@ -1049,6 +1059,8 @@ public class StatoolInfosApp
* *
* @param source * @param source
* the source * the source
* @param filter
* the filter
*/ */
public static void statVisitors(final Files source, final BotFilter filter) public static void statVisitors(final Files source, final BotFilter filter)
{ {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -80,51 +80,106 @@ public class PropertyCheck
this.comment = comment; this.comment = comment;
} }
/**
* Gets the comment.
*
* @return the comment
*/
public String getComment() public String getComment()
{ {
return this.comment; return this.comment;
} }
/**
* Gets the file name.
*
* @return the file name
*/
public String getFileName() public String getFileName()
{ {
return this.fileName; return this.fileName;
} }
/**
* Gets the index.
*
* @return the index
*/
public long getIndex() public long getIndex()
{ {
return this.index; return this.index;
} }
/**
* Gets the line.
*
* @return the line
*/
public String getLine() public String getLine()
{ {
return this.line; return this.line;
} }
/**
* Gets the status.
*
* @return the status
*/
public Status getStatus() public Status getStatus()
{ {
return this.status; return this.status;
} }
/**
* Sets the comment.
*
* @param comment
* the new comment
*/
public void setComment(final String comment) public void setComment(final String comment)
{ {
this.comment = comment; this.comment = comment;
} }
/**
* Sets the file name.
*
* @param fileName
* the new file name
*/
public void setFileName(final String fileName) public void setFileName(final String fileName)
{ {
this.fileName = fileName; this.fileName = fileName;
} }
/**
* Sets the index.
*
* @param index
* the new index
*/
public void setIndex(final long index) public void setIndex(final long index)
{ {
this.index = index; this.index = index;
} }
/**
* Sets the line.
*
* @param line
* the new line
*/
public void setLine(final String line) public void setLine(final String line)
{ {
this.line = line; this.line = line;
} }
/**
* Sets the status.
*
* @param status
* the new status
*/
public void setStatus(final Status status) public void setStatus(final Status status)
{ {
this.status = status; this.status = status;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -76,8 +76,11 @@ public class PropertyRule
} }
/** /**
* Check path.
*
* @param value * @param value
* @return * the value
* @return true, if successful
*/ */
public boolean checkPath(final String value) public boolean checkPath(final String value)
{ {
@ -108,11 +111,21 @@ public class PropertyRule
return result; return result;
} }
/**
* Gets the label.
*
* @return the label
*/
public String getLabel() public String getLabel()
{ {
return this.label; return this.label;
} }
/**
* Gets the mode.
*
* @return the mode
*/
public PropertyMode getMode() public PropertyMode getMode()
{ {
return this.mode; return this.mode;
@ -214,6 +227,12 @@ public class PropertyRule
return result; return result;
} }
/**
* Sets the mode.
*
* @param mode
* the new mode
*/
public void setMode(final PropertyMode mode) public void setMode(final PropertyMode mode)
{ {
this.mode = mode; this.mode = mode;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -1399,21 +1399,45 @@ public class Organization extends PathPropertyList
return result; return result;
} }
/**
* Sets the federation.
*
* @param federation
* the new federation
*/
public void setFederation(final Federation federation) public void setFederation(final Federation federation)
{ {
this.federation = federation; this.federation = federation;
} }
/**
* Sets the input file.
*
* @param inputFile
* the new input file
*/
public void setInputFile(final File inputFile) public void setInputFile(final File inputFile)
{ {
this.inputFile = inputFile; this.inputFile = inputFile;
} }
/**
* Sets the input URL.
*
* @param inputURL
* the new input URL
*/
public void setInputURL(final URL inputURL) public void setInputURL(final URL inputURL)
{ {
this.inputURL = inputURL; this.inputURL = inputURL;
} }
/**
* Sets the logo file name.
*
* @param logoFileName
* the new logo file name
*/
public void setLogoFileName(final String logoFileName) public void setLogoFileName(final String logoFileName)
{ {
this.logoFileName = logoFileName; this.logoFileName = logoFileName;

View file

@ -219,6 +219,11 @@ public class Service extends PathPropertyList
return result; return result;
} }
/**
* Gets the crawl journal.
*
* @return the crawl journal
*/
public CrawlJournal getCrawlJournal() public CrawlJournal getCrawlJournal()
{ {
return this.crawlJournal; return this.crawlJournal;
@ -386,6 +391,11 @@ public class Service extends PathPropertyList
return result; return result;
} }
/**
* Gets the input checks.
*
* @return the input checks
*/
public PropertyChecks getInputChecks() public PropertyChecks getInputChecks()
{ {
return this.inputChecks; return this.inputChecks;
@ -413,11 +423,21 @@ public class Service extends PathPropertyList
return result; return result;
} }
/**
* Gets the input file.
*
* @return the input file
*/
public File getInputFile() public File getInputFile()
{ {
return this.inputFile; return this.inputFile;
} }
/**
* Gets the input URL.
*
* @return the input URL
*/
public URL getInputURL() public URL getInputURL()
{ {
return this.inputURL; return this.inputURL;
@ -505,6 +525,11 @@ public class Service extends PathPropertyList
return result; return result;
} }
/**
* Gets the metrics.
*
* @return the metrics
*/
public MetricsList getMetrics() public MetricsList getMetrics()
{ {
return this.metricsList; return this.metricsList;
@ -1262,21 +1287,45 @@ public class Service extends PathPropertyList
return result; return result;
} }
/**
* Sets the input file.
*
* @param inputFile
* the new input file
*/
public void setInputFile(final File inputFile) public void setInputFile(final File inputFile)
{ {
this.inputFile = inputFile; this.inputFile = inputFile;
} }
/**
* Sets the input URL.
*
* @param inputURL
* the new input URL
*/
public void setInputURL(final URL inputURL) public void setInputURL(final URL inputURL)
{ {
this.inputURL = inputURL; this.inputURL = inputURL;
} }
/**
* Sets the logo file name.
*
* @param logoFileName
* the new logo file name
*/
public void setLogoFileName(final String logoFileName) public void setLogoFileName(final String logoFileName)
{ {
this.logoFileName = logoFileName; this.logoFileName = logoFileName;
} }
/**
* Sets the organization.
*
* @param organization
* the new organization
*/
public void setOrganization(final Organization organization) public void setOrganization(final Organization organization)
{ {
this.organization = organization; this.organization = organization;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -72,16 +72,31 @@ public class Software
this.aliases = new StringList(softwares); this.aliases = new StringList(softwares);
} }
/**
* Gets the aliases.
*
* @return the aliases
*/
public StringList getAliases() public StringList getAliases()
{ {
return this.aliases; return this.aliases;
} }
/**
* Gets the description.
*
* @return the description
*/
public String getDescription() public String getDescription()
{ {
return this.description; return this.description;
} }
/**
* Gets the name.
*
* @return the name
*/
public String getName() public String getName()
{ {
return this.name; return this.name;
@ -102,20 +117,30 @@ public class Software
return result; return result;
} }
/**
* Sets the description.
*
* @param description
* the new description
*/
public void setDescription(final String description) public void setDescription(final String description)
{ {
this.description = description; this.description = description;
} }
/**
* Sets the name.
*
* @param name
* the new name
*/
public void setName(final String name) public void setName(final String name)
{ {
this.name = name; this.name = name;
} }
/** /*
* To string. * {@inheritDoc}
*
* @return the string
*/ */
@Override @Override
public String toString() public String toString()

View file

@ -42,10 +42,14 @@ public class StatoolInfosContext
private UptimeJournal uptimeJournal; private UptimeJournal uptimeJournal;
/** /**
* Instantiates a new manager. * Instantiates a new statool infos context.
* *
* @throws IOException * @param configurationFile
* the configuration file
* @throws StatoolInfosException * @throws StatoolInfosException
* the statool infos exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public StatoolInfosContext(final File configurationFile) throws StatoolInfosException, IOException public StatoolInfosContext(final File configurationFile) throws StatoolInfosException, IOException
{ {
@ -57,8 +61,10 @@ public class StatoolInfosContext
* *
* @param configurationFile * @param configurationFile
* the configuration file * the configuration file
* @throws IOException
* @throws StatoolInfosException * @throws StatoolInfosException
* the statool infos exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public void configure(final File configurationFile) throws StatoolInfosException, IOException public void configure(final File configurationFile) throws StatoolInfosException, IOException
{ {

View file

@ -607,6 +607,13 @@ public class StatoolInfosUtils
return result; return result;
} }
/**
* To integer.
*
* @param value
* the value
* @return the integer
*/
public static Integer toInteger(final String value) public static Integer toInteger(final String value)
{ {
Integer result; Integer result;
@ -817,6 +824,7 @@ public class StatoolInfosUtils
* the url * the url
* @return the local date time * @return the local date time
* @throws IOException * @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public static LocalDateTime urlLastModified(final URL url) throws IOException public static LocalDateTime urlLastModified(final URL url) throws IOException
{ {

View file

@ -45,6 +45,8 @@ public class ODSFile
* the file * the file
* @param source * @param source
* the source * the source
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public static void save(final File file, final Organizations source) throws IOException public static void save(final File file, final Organizations source) throws IOException
{ {

View file

@ -62,10 +62,11 @@ public class ODSWriter implements SpreadsheetWriter
/** /**
* Close. * Close.
* *
* @throws IOException
*
* @throws FileNotFoundException * @throws FileNotFoundException
* the file not found exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
@Override @Override
public void close() throws FileNotFoundException, IOException public void close() throws FileNotFoundException, IOException

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -42,16 +42,31 @@ public class PathCounter
this.counter = 0; this.counter = 0;
} }
/**
* Gets the counter.
*
* @return the counter
*/
public long getCounter() public long getCounter()
{ {
return this.counter; return this.counter;
} }
/**
* Gets the path.
*
* @return the path
*/
public String getPath() public String getPath()
{ {
return this.path; return this.path;
} }
/**
* Gets the time mark.
*
* @return the time mark
*/
public String getTimeMark() public String getTimeMark()
{ {
return this.timeMark; return this.timeMark;
@ -65,6 +80,12 @@ public class PathCounter
this.counter += 1; this.counter += 1;
} }
/**
* Inc.
*
* @param value
* the value
*/
public void inc(final long value) public void inc(final long value)
{ {
this.counter += value; this.counter += value;
@ -130,16 +151,34 @@ public class PathCounter
return result; return result;
} }
/**
* Sets the counter.
*
* @param counter
* the new counter
*/
public void setCounter(final long counter) public void setCounter(final long counter)
{ {
this.counter = counter; this.counter = counter;
} }
/**
* Sets the path.
*
* @param path
* the new path
*/
public void setPath(final String path) public void setPath(final String path)
{ {
this.path = path; this.path = path;
} }
/**
* Sets the time mark.
*
* @param timeMark
* the new time mark
*/
public void setTimeMark(final String timeMark) public void setTimeMark(final String timeMark)
{ {
this.timeMark = timeMark; this.timeMark = timeMark;

View file

@ -188,12 +188,16 @@ public class Prober
} }
/** /**
* Stat. * Probe.
* *
* @param configurationFile * @param configurationFile
* the configuration file * the configuration file
* @throws IOException * @param dayCountFilter
* the day count filter
* @throws StatoolInfosException * @throws StatoolInfosException
* the statool infos exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public static void probe(final File configurationFile, final int dayCountFilter) throws StatoolInfosException, IOException public static void probe(final File configurationFile, final int dayCountFilter) throws StatoolInfosException, IOException
{ {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -38,11 +38,21 @@ public class StringCounter
this.counter = 0; this.counter = 0;
} }
/**
* Gets the counter.
*
* @return the counter
*/
public long getCounter() public long getCounter()
{ {
return this.counter; return this.counter;
} }
/**
* Gets the string.
*
* @return the string
*/
public String getString() public String getString()
{ {
return this.string; return this.string;
@ -56,11 +66,23 @@ public class StringCounter
this.counter += 1; this.counter += 1;
} }
/**
* Sets the counter.
*
* @param counter
* the new counter
*/
public void setCounter(final long counter) public void setCounter(final long counter)
{ {
this.counter = counter; this.counter = counter;
} }
/**
* Sets the string.
*
* @param string
* the new string
*/
public void setString(final String string) public void setString(final String string)
{ {
this.string = string; this.string = string;

View file

@ -161,6 +161,12 @@ public class TimeMark
return result; return result;
} }
/**
* Sets the value.
*
* @param value
* the new value
*/
public void setValue(final String value) public void setValue(final String value)
{ {
this.value = value; this.value = value;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -59,6 +59,8 @@ public class UserCounters extends HashMap<String, StringSet>
/** /**
* Gets the counters. * Gets the counters.
* *
* @param prefix
* the prefix
* @return the counters * @return the counters
*/ */
public PathCounters getCounters(final String prefix) public PathCounters getCounters(final String prefix)

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021-2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -244,25 +244,41 @@ public class MumbleLog
return result; return result;
} }
/**
* Sets the level.
*
* @param level
* the new level
*/
public void setLevel(final MumbleLogLevel level) public void setLevel(final MumbleLogLevel level)
{ {
this.level = level; this.level = level;
} }
/**
* Sets the message.
*
* @param message
* the new message
*/
public void setMessage(final String message) public void setMessage(final String message)
{ {
this.message = message; this.message = message;
} }
/**
* Sets the time.
*
* @param time
* the new time
*/
public void setTime(final LocalDateTime time) public void setTime(final LocalDateTime time)
{ {
this.time = time; this.time = time;
} }
/** /**
* To string. * {@inheritDoc}
*
* @return the string
*/ */
@Override @Override
public String toString() public String toString()

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2022-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -43,6 +43,11 @@ public class PrivatebinPatchLog
this.id = null; this.id = null;
} }
/**
* Gets the action.
*
* @return the action
*/
public PrivatebinLogAction getAction() public PrivatebinLogAction getAction()
{ {
return this.action; return this.action;
@ -63,11 +68,21 @@ public class PrivatebinPatchLog
return result; return result;
} }
/**
* Gets the id.
*
* @return the id
*/
public String getId() public String getId()
{ {
return this.id; return this.id;
} }
/**
* Gets the time.
*
* @return the time
*/
public LocalDateTime getTime() public LocalDateTime getTime()
{ {
return this.time; return this.time;
@ -136,16 +151,34 @@ public class PrivatebinPatchLog
return result; return result;
} }
/**
* Sets the action.
*
* @param action
* the new action
*/
public void setAction(final PrivatebinLogAction action) public void setAction(final PrivatebinLogAction action)
{ {
this.action = action; this.action = action;
} }
/**
* Sets the id.
*
* @param id
* the new id
*/
public void setId(final String id) public void setId(final String id)
{ {
this.id = id; this.id = id;
} }
/**
* Sets the time.
*
* @param time
* the new time
*/
public void setTime(final LocalDateTime time) public void setTime(final LocalDateTime time)
{ {
this.time = time; this.time = time;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2022-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -84,6 +84,8 @@ public class PrivatebinPatchLogProber
* @param file * @param file
* the file * the file
* @return the path counters * @return the path counters
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public static PathCounters probe(final File file) throws IOException public static PathCounters probe(final File file) throws IOException
{ {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -29,8 +29,22 @@ import fr.devinsy.strings.StringSet;
*/ */
public interface PathProperties extends Iterable<PathProperty> public interface PathProperties extends Iterable<PathProperty>
{ {
/**
* Adds the.
*
* @param source
* the source
*/
void add(PathProperties source); void add(PathProperties source);
/**
* Adds the.
*
* @param property
* the property
* @return true, if successful
*/
boolean add(PathProperty property); boolean add(PathProperty property);
/** /**

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -216,16 +216,33 @@ public class PathProperty
return result; return result;
} }
/**
* Gets the value.
*
* @return the value
*/
public String getValue() public String getValue()
{ {
return this.value; return this.value;
} }
/**
* Sets the path.
*
* @param path
* the new path
*/
public void setPath(final String path) public void setPath(final String path)
{ {
this.path = path; this.path = path;
} }
/**
* Sets the value.
*
* @param value
* the new value
*/
public void setValue(final String value) public void setValue(final String value)
{ {
this.value = value; this.value = value;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -30,6 +30,7 @@ import fr.devinsy.strings.StringList;
public class WeekValues extends HashMap<YearWeek, Double> public class WeekValues extends HashMap<YearWeek, Double>
{ {
private static final long serialVersionUID = -211990850389225574L; private static final long serialVersionUID = -211990850389225574L;
private String label; private String label;
private String description; private String description;
@ -127,11 +128,21 @@ public class WeekValues extends HashMap<YearWeek, Double>
return result; return result;
} }
/**
* Gets the description.
*
* @return the description
*/
public String getDescription() public String getDescription()
{ {
return this.description; return this.description;
} }
/**
* Gets the label.
*
* @return the label
*/
public String getLabel() public String getLabel()
{ {
return this.label; return this.label;
@ -270,11 +281,23 @@ public class WeekValues extends HashMap<YearWeek, Double>
return result; return result;
} }
/**
* Sets the description.
*
* @param description
* the new description
*/
public void setDescription(final String description) public void setDescription(final String description)
{ {
this.description = description; this.description = description;
} }
/**
* Sets the label.
*
* @param label
* the new label
*/
public void setLabel(final String label) public void setLabel(final String label)
{ {
this.label = label; this.label = label;

View file

@ -29,6 +29,7 @@ import fr.devinsy.strings.StringList;
public class YearValues extends HashMap<Year, Double> public class YearValues extends HashMap<Year, Double>
{ {
private static final long serialVersionUID = -3584379965186135356L; private static final long serialVersionUID = -3584379965186135356L;
private String label; private String label;
private String description; private String description;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -148,9 +148,13 @@ public class StatAgent
* *
* @param federation * @param federation
* the federation * the federation
* @param cache
* the cache
* @return the properties file stats * @return the properties file stats
* @throws IOException
* @throws MalformedURLException * @throws MalformedURLException
* the malformed URL exception
* @throws IOException
* Signals that an I/O exception has occurred.
*/ */
public static PropertiesFileStats statAllPropertiesFiles(final Federation federation, final CrawlCache cache) throws MalformedURLException, IOException public static PropertiesFileStats statAllPropertiesFiles(final Federation federation, final CrawlCache cache) throws MalformedURLException, IOException
{ {
@ -182,6 +186,8 @@ public class StatAgent
* *
* @param federation * @param federation
* the federation * the federation
* @param categories
* the categories
* @return the software stats * @return the software stats
*/ */
public static SoftwareStats statAllSoftwares(final Federation federation, final Categories categories) public static SoftwareStats statAllSoftwares(final Federation federation, final Categories categories)
@ -468,8 +474,11 @@ public class StatAgent
} }
/** /**
* Stat services properties.
*
* @param services * @param services
* @return * the services
* @return the property stats
*/ */
public static PropertyStats statServicesProperties(final Services services) public static PropertyStats statServicesProperties(final Services services)
{ {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -35,6 +35,11 @@ public class OrganizationTurnoutStats
{ {
} }
/**
* Gets the passive count.
*
* @return the passive count
*/
public long getPassiveCount() public long getPassiveCount()
{ {
return this.passiveCount; return this.passiveCount;
@ -55,41 +60,74 @@ public class OrganizationTurnoutStats
return result; return result;
} }
/**
* Gets the with self file count.
*
* @return the with self file count
*/
public long getWithSelfFileCount() public long getWithSelfFileCount()
{ {
return this.withSelfFileCount; return this.withSelfFileCount;
} }
/**
* Gets the with service file count.
*
* @return the with service file count
*/
public long getWithServiceFileCount() public long getWithServiceFileCount()
{ {
return this.withServiceFileCount; return this.withServiceFileCount;
} }
/**
* Gets the with service metric count.
*
* @return the with service metric count
*/
public long getWithServiceMetricCount() public long getWithServiceMetricCount()
{ {
return this.withServiceMetricCount; return this.withServiceMetricCount;
} }
/**
* Inc passive count.
*/
public void incPassiveCount() public void incPassiveCount()
{ {
this.passiveCount += 1; this.passiveCount += 1;
} }
/**
* Inc with self file count.
*/
public void incWithSelfFileCount() public void incWithSelfFileCount()
{ {
this.withSelfFileCount += 1; this.withSelfFileCount += 1;
} }
/**
* Inc with service file count.
*/
public void incWithServiceFileCount() public void incWithServiceFileCount()
{ {
this.withServiceFileCount += 1; this.withServiceFileCount += 1;
} }
/**
* Inc with service metric count.
*/
public void incWithServiceMetricCount() public void incWithServiceMetricCount()
{ {
this.withServiceMetricCount += 1; this.withServiceMetricCount += 1;
} }
/**
* Sets the passive count.
*
* @param passiveCount
* the new passive count
*/
public void setPassiveCount(final long passiveCount) public void setPassiveCount(final long passiveCount)
{ {
this.passiveCount = passiveCount; this.passiveCount = passiveCount;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2022-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -49,41 +49,81 @@ public class OrganizationTypeStats
this.unknownCount = 0; this.unknownCount = 0;
} }
/**
* Gets the association count.
*
* @return the association count
*/
public long getAssociationCount() public long getAssociationCount()
{ {
return this.associationCount; return this.associationCount;
} }
/**
* Gets the company count.
*
* @return the company count
*/
public long getCompanyCount() public long getCompanyCount()
{ {
return this.companyCount; return this.companyCount;
} }
/**
* Gets the cooperative count.
*
* @return the cooperative count
*/
public long getCooperativeCount() public long getCooperativeCount()
{ {
return this.cooperativeCount; return this.cooperativeCount;
} }
/**
* Gets the individual count.
*
* @return the individual count
*/
public long getIndividualCount() public long getIndividualCount()
{ {
return this.individualCount; return this.individualCount;
} }
/**
* Gets the informal count.
*
* @return the informal count
*/
public long getInformalCount() public long getInformalCount()
{ {
return this.informalCount; return this.informalCount;
} }
/**
* Gets the microcompany count.
*
* @return the microcompany count
*/
public long getMicrocompanyCount() public long getMicrocompanyCount()
{ {
return this.microcompanyCount; return this.microcompanyCount;
} }
/**
* Gets the other count.
*
* @return the other count
*/
public long getOtherCount() public long getOtherCount()
{ {
return this.otherCount; return this.otherCount;
} }
/**
* Gets the unknown count.
*
* @return the unknown count
*/
public long getUnknownCount() public long getUnknownCount()
{ {
return this.unknownCount; return this.unknownCount;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -46,16 +46,31 @@ public class PropertyStat
} }
} }
/**
* Gets the blank count.
*
* @return the blank count
*/
public int getBlankCount() public int getBlankCount()
{ {
return this.blankCount; return this.blankCount;
} }
/**
* Gets the filled count.
*
* @return the filled count
*/
public int getFilledCount() public int getFilledCount()
{ {
return this.filledCount; return this.filledCount;
} }
/**
* Gets the path.
*
* @return the path
*/
public String getPath() public String getPath()
{ {
return this.path; return this.path;
@ -77,11 +92,23 @@ public class PropertyStat
this.filledCount += 1; this.filledCount += 1;
} }
/**
* Sets the blank count.
*
* @param blankCount
* the new blank count
*/
public void setBlankCount(final int blankCount) public void setBlankCount(final int blankCount)
{ {
this.blankCount = blankCount; this.blankCount = blankCount;
} }
/**
* Sets the filled count.
*
* @param filledCount
* the new filled count
*/
public void setFilledCount(final int filledCount) public void setFilledCount(final int filledCount)
{ {
this.filledCount = filledCount; this.filledCount = filledCount;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -91,7 +91,9 @@ public class PropertyStats
} }
/** /**
* @return * Gets the list.
*
* @return the list
*/ */
public PropertyStatList getList() public PropertyStatList getList()
{ {
@ -131,6 +133,11 @@ public class PropertyStats
return result; return result;
} }
/**
* Gets the property count.
*
* @return the property count
*/
public int getPropertyCount() public int getPropertyCount()
{ {
return this.stats.size(); return this.stats.size();
@ -178,5 +185,4 @@ public class PropertyStats
this.stats.put(stat); this.stats.put(stat);
} }
} }
} }

View file

@ -50,176 +50,348 @@ public class PropertiesFileStat
{ {
} }
/**
* Gets the active line count.
*
* @return the active line count
*/
public int getActiveLineCount() public int getActiveLineCount()
{ {
return this.activeLineCount; return this.activeLineCount;
} }
/**
* Gets the alert count.
*
* @return the alert count
*/
public int getAlertCount() public int getAlertCount()
{ {
return this.alertCount; return this.alertCount;
} }
/**
* Gets the blank property count.
*
* @return the blank property count
*/
public int getBlankPropertyCount() public int getBlankPropertyCount()
{ {
return this.blankPropertyCount; return this.blankPropertyCount;
} }
/**
* Gets the error count.
*
* @return the error count
*/
public int getErrorCount() public int getErrorCount()
{ {
return this.errorCount; return this.errorCount;
} }
/**
* Gets the filled property count.
*
* @return the filled property count
*/
public int getFilledPropertyCount() public int getFilledPropertyCount()
{ {
return this.filledPropertyCount; return this.filledPropertyCount;
} }
/**
* Gets the line count.
*
* @return the line count
*/
public int getLineCount() public int getLineCount()
{ {
return this.lineCount; return this.lineCount;
} }
/**
* Gets the organization.
*
* @return the organization
*/
public Organization getOrganization() public Organization getOrganization()
{ {
return this.organization; return this.organization;
} }
/**
* Gets the property count.
*
* @return the property count
*/
public int getPropertyCount() public int getPropertyCount()
{ {
return this.activeLineCount; return this.activeLineCount;
} }
/**
* Gets the service.
*
* @return the service
*/
public Service getService() public Service getService()
{ {
return this.service; return this.service;
} }
/**
* Gets the update date.
*
* @return the update date
*/
public LocalDateTime getUpdateDate() public LocalDateTime getUpdateDate()
{ {
return this.updateDate; return this.updateDate;
} }
/**
* Gets the url.
*
* @return the url
*/
public URL getURL() public URL getURL()
{ {
return this.url; return this.url;
} }
/**
* Gets the URL name.
*
* @return the URL name
*/
public String getURLName() public String getURLName()
{ {
return this.urlName; return this.urlName;
} }
/**
* Gets the void count.
*
* @return the void count
*/
public int getVoidCount() public int getVoidCount()
{ {
return this.voidCount; return this.voidCount;
} }
/**
* Gets the warning count.
*
* @return the warning count
*/
public int getWarningCount() public int getWarningCount()
{ {
return this.warningCount; return this.warningCount;
} }
/**
* Inc active line count.
*/
public void incActiveLineCount() public void incActiveLineCount()
{ {
this.activeLineCount += 1; this.activeLineCount += 1;
} }
/**
* Inc alert count.
*/
public void incAlertCount() public void incAlertCount()
{ {
this.alertCount += 1; this.alertCount += 1;
} }
/**
* Inc blank property count.
*/
public void incBlankPropertyCount() public void incBlankPropertyCount()
{ {
this.blankPropertyCount += 1; this.blankPropertyCount += 1;
} }
/**
* Inc error count.
*/
public void incErrorCount() public void incErrorCount()
{ {
this.errorCount += 1; this.errorCount += 1;
} }
/**
* Inc filled property count.
*/
public void incFilledPropertyCount() public void incFilledPropertyCount()
{ {
this.filledPropertyCount += 1; this.filledPropertyCount += 1;
} }
/**
* Inc line count.
*/
public void incLineCount() public void incLineCount()
{ {
this.lineCount += 1; this.lineCount += 1;
} }
/**
* Inc void count.
*/
public void incVoidCount() public void incVoidCount()
{ {
this.voidCount += 1; this.voidCount += 1;
} }
/**
* Inc warning count.
*/
public void incWarningCount() public void incWarningCount()
{ {
this.warningCount += 1; this.warningCount += 1;
} }
/**
* Sets the active line count.
*
* @param activeLineCount
* the new active line count
*/
public void setActiveLineCount(final int activeLineCount) public void setActiveLineCount(final int activeLineCount)
{ {
this.activeLineCount = activeLineCount; this.activeLineCount = activeLineCount;
} }
/**
* Sets the alert count.
*
* @param alertCount
* the new alert count
*/
public void setAlertCount(final int alertCount) public void setAlertCount(final int alertCount)
{ {
this.alertCount = alertCount; this.alertCount = alertCount;
} }
/**
* Sets the blank property count.
*
* @param blankPropertyCount
* the new blank property count
*/
public void setBlankPropertyCount(final int blankPropertyCount) public void setBlankPropertyCount(final int blankPropertyCount)
{ {
this.blankPropertyCount = blankPropertyCount; this.blankPropertyCount = blankPropertyCount;
} }
/**
* Sets the error count.
*
* @param errorCount
* the new error count
*/
public void setErrorCount(final int errorCount) public void setErrorCount(final int errorCount)
{ {
this.errorCount = errorCount; this.errorCount = errorCount;
} }
/**
* Sets the filled property count.
*
* @param filledPropertyCount
* the new filled property count
*/
public void setFilledPropertyCount(final int filledPropertyCount) public void setFilledPropertyCount(final int filledPropertyCount)
{ {
this.filledPropertyCount = filledPropertyCount; this.filledPropertyCount = filledPropertyCount;
} }
/**
* Sets the line count.
*
* @param lineCount
* the new line count
*/
public void setLineCount(final int lineCount) public void setLineCount(final int lineCount)
{ {
this.lineCount = lineCount; this.lineCount = lineCount;
} }
/**
* Sets the organization.
*
* @param organization
* the new organization
*/
public void setOrganization(final Organization organization) public void setOrganization(final Organization organization)
{ {
this.organization = organization; this.organization = organization;
} }
/**
* Sets the service.
*
* @param service
* the new service
*/
public void setService(final Service service) public void setService(final Service service)
{ {
this.service = service; this.service = service;
} }
/**
* Sets the update date.
*
* @param updateDate
* the new update date
*/
public void setUpdateDate(final LocalDateTime updateDate) public void setUpdateDate(final LocalDateTime updateDate)
{ {
this.updateDate = updateDate; this.updateDate = updateDate;
} }
/**
* Sets the url.
*
* @param url
* the new url
*/
public void setURL(final URL url) public void setURL(final URL url)
{ {
this.url = url; this.url = url;
} }
/**
* Sets the URL name.
*
* @param localName
* the new URL name
*/
public void setURLName(final String localName) public void setURLName(final String localName)
{ {
this.urlName = localName; this.urlName = localName;
} }
/**
* Sets the void count.
*
* @param voidCount
* the new void count
*/
public void setVoidCount(final int voidCount) public void setVoidCount(final int voidCount)
{ {
this.voidCount = voidCount; this.voidCount = voidCount;
} }
/**
* Sets the warning count.
*
* @param warningCount
* the new warning count
*/
public void setWarningCount(final int warningCount) public void setWarningCount(final int warningCount)
{ {
this.warningCount = warningCount; this.warningCount = warningCount;

View file

@ -226,6 +226,13 @@ public class PropertiesFileStatComparator implements Comparator<PropertiesFileSt
return result; return result;
} }
/**
* Gets the line count.
*
* @param source
* the source
* @return the line count
*/
public static Long getLineCount(final PropertiesFileStat source) public static Long getLineCount(final PropertiesFileStat source)
{ {
Long result; Long result;
@ -243,6 +250,13 @@ public class PropertiesFileStatComparator implements Comparator<PropertiesFileSt
return result; return result;
} }
/**
* Gets the local name.
*
* @param source
* the source
* @return the local name
*/
public static String getLocalName(final PropertiesFileStat source) public static String getLocalName(final PropertiesFileStat source)
{ {
String result; String result;

View file

@ -85,6 +85,11 @@ public class PropertiesFileStats extends ArrayList<PropertiesFileStat>
return result; return result;
} }
/**
* Gets the error count.
*
* @return the error count
*/
public long getErrorCount() public long getErrorCount()
{ {
long result; long result;
@ -271,6 +276,8 @@ public class PropertiesFileStats extends ArrayList<PropertiesFileStat>
* *
* @param metrics * @param metrics
* the metrics * the metrics
* @param organization
* the organization
* @throws IOException * @throws IOException
* Signals that an I/O exception has occurred. * Signals that an I/O exception has occurred.
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -43,6 +43,11 @@ public class RegistrationStats
this.unknownCount = 0; this.unknownCount = 0;
} }
/**
* Gets the client count.
*
* @return the client count
*/
public long getClientCount() public long getClientCount()
{ {
return this.clientCount; return this.clientCount;
@ -63,21 +68,41 @@ public class RegistrationStats
return result; return result;
} }
/**
* Gets the free count.
*
* @return the free count
*/
public long getFreeCount() public long getFreeCount()
{ {
return this.freeCount; return this.freeCount;
} }
/**
* Gets the member count.
*
* @return the member count
*/
public long getMemberCount() public long getMemberCount()
{ {
return this.memberCount; return this.memberCount;
} }
/**
* Gets the none count.
*
* @return the none count
*/
public long getNoneCount() public long getNoneCount()
{ {
return this.noneCount; return this.noneCount;
} }
/**
* Gets the unknown count.
*
* @return the unknown count
*/
public long getUnknownCount() public long getUnknownCount()
{ {
return this.unknownCount; return this.unknownCount;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -51,46 +51,91 @@ public class ServiceInstallTypeStats
this.unknownCount = 0; this.unknownCount = 0;
} }
/**
* Gets the archive count.
*
* @return the archive count
*/
public long getArchiveCount() public long getArchiveCount()
{ {
return this.archiveCount; return this.archiveCount;
} }
/**
* Gets the clonerepo count.
*
* @return the clonerepo count
*/
public long getClonerepoCount() public long getClonerepoCount()
{ {
return this.clonerepoCount; return this.clonerepoCount;
} }
/**
* Gets the container count.
*
* @return the container count
*/
public long getContainerCount() public long getContainerCount()
{ {
return this.containerCount; return this.containerCount;
} }
/**
* Gets the distribution count.
*
* @return the distribution count
*/
public long getDistributionCount() public long getDistributionCount()
{ {
return this.distributionCount; return this.distributionCount;
} }
/**
* Gets the package count.
*
* @return the package count
*/
public long getPackageCount() public long getPackageCount()
{ {
return this.packageCount; return this.packageCount;
} }
/**
* Gets the provider count.
*
* @return the provider count
*/
public long getProviderCount() public long getProviderCount()
{ {
return this.providerCount; return this.providerCount;
} }
/**
* Gets the sources count.
*
* @return the sources count
*/
public long getSourcesCount() public long getSourcesCount()
{ {
return this.sourcesCount; return this.sourcesCount;
} }
/**
* Gets the tooling count.
*
* @return the tooling count
*/
public long getToolingCount() public long getToolingCount()
{ {
return this.toolingCount; return this.toolingCount;
} }
/**
* Gets the unknown count.
*
* @return the unknown count
*/
public long getUnknownCount() public long getUnknownCount()
{ {
return this.unknownCount; return this.unknownCount;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -50,21 +50,41 @@ public class SoftwareStat
this.userCount = 0; this.userCount = 0;
} }
/**
* Gets the categories.
*
* @return the categories
*/
public Categories getCategories() public Categories getCategories()
{ {
return this.categories; return this.categories;
} }
/**
* Gets the name.
*
* @return the name
*/
public String getName() public String getName()
{ {
return this.name; return this.name;
} }
/**
* Gets the organization count.
*
* @return the organization count
*/
public int getOrganizationCount() public int getOrganizationCount()
{ {
return this.organizationCount; return this.organizationCount;
} }
/**
* Gets the service count.
*
* @return the service count
*/
public int getServiceCount() public int getServiceCount()
{ {
return this.serviceCount; return this.serviceCount;
@ -85,11 +105,21 @@ public class SoftwareStat
return result; return result;
} }
/**
* Gets the user count.
*
* @return the user count
*/
public int getUserCount() public int getUserCount()
{ {
return this.userCount; return this.userCount;
} }
/**
* Gets the visit count.
*
* @return the visit count
*/
public int getVisitCount() public int getVisitCount()
{ {
return this.visitCount; return this.visitCount;
@ -141,26 +171,56 @@ public class SoftwareStat
this.visitCount += value; this.visitCount += value;
} }
/**
* Sets the name.
*
* @param name
* the new name
*/
public void setName(final String name) public void setName(final String name)
{ {
this.name = name; this.name = name;
} }
/**
* Sets the organization count.
*
* @param organizationCount
* the new organization count
*/
public void setOrganizationCount(final int organizationCount) public void setOrganizationCount(final int organizationCount)
{ {
this.organizationCount = organizationCount; this.organizationCount = organizationCount;
} }
/**
* Sets the service count.
*
* @param serviceCount
* the new service count
*/
public void setServiceCount(final int serviceCount) public void setServiceCount(final int serviceCount)
{ {
this.serviceCount = serviceCount; this.serviceCount = serviceCount;
} }
/**
* Sets the user count.
*
* @param userCount
* the new user count
*/
public void setUserCount(final int userCount) public void setUserCount(final int userCount)
{ {
this.userCount = userCount; this.userCount = userCount;
} }
/**
* Sets the visit count.
*
* @param visitCount
* the new visit count
*/
public void setVisitCount(final int visitCount) public void setVisitCount(final int visitCount)
{ {
this.visitCount = visitCount; this.visitCount = visitCount;

View file

@ -47,16 +47,31 @@ public final class UserAgentStat
this.visitors = new VisitorStatSet(); this.visitors = new VisitorStatSet();
} }
/**
* Gets the ip count.
*
* @return the ip count
*/
public long getIpCount() public long getIpCount()
{ {
return this.ips.size(); return this.ips.size();
} }
/**
* Gets the log count.
*
* @return the log count
*/
public long getLogCount() public long getLogCount()
{ {
return this.logCount; return this.logCount;
} }
/**
* Gets the user agent.
*
* @return the user agent
*/
public String getUserAgent() public String getUserAgent()
{ {
return this.userAgent; return this.userAgent;
@ -77,6 +92,9 @@ public final class UserAgentStat
return result; return result;
} }
/**
* Inc log count.
*/
public void incLogCount() public void incLogCount()
{ {
this.logCount += 1; this.logCount += 1;

View file

@ -37,6 +37,11 @@ public final class UserAgentStator
this.userAgents = new UserAgentStatSet(); this.userAgents = new UserAgentStatSet();
} }
/**
* Gets the log count.
*
* @return the log count
*/
public long getLogCount() public long getLogCount()
{ {
return this.logCount; return this.logCount;

View file

@ -46,16 +46,31 @@ public final class VisitorStat
this.visits = new Visits(); this.visits = new Visits();
} }
/**
* Gets the ip.
*
* @return the ip
*/
public String getIp() public String getIp()
{ {
return this.ip; return this.ip;
} }
/**
* Gets the log count.
*
* @return the log count
*/
public long getLogCount() public long getLogCount()
{ {
return this.logCount; return this.logCount;
} }
/**
* Gets the user agent.
*
* @return the user agent
*/
public String getUserAgent() public String getUserAgent()
{ {
return this.userAgent; return this.userAgent;
@ -76,11 +91,19 @@ public final class VisitorStat
return result; return result;
} }
/**
* Gets the visits.
*
* @return the visits
*/
public Visits getVisits() public Visits getVisits()
{ {
return this.visits; return this.visits;
} }
/**
* Inc.
*/
public void inc() public void inc()
{ {
this.logCount += 1; this.logCount += 1;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -79,8 +79,11 @@ public final class VisitorStatSet extends HashMap<String, VisitorStat>
/** /**
* Put. * Put.
* *
* @param ip
* the ip
* @param userAgent * @param userAgent
* the user agent * the user agent
* @return the visitor stat
*/ */
public VisitorStat put(final String ip, final String userAgent) public VisitorStat put(final String ip, final String userAgent)
{ {
@ -104,6 +107,8 @@ public final class VisitorStatSet extends HashMap<String, VisitorStat>
/** /**
* Put. * Put.
* *
* @param ip
* the ip
* @param userAgent * @param userAgent
* the user agent * the user agent
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -43,6 +43,11 @@ public class ServiceUptime extends Uptime
this.service = service; this.service = service;
} }
/**
* Gets the service.
*
* @return the service
*/
public Service getService() public Service getService()
{ {
return this.service; return this.service;

View file

@ -67,21 +67,41 @@ public class Uptime
this.status = status; this.status = status;
} }
/**
* Gets the code.
*
* @return the code
*/
public int getCode() public int getCode()
{ {
return this.code; return this.code;
} }
/**
* Gets the date time.
*
* @return the date time
*/
public LocalDateTime getDateTime() public LocalDateTime getDateTime()
{ {
return this.datetime; return this.datetime;
} }
/**
* Gets the status.
*
* @return the status
*/
public UptimeStatus getStatus() public UptimeStatus getStatus()
{ {
return this.status; return this.status;
} }
/**
* Gets the url.
*
* @return the url
*/
public URL getURL() public URL getURL()
{ {
return this.url; return this.url;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -50,16 +50,31 @@ public class UptimeStat
return this.alertCount; return this.alertCount;
} }
/**
* Gets the count.
*
* @return the count
*/
public int getCount() public int getCount()
{ {
return this.count; return this.count;
} }
/**
* Gets the error count.
*
* @return the error count
*/
public int getErrorCount() public int getErrorCount()
{ {
return this.errorCount; return this.errorCount;
} }
/**
* Gets the ok count.
*
* @return the ok count
*/
public int getOkCount() public int getOkCount()
{ {
return this.okCount; return this.okCount;
@ -117,46 +132,77 @@ public class UptimeStat
return result; return result;
} }
/**
* Gets the void count.
*
* @return the void count
*/
public int getVoidCount() public int getVoidCount()
{ {
return this.voidCount; return this.voidCount;
} }
/**
* Gets the warning count.
*
* @return the warning count
*/
public int getWarningCount() public int getWarningCount()
{ {
return this.warningCount; return this.warningCount;
} }
/**
* Inc alert.
*/
public void incAlert() public void incAlert()
{ {
this.count += 1; this.count += 1;
this.alertCount += 1; this.alertCount += 1;
} }
/**
* Inc error.
*/
public void incError() public void incError()
{ {
this.count += 1; this.count += 1;
this.errorCount += 1; this.errorCount += 1;
} }
/**
* Inc ok.
*/
public void incOk() public void incOk()
{ {
this.count += 1; this.count += 1;
this.okCount += 1; this.okCount += 1;
} }
/**
* Inc void.
*/
public void incVoid() public void incVoid()
{ {
this.count += 1; this.count += 1;
this.voidCount += 1; this.voidCount += 1;
} }
/**
* Inc warning.
*/
public void incWarning() public void incWarning()
{ {
this.count += 1; this.count += 1;
this.warningCount += 1; this.warningCount += 1;
} }
/**
* Sets the status.
*
* @param status
* the new status
*/
public void setStatus(final UptimeStatus status) public void setStatus(final UptimeStatus status)
{ {
this.last = status; this.last = status;