input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public boolean is static member member return modifier is static member get modifiers | checks if a classs member method constructor or field has a |
static private user transaction get user transaction if user transaction null see if we have a local tm try new initial context lookup java transaction manager we execute in the server user transaction server vmclient user transaction get singleton catch naming exception ex we execute in a stand alone client user transaction client user transaction get singleton return user transaction | get the code user transaction code this factory will return |
public boolean is static class c return modifier is static c get modifiers | checks if the given class is declared as static inner classes only |
public string get initial context return context info get initial context | get the class name of the initial context implementation to |
public boolean is final member member return modifier is final member get modifiers | checks if a classs member method constructor or field has a |
public void set initial context string class name throws class not found exception context info load class class name | set the class name of the initial context implementation to |
public void set properties url string context props url throws ioexception context info load properties context props url | set the initial contex class environment properties from the given url |
public void set properties final properties props throws ioexception context info set properties props | set the initial contex class environment properties |
public boolean is final class c return modifier is final c get modifiers | checks if the given class is declared as final |
public object invoke invocation mi throws throwable object value null try value get next invoke mi catch naming exception e throw e catch ioexception e communication exception ce new communication exception operation failed ce set root cause e throw ce catch throwable t service unavailable exception sue new service unavailable exception unexpected failure sue set root cause t throw sue return value | handle methods locally on the client |
public properties get properties throws ioexception return context info get properties | get the initial contex class environment properties |
protected main get naming server return naming end of main | the code get naming server code method makes this class |
public void set from name string name throws naming exception remove link ref from name this from name name create link ref | set the from name of the alias |
protected void start service throws exception rebind | start the service by binding the external context into the |
public void set to name string name throws naming exception this to name name create link ref | set the to name of the alias |
public object invoke invocation invocation throws exception naming the server naming get server set the method hash to method mapping if invocation instanceof marshalled invocation marshalled invocation mi marshalled invocation invocation mi set method map marshalled invocation mapping invoke the naming method via reflection method method invocation get method object args invocation get arguments object value null try value method invoke the server args catch invocation target exception e throwable t e get target exception if t instanceof exception throw exception t else throw new undeclared throwable exception t method to string return value | expose the naming service via jmx to invokers |
protected void stop service throws exception if context info get cache context unbind context info get jndi name | stop the service by unbinding the external context into the |
private void remove link ref string name throws naming exception if super get state service mbean started initial context ctx new initial context ctx unbind name | unbind the name value if we are in the started state |
private thread info get thread info thread info ret thread info thread info get if ret null ret new thread info thread info set ret return ret | return the per thread information possibly creating it if needed |
public boolean is public member member return modifier is public member get modifiers | checks if a classs member method constructor or field has a |
public boolean is public class c return modifier is public c get modifiers | checks if the given class is declared as code public code |
public boolean is all fields public class c try field list c get fields for int i 0 i list length i if modifier is public list i get modifiers return false catch exception e return false return true | checks whether all the fields in the class are declared as public |
public boolean is abstract class c return modifier is abstract c get modifiers | checks if the given class is declared as abstract |
public boolean is abstract method m return modifier is abstract m get modifiers | checks if the given method is declared as abstract |
public boolean is local return invoker id equals invoker id | returns wether we are local to the originating container or not |
public void update stats method m long elapsed synchronized m time statistic stat time statistic method stats get m if stat null stat new time statistic method stats put m stat stat count stat total time elapsed if stat min time elapsed stat min time elapsed if stat max time elapsed stat max time elapsed | update the time statistic for the given method |
public boolean is multi object finder method f return java util collection class is assignable from f get return type java util enumeration class is assignable from f get return type | checks if finder method returns either collection or enumeration |
public void reset stats synchronized method stats iterator iter method stats values iterator while iter has next time statistic stat time statistic iter next stat reset max concurrent calls 0 last reset time system current time millis | resets all current time statistics |
public iterator get ejb select methods class c list selects new linked list method method c get methods for int i 0 i method length i if is ejb select method method i selects add method i return selects iterator | return all ejb select methods |
public map get stats return method stats | access the current collection of method invocation statistics |
public string get server host name throws exception return remote invoker get server host name | the name of of the server |
public boolean has remote return type bean meta data bean method m try class clazz classloader load class bean get remote return m get return type is assignable from clazz catch exception e e print stack trace return false | checks the return type of method matches the beans remote interface |
public boolean has ejbremove method class c method method c get methods for int i 0 i method length i if is ejb remove method method i return true return false | searches for an instance of an ejb remove method from the class |
public boolean has local return type bean meta data bean method m try class clazz classloader load class bean get local return m get return type is assignable from clazz catch exception e e print stack trace return false | checks the return type of method matches the beans local interface |
public string get name return optimized invoker | gives this jmx service a name |
public boolean has void return type method method return method get return type void type | checks if a method has a void return type |
public string get server host name throws exception return address address | the name of of the server |
public void stop service throws exception initial context ctx new initial context running false max pool size 0 so server threads don t reinsert themselves for int i 0 i accept threads length i try accept threads i interrupt catch exception ignored clientpool flush for int i 0 i threadpool size i server thread thread server thread threadpool remove first thread shutdown try ctx unbind invokers client connect address pooled finally ctx close | stops this service and unbinds it from jndi |
public iterator get ejbremove methods class c list ejb removes new linked list method method c get methods for int i 0 i method length i if is ejb remove method method i ejb removes add method i return ejb removes iterator | returns the ejb remove |
public void read external object input in throws ioexception class not found exception int length in read int serialized form null if length 0 serialized form new byte length in read fully serialized form hash code in read int | the object implements the read external method to restore its |
public void write external object output out throws ioexception int length serialized form null serialized form length 0 out write int length if length 0 out write serialized form out write int hash code | the object implements the write external method to save its contents |
public void set value object key object value context put key value | the generic store of variables |
public object get value object key return context get key | get a value from the stores |
public void set object name object object name context put invocation key object name object name | a container for server side association |
public void set cache id object id context put invocation key cache id id | return the invocation target id |
public void set value object key object value set value key value payload key payload | the generic store of variables |
public object get value object key find where it is object rtn payload get key if rtn null return rtn rtn as is payload get key if rtn null return rtn rtn transient payload get key return rtn | get a value from the stores |
public int get num accept threads return num accept threads | getter for property num accept threads |
public iterator get home methods class c list homes new linked list method method c get methods for int i 0 i method length i if is create method method i is finder method method i homes add method i return homes iterator | home methods are any method on the home interface which is |
public void set transaction transaction tx if tx instanceof serializable as is payload put invocation key transaction tx else transient payload put invocation key transaction tx | set the transaction |
public transaction get transaction transaction tx transaction as is payload get invocation key transaction if tx null tx transaction transient payload get invocation key transaction return tx | get the transaction |
public void set principal principal principal as is payload put invocation key principal principal | change the security identity of this invocation |
public void set num accept threads int size this num accept threads size | setter for property num accept threads |
public void set credential object credential payload put invocation key credential credential | change the security credentials of this invocation |
public void set object name object object name this object name object name | container for server side association |
public void set type invocation type type as is payload put invocation key type type | an arbitrary type |
public void set max pool size int max pool size this max pool size max pool size | setter for property max pool size |
public object get value object key object value super get value key the map may contain serialized values of the fields if value instanceof marshalled value try marshalled value mv marshalled value value value mv get barf and return null catch exception e e print stack trace value null return value | a marshalled invocation has serialized data in the form of |
public void set id object id payload put invocation key cache id id | return the invocation target id |
public object get payload value object key object value payload get key the map may contain serialized values of the fields if value instanceof marshalled value try marshalled value mv marshalled value value value mv get barf and return null catch exception e e print stack trace value null return value | a marshalled invocation has serialized data in the form of |
public int get client max pool size return client max pool size | getter for property max pool size |
protected object replace object object obj throws ioexception if obj instanceof remote obj instanceof remote stub remote remote remote obj try obj remote object to stub remote catch ioexception ignore let the serialization layer try with the orignal obj return obj | override replace object to check for remote objects that are |
public void set client max pool size int client max pool size this client max pool size client max pool size | setter for property max pool size |
public void set arguments object arguments this args arguments | a list of arguments for the method |
public invocation context get invocation context return invocation context | marcf scott warning i removed the set principal that was called here |
public int get socket timeout return timeout | getter for property timeout |
public void set socket timeout int time this timeout time | setter for property timeout |
protected transaction import tpc object tpc return null | not implemented and should not be |
protected void check invoker url throws unknown host exception if invoker url null inet address addr inet address get local host string host use host name addr get host name addr get host address string url invoker urlprefix host invoker urlsuffix set invoker url url | validate that the invoker url is set and if not build it from |
public int get server bind port return server bind port | getter for property server bind port |
public object invoke invocation mi throws throwable method m mi get method string method name m get name http invoker proxy proxy http invoker proxy mi get invocation context get invoker implement local methods if method name equals to string return to string proxy if method name equals equals object args mi get arguments string this string to string proxy string args string args 0 null args 0 to string return new boolean this string equals args string if method name equals hash code return integer mi get object name return get next invoke mi | handle methods locally on the client |
public void set server bind port int server bind port this server bind port server bind port | setter for property server bind port |
public iterator get method params return method params iterator | gets an iterator over the parameters of the query method |
protected invoker create invoker throws exception check invoker url http invoker proxy delegate invoker new http invoker proxy invoker url return delegate invoker | create the invoker |
public object clone object clone null try clone super clone catch clone not supported exception ignore return clone | create a field wise copy of the object |
protected transaction import tpc object tpc if tpc null return tpc importer import transaction propagation context tpc return null | import a transaction propagation context into the local vm and |
public void import xml element element throws deployment exception string root tag element get owner document get document element get tag name if root tag equals elba import elba xml import elba xml element else if root tag equals ejb jar import ejb jar xml import ejb jar xml element else throw new deployment exception unrecognized root tag root tag | imports either the elba or ejb jar from the given element |
public boolean has default constructor class c try constructor ctr c get constructor new class 0 catch no such method exception e return false return true | checks if a class has a default no args constructor |
public boolean get validate dtds return validate dtds | get the flag indicating that ejb jar |
public void set validate dtds boolean validate this validate dtds validate | set the flag indicating that ejb jar |
public boolean has finalizer class c try method finalizer c get declared method finalize method new class 0 catch no such method exception e return false return true | checks of the class defines a finalize method |
protected boolean jdk13 enabled should use java version string java version system get property java vm version return java version compare to 1 3 0 | check if we are running in a jdk v1 |
public byte get method transaction type if method transaction type tx unset if is container managed tx here we should have a way of looking up wich message class the message driven bean implements by doing this we might be able to use other mom systems aka xml blaser todo the message driven container needs this too class sig message class if super get method transaction type on message sig null meta data tx required method transaction type tx required else method transaction type tx not supported else method transaction type tx unknown return method transaction type | check mdb methods tx type is cached here |
public byte get subscription durability return subscription durability | get the subscription durability mode |
public boolean has finder method class c method method c get methods for int i 0 i method length i if method i get name starts with ejb find return true return false | check if a class has one or more finder methods |
public boolean is finder method method m return m get name starts with find | check if this is a finder method |
public iterator get cmpfields return cmp fields iterator | gets the container managed fields |
public object name get transaction manager service return transaction manager service | mbean get set pair for field transaction manager service |
public boolean is on message method method m return m get name starts with on message | check if the given message is the on message method |
public string get invoker mbean return mbean | get the detached invoker mbean service name associated with the proxy |
public void set transaction manager service object name transaction manager service this transaction manager service transaction manager service | set the value of transaction manager service |
public string get proxy factory return proxy factory | get the class name of the org |
public element get proxy factory config return proxy factory config | an arbitary configuration to pass to the ejbproxy factory implementation |
public void import elba xml element element throws deployment exception mbean get unique child content element invoker mbean proxy factory get unique child content element proxy factory proxy factory config get unique child element proxy factory config | import the elba |
public iterator get environment entries return environment entries iterator | return an iterator of the env entry mappings |
public iterator get ejb references return ejb references values iterator | return an iterator of the ejb ref mappings |
public boolean has anon static field class c try field list c get fields for int i 0 i list length i if modifier is static list i get modifiers return true catch exception ignored return false | checks for at least one non static field |
public iterator get ejb local references return ejb local references values iterator | return an iterator of the ejb local ref mappings |
public iterator get resource references return resource references values iterator | return an iterator of the resource ref mappings |
public iterator get resource env references return resource env references values iterator | return an iterator of the resource ref mappings |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.