|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDmnConfigDescriptor
The Daemon configuration descriptor interface.
This interface is the root interface for daemon configuration descriptors. This interface defines methods that work with configuration properties common to all X Platform daemons.
Method Summary | |
---|---|
String |
getGroup()
Get the daemon group. |
int |
getIOThreadCount()
Get the number of I/O threads to start in the daemon. |
long |
getIOThreadCPUAffinityMask(int threadId)
Get an IO thread's CPU affinity mask. |
long[] |
getIOThreadCPUAffinityMasks()
Get the set of IO thread's CPU affinity mask. |
int |
getMaxOnDemandThreadCount()
Get the maximum number of on-demand threads that can be created in the daemon. |
int |
getMemoryReservePct()
Get the amount of total memory reserved for OOM handling. |
String |
getName()
Get the daemon name. |
short |
getVersion()
Get the daemon version. |
boolean |
isChecked()
Get whether the daemon is configured to operate in checked mode. |
boolean |
isMultiThreaded()
Get whether the daemon is configured to operate in multi-threaded mode. |
boolean |
isPrintDescriptor()
Get whether the daemon is configured to print its descriptor on startup. |
void |
setChecked(boolean val)
Set whether the daemon should operate in checked mode. |
void |
setGroup(String group)
Set the daemon's application group. |
void |
setIOThreadCount(int count)
Set the number of I/O threads to start in the daemon. |
void |
setIOThreadCPUAffinityMask(int threadId,
long mask)
Set the CPU affinity mask for an IO thread.. |
void |
setMaxOnDemandThreadCount(int count)
Set the maximum number of on-demand threads that can be created in the daemon. |
void |
setMemoryReservePct(int pct)
Set the amount of total memory to reserve for OOM handling. |
void |
setMultiThreaded(boolean val)
Set whether the daemon should operate in single or multi-threaded mode. |
void |
setPrintDescriptor(boolean val)
Set whether the daemon should print its descriptor on startup or not. |
Method Detail |
---|
String getName()
This method returns the configured name of this daemon. The default name of a daemon is configured using the nv.app.name property.
short getVersion()
This method returns the daemon implementation version.
void setGroup(String group)
group
- The daemon's new application group.String getGroup()
This method returns the configured group of this daemon. The daemon group is configured using the nv.app.group property. The daemon group serves to partition applications into non-intersecting groups. The daemon does not allow connections from entities that are in a group different from its group.
void setChecked(boolean val)
val
- Boolean value indicating whether the daemon should operate in
checked or unchecked mode.boolean isChecked()
This method returns whether the daemon is configured to operated in checked mode. When operating in checked mode, the daemon performs additional state and integrity checks.
void setMultiThreaded(boolean val)
val
- Boolean value indicating whether the daemon should operate in
single or multi threaded mode.boolean isMultiThreaded()
This method returns whether the daemon is configured to operate in multi-threaded mode.
void setPrintDescriptor(boolean val)
val
- Boolean value indicating whether the daemon should print its
descriptor on startup or not.boolean isPrintDescriptor()
This method returns whether the daemon is configured to print its descriptor object on startup. If true, the daemon will print its descriptor to System.out.
void setIOThreadCount(int count)
count
- The number of I/O threads to start.int getIOThreadCount()
This method returns the number of I/O threads to start in the daemon.
void setIOThreadCPUAffinityMask(int threadId, long mask)
threadId
- The IO thread id - 0 <= id < ioThreadCountmask
- The affinity mask to set.long getIOThreadCPUAffinityMask(int threadId)
threadId
- The IO thread id - 0 <= id < ioThreadCountlong[] getIOThreadCPUAffinityMasks()
void setMaxOnDemandThreadCount(int count)
count
- The max number of on-demand threads that can be created.int getMaxOnDemandThreadCount()
This method returns the maximum number of on-demand threads that can be created in the daemon. A value of -1 indicates an unlimited number of threads can be created.
void setMemoryReservePct(int pct)
pct
- Percentage of total memory to reserveint getMemoryReservePct()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |