org.apache.directory.shared.ldap.extras.extended.ads_impl.gracefulShutdown
Class GracefulShutdownRequestDecorator

java.lang.Object
  extended by org.apache.directory.shared.ldap.codec.api.MessageDecorator<M>
      extended by org.apache.directory.shared.ldap.codec.decorators.RequestDecorator<M>
          extended by org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator<M,R>
              extended by org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator<Q,P>
                  extended by org.apache.directory.shared.ldap.codec.api.ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>
                      extended by org.apache.directory.shared.ldap.extras.extended.ads_impl.gracefulShutdown.GracefulShutdownRequestDecorator
All Implemented Interfaces:
Decorator<GracefulShutdownRequest>, GracefulShutdownRequest, AbandonableRequest, ExtendedRequest<GracefulShutdownResponse>, Message, Request, ResultResponseRequest<GracefulShutdownResponse>, SingleReplyRequest<GracefulShutdownResponse>

public class GracefulShutdownRequestDecorator
extends ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>
implements GracefulShutdownRequest

A Decorator for GracefulShutdownRequests.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.api.ExtendedRequestDecorator
requestValue
 
Fields inherited from class org.apache.directory.shared.ldap.codec.api.MessageDecorator
messageLength
 
Fields inherited from interface org.apache.directory.shared.ldap.extras.extended.GracefulShutdownRequest
EXTENSION_OID, NOW, UNDETERMINED
 
Fields inherited from interface org.apache.directory.shared.ldap.model.message.ExtendedRequest
RESP_TYPE, TYPE
 
Constructor Summary
GracefulShutdownRequestDecorator(LdapApiService codec, GracefulShutdownRequest decoratedMessage)
          Creates a new instance of GracefulShutdownRequestDecorator.
 
Method Summary
 int getDelay()
          
 byte[] getRequestValue()
          
 int getTimeOffline()
          
 void setDelay(int delay)
          
 void setRequestValue(byte[] requestValue)
          
 void setTimeOffline(int timeOffline)
          
 
Methods inherited from class org.apache.directory.shared.ldap.codec.api.ExtendedRequestDecorator
addAllControls, addControl, computeLength, encode, getExtendedRequestLength, getRequestName, getRequestNameBytes, removeControl, setExtendedRequestLength, setMessageId, setRequestName, setRequestNameBytes
 
Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator
abandon, addAbandonListener, getResponseType, isAbandoned
 
Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator
getResultResponse, hasResponse
 
Methods inherited from class org.apache.directory.shared.ldap.codec.api.MessageDecorator
get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, setControlsLength, setMessageLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestName
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.SingleReplyRequest
getResponseType
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.ResultResponseRequest
getResultResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
 

Constructor Detail

GracefulShutdownRequestDecorator

public GracefulShutdownRequestDecorator(LdapApiService codec,
                                        GracefulShutdownRequest decoratedMessage)
Creates a new instance of GracefulShutdownRequestDecorator.

Parameters:
codec -
decoratedMessage -
Method Detail

setRequestValue

public void setRequestValue(byte[] requestValue)

Overrides:
setRequestValue in class ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>

getRequestValue

public byte[] getRequestValue()

Overrides:
getRequestValue in class ExtendedRequestDecorator<GracefulShutdownRequest,GracefulShutdownResponse>

getDelay

public int getDelay()

Specified by:
getDelay in interface GracefulShutdownRequest

setDelay

public void setDelay(int delay)

Specified by:
setDelay in interface GracefulShutdownRequest

getTimeOffline

public int getTimeOffline()

Specified by:
getTimeOffline in interface GracefulShutdownRequest

setTimeOffline

public void setTimeOffline(int timeOffline)

Specified by:
setTimeOffline in interface GracefulShutdownRequest


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.