|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 SemiSpaceAdminInterface
public boolean hasBeenInitialized()
hasBeenInitialized
in interface SemiSpaceAdminInterface
public boolean isMaster()
isMaster
in interface SemiSpaceAdminInterface
public long calculateTime()
calculateTime
in interface SemiSpaceAdminInterface
public void performInitialization()
performInitialization
in interface SemiSpaceAdminInterface
protected 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 SemiSpaceAdminInterface
protected void shutdownAndAwaitTermination()
public void removeShutDownHook()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |