public LuceneDocumentIndexService(String indexDirectory) { super(ServiceDocument.class); super.toggleOption(ServiceOption.CORE, true); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); this.indexDirectory = indexDirectory; }
public NodeSelectorSynchronizationService(Service parent) { super(NodeGroupSynchronizationState.class); super.toggleOption(ServiceOption.UTILITY, true); this.parent = parent; }
public MaintenanceProxyService(Consumer<Operation> parentHandler) { super.toggleOption(ServiceOption.CORE, true); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); this.parentHandler = parentHandler; }
public ConsistentHashingNodeSelectorService() { super(NodeSelectorState.class); super.toggleOption(ServiceOption.CORE, true); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.toggleOption(ServiceOption.INSTRUMENTATION, true); }
public WebSocketService(ChannelHandlerContext ctx, URI uri) { this.ctx = ctx; this.uri = uri; super.toggleOption(ServiceOption.HTML_USER_INTERFACE, true); }
public SessionService() { super(); super.toggleOption(ServiceOption.URI_NAMESPACE_OWNER, true); }
public PrincipalService() { super(); super.toggleOption(ServiceOption.URI_NAMESPACE_OWNER, true); }
public MockHarborApiProxyService() { super(); super.toggleOption(ServiceOption.URI_NAMESPACE_OWNER, true); }
public ClusterService() { super(ClusterDto.class); super.toggleOption(ServiceOption.URI_NAMESPACE_OWNER, true); }
public ElasticPlacementZoneConfigurationService() { super.toggleOption(ServiceOption.URI_NAMESPACE_OWNER, true); }
public IPAddressReleaseTaskService() { super.toggleOption(Service.ServiceOption.INSTRUMENTATION, true); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.setMaintenanceIntervalMicros(IP_ADDRESS_MAINTENANCE_PERIOD_MICROS); }
public PKSAdapterService() { super(); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.toggleOption(ServiceOption.INSTRUMENTATION, true); super.setMaintenanceIntervalMicros(MAINTENANCE_INTERVAL_MICROS); }
public EpzComputeEnumerationPeriodicService() { super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.toggleOption(ServiceOption.PERSISTENCE, false); super.setMaintenanceIntervalMicros(MAINTENANCE_INTERVAL_MICROS); }
/** * Value indicating whether GET on /available returns 200 or 503 * The method is a convenience method since it relies on STAT_NAME_AVAILABLE to report * availability. */ public void setAvailable(boolean isAvailable) { this.toggleOption(ServiceOption.INSTRUMENTATION, true); this.setStat(STAT_NAME_AVAILABLE, isAvailable ? STAT_VALUE_TRUE : STAT_VALUE_FALSE); }
public AbstractKubernetesAdapterService() { super(); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.setMaintenanceIntervalMicros(MAINTENANCE_INTERVAL_MICROS); }
public AbstractDockerAdapterService() { super(); super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.setMaintenanceIntervalMicros(MAINTENANCE_INTERVAL_MICROS); }
public PlacementCapacityUpdatePeriodicService() { super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.setMaintenanceIntervalMicros(MAINTENANCE_INTERVAL_MICROS); }
public MockDockerNetworkService() { super.toggleOption(ServiceOption.URI_NAMESPACE_OWNER, true); }
public NodeSelectorForwardingService(ConsistentHashingNodeSelectorService parent) { super(ServiceDocument.class); super.toggleOption(ServiceOption.UTILITY, true); this.parent = parent; super.setSelfLink(UriUtils.buildUriPath(this.parent.getSelfLink(), ServiceUriPaths.SERVICE_URI_SUFFIX_FORWARDING)); }
@Override public void handleStart(Operation post) { ServiceDocument initState = post.getBody(ServiceDocument.class); long interval = initState.documentExpirationTimeMicros - Utils.getSystemNowMicrosUtc(); if (interval < 0) { logWarning("Task expiration is in the past, extending it"); interval = getHost().getMaintenanceIntervalMicros() * 2; } super.toggleOption(ServiceOption.PERIODIC_MAINTENANCE, true); super.setMaintenanceIntervalMicros(interval); post.complete(); }