public class ServerIndication extends PCEPObject
Represents a SERVER-INDICATION Object, as defined in http://tools.ietf.org/id/draft-ietf-pce-inter-layer-ext-04.txt
From draft-ietf-pce-inter-layer-ext-08
The SERVER-INDICATION is optional and is used to indicate that path information included in the ERO is server layer information and specify the characteristics of the server layer, e.g. the switching capability and encoding of the server layer path. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Switching Cap | Encoding | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ~ Optional TLVs ~ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ The type of SERVER-INDICATION object is to be assigned by IANA. Switching Capability (8 bits): see [RFC4203] for a description of parameters. Encoding (8 bits): see [RFC3471] for a description of parameters. Optional TLVs: Optional TLVs may be included within the object to specify more specific server layer path information (e.g., traffic parameters).Ibit, log, object_bytes, ObjectClass, ObjectLength, OT, Pbit, Res
Constructor and Description |
---|
ServerIndication() |
ServerIndication(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
decode()
Decode SwitchLayer PCEP Object
|
void |
encode()
Encode ServerIndication PCEP Object
|
boolean |
equals(Object obj) |
int |
getEncoding() |
int |
getSwitchingCap() |
int |
hashCode() |
void |
setEncoding(int encoding) |
void |
setSwitchingCap(int switchingCap) |
decode, decodeHeader, encode_header, getBytes, getLength, getObject_bytes, getObjectClass, getObjectClass, getObjectLength, getObjectType, getOT, getRes, isIbit, isPbit, setIbit, setObject_bytes, setObjectClass, setObjectLength, setOT, setPbit, setRes, supportedObject
public ServerIndication()
public ServerIndication(byte[] bytes, int offset) throws MalformedPCEPObjectException
MalformedPCEPObjectException
public void encode()
encode
in interface PCEPElement
encode
in class PCEPObject
public void decode() throws MalformedPCEPObjectException
decode
in class PCEPObject
MalformedPCEPObjectException
public int getEncoding()
public void setEncoding(int encoding)
public int getSwitchingCap()
public void setSwitchingCap(int switchingCap)
public int hashCode()
hashCode
in class PCEPObject
public boolean equals(Object obj)
equals
in class PCEPObject
Copyright © 2016. All rights reserved.