mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V1.3 to HEAD (3021:3026)
svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3021 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3026 . git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3338 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -75,6 +75,10 @@ public abstract class HostAnnouncer extends Thread
|
||||
|
||||
private byte m_updateCount;
|
||||
|
||||
// Error count
|
||||
|
||||
private int m_errorCount;
|
||||
|
||||
// Shutdown flag, host announcer should remove the announced name as it shuts down
|
||||
|
||||
private boolean m_shutdown = false;
|
||||
@@ -156,6 +160,16 @@ public abstract class HostAnnouncer extends Thread
|
||||
return m_names.numberOfStrings();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the error count
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
protected final int getErrorCount()
|
||||
{
|
||||
return m_errorCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the specified host name being announced.
|
||||
*
|
||||
@@ -493,6 +507,24 @@ public abstract class HostAnnouncer extends Thread
|
||||
m_srvtype = typ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment the error count
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
protected final int incrementErrorCount()
|
||||
{
|
||||
return ++m_errorCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the error count
|
||||
*/
|
||||
protected final void clearErrorCount()
|
||||
{
|
||||
m_errorCount = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shutdown the host announcer and remove the announced name from Network Neighborhood.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user