Class AbstractInstanceHolder
java.lang.Object
com.google.appengine.tools.development.AbstractInstanceHolder
- All Implemented Interfaces:
InstanceHolder
Abstract
InstanceHolder.-
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a network connection for this instance.Returns theContainerServicefor this instance.intReturns the id for this instance.booleanReturns true if this is the main instance, meaning the load balancing instance for aManualModuleand the only instance for anAutomaticModule.booleanReturns true if this instance is in the STOPPED state.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.appengine.tools.development.InstanceHolder
acquireServingPermit, expectsGeneratedStartRequest, isLoadBalancingInstance, startUp
-
Method Details
-
getContainerService
Description copied from interface:InstanceHolderReturns theContainerServicefor this instance.- Specified by:
getContainerServicein interfaceInstanceHolder
-
getInstance
public int getInstance()Description copied from interface:InstanceHolderReturns the id for this instance.- Specified by:
getInstancein interfaceInstanceHolder
-
isMainInstance
public boolean isMainInstance()Description copied from interface:InstanceHolderReturns true if this is the main instance, meaning the load balancing instance for aManualModuleand the only instance for anAutomaticModule.- Specified by:
isMainInstancein interfaceInstanceHolder
-
isStopped
public boolean isStopped()Description copied from interface:InstanceHolderReturns true if this instance is in the STOPPED state.- Specified by:
isStoppedin interfaceInstanceHolder
-
createConnection
Description copied from interface:InstanceHolderCreates a network connection for this instance.- Specified by:
createConnectionin interfaceInstanceHolder- Throws:
Exception
-