|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semispace.admin.SemiSpaceAdmin
public class SemiSpaceAdmin
| Constructor Summary | |
|---|---|
SemiSpaceAdmin(SemiSpaceInterface terraSpace)
|
|
| Method Summary | |
|---|---|
protected void |
assumeAdminResponsibility(boolean sendAdminInfoAboutSystemTime)
|
long |
calculateTime()
|
protected SemiSpaceInterface |
getSpace()
|
protected int |
getSpaceId()
Used from junit test. |
ExecutorService |
getThreadPool()
|
boolean |
hasBeenInitialized()
|
boolean |
isMaster()
|
void |
notifyAboutEvent(DistributedEvent event)
Administrator should get notified about all events. |
void |
performInitialization()
|
protected IdentifyAdminQuery |
populateListOfAllSpaces(List<IdentifyAdminQuery> admins)
Protected as it is used every once in a while from periodic object reaper |
void |
removeShutDownHook()
Remove shutdown hook which otherwise is run when the space is shut down. |
protected void |
shutdownAndAwaitTermination()
The cached thread pool has a timeout of a minute, so a shutdown is not immediate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SemiSpaceAdmin(SemiSpaceInterface terraSpace)
| Method Detail |
|---|
protected int getSpaceId()
protected SemiSpaceInterface getSpace()
public ExecutorService getThreadPool()
getThreadPool in interface SemiSpaceAdminInterfacepublic boolean hasBeenInitialized()
hasBeenInitialized in interface SemiSpaceAdminInterfacepublic boolean isMaster()
isMaster in interface SemiSpaceAdminInterfacepublic long calculateTime()
calculateTime in interface SemiSpaceAdminInterfacepublic void performInitialization()
performInitialization in interface SemiSpaceAdminInterfaceprotected void assumeAdminResponsibility(boolean sendAdminInfoAboutSystemTime)
protected IdentifyAdminQuery populateListOfAllSpaces(List<IdentifyAdminQuery> admins)
admins - List to fill with the admin processes found
public void notifyAboutEvent(DistributedEvent event)
SemiSpaceAdminInterface
notifyAboutEvent in interface SemiSpaceAdminInterfaceprotected void shutdownAndAwaitTermination()
public void removeShutDownHook()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||